Page 1 of 1

PHP question about logged in forum users

Posted: Mon Oct 06, 2008 3:12 pm
by mattbussey
This is a question for the php gurus here. I want to simply put a banner ad on the top of my forum that only will show up to folks who are not logged in, anyone who is logged in would not see the banner. What code would I need to add in order to do this? Thanks a lot.

Re: PHP question about logged in forum users

Posted: Mon Oct 06, 2008 3:14 pm
by JimA
Use this code:

Code: Select all

<!-- IF not S_USER_LOGGED_IN -->
// code of your banner
<!-- ENDIF -->

Re: PHP question about logged in forum users

Posted: Mon Oct 06, 2008 3:14 pm
by stevemaury
Why is this php? Looks like html. Anyway:

Code: Select all

 <!-- IF not S_USER_LOGGED_IN -->code<!-- ENDIF -->

Re: PHP question about logged in forum users

Posted: Mon Oct 06, 2008 3:36 pm
by mattbussey
Thanks a lot, that works like a charm.