+Andrei T. Posted September 1, 2015 Report Posted September 1, 2015 (edited) Salut, PCT! Am vrut sa fac un guest mesage: http://i.imgur.com/En3d9Oe.png . Si l-am facut cum vroiam doar ca imi apare la toti si cei logati si cei nelogati. Ce if imi trebuie ca sa apara doar la cei nelogati? Eu am incercat cu if-ul de mai jos dar numai apare la nimeni.<if test="($this->settings['guestMessage']=='yes')"> Edited September 1, 2015 by Alkatraz
+Kames Posted September 1, 2015 Report Posted September 1, 2015 (edited) Incearcă acest "if":<if test="!$this->member->getProperty('member_id')">Mesajul tău</if>sau acest hook: https://community.invisionpower.com/files/file/4331-m34-guest-message/Instrucțiuni:- inlocuiesti 'member_id' cu id-ul grupului de vizitatori (ex.: 1).O altă variantă ar fi acest cod:<if test="!$this->memberData['member_id']">Mesajul tău</if>Inlocuiesti 'member_id' cu id-ul grupului de vizitatori. Edited September 1, 2015 by Kames
+Andrei T. Posted September 1, 2015 Author Report Posted September 1, 2015 Am incercat si nu merge...
+Portocala Posted September 1, 2015 Report Posted September 1, 2015 Vezi daca ai in globalTemplate ceva de genul <if test="($this->settings['guestMessage']=='yes') AND !($this->memberData['member_id'])"> <div class='guestMessage'> <strong>Welcome to {$this->settings['board_name']}</strong><br /> Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, <a href='{parse url="app=core&module=global&section=login" base="public"}'>login here</a> - otherwise <a href='{parse url="app=core&module=global&section=register" base="public"}'>create an account</a> for free today! </div> </if>daca da schimba-l cu:<if test="!($this->memberData['member_id'])"> <div class='guestMessage'> <strong>Welcome to {$this->settings['board_name']}</strong><br /> Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, <a href='{parse url="app=core&module=global&section=login" base="public"}'>login here</a> - otherwise <a href='{parse url="app=core&module=global&section=register" base="public"}'>create an account</a> for free today! </div> </if>si pune ce mesaj vrei tu 1 https://www.facebook.com/puffysticks/ https://www.instagram.com/puffystickscom/ https://twitter.com/puffysticks
+Andrei T. Posted September 2, 2015 Author Report Posted September 2, 2015 Multumesc mult!Rezolvarea:In globaltemapate am inlocuit <if test="($this->settings['guestMessage']=='yes') AND !($this->memberData['member_id'])">cu<if test="!($this->memberData['member_id'])">iar acum codul de mai sus functioneaza si la acela creat de mine in boardindextemplate.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now