![]() |
Some content in Announcement box for guests only? I want to show the accouncement box, but I also want to show some of the things to registered users, and some to the guests to the site. What can I do to the php in my announcement box to only show something IF the user is NOT logged in? |
make the contents of the announcements box say a php file like so but remember there is a size limit. Code: Content visible to verified customers only. |
This doesn't seem to work. It still shows with the echo and print commands on the screen.i.e. 0 ) { echo << and PPPRINT; } else { echo << <span class="TabbedPanelsContent"> <? if ( $User['userid'] > 0 ) { echo <<<PPPRINT PPPRINT; } else { echo <<<PPPRINT Quote:
} ?> </span> |
<span class="TabbedPanelsContent"> ??? There is more here than your stating but anyway try placing PPPRINT; before the if statement and at the end of the code I gave after the closing bracket on a new line place echo <<<PPPRINT |
using a spry menu bar inside the announcement box - like a tabbed menu |
well whatever you want to do is fine but you must echo and print your way in and out between html and php. So if you do as I stated should work fine but then again maybe not. Maybe you would have to actually eval the contents to tell the program there is php code there. You might want to further make it easier and just edit the announcement template directly with any code. |
hardcoding it works perfect - thanks! Batch uploader for guest live on the site now.. disappears when loggen in.. |
Have a good one. |
| All times are GMT -5. The time now is 03:51 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0