Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Tue Mar 25, 2008 9:37 pm Reply with quote

I would like to know how I would go about showing a message to guests only.

Example:

If user is guest show message *You must login to record you score [link here].

Same goes for showing a google ad or any other advertisement ads to guests only.
 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Mar 26, 2008 12:47 am Reply with quote

If you're looking for PHP code, it would be
Code:


if (!is_user($user)) echo 'MESSAGE';


Or if you mean without doing coding, you can make Blocks that are only visible to Anonymous users

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Wed Mar 26, 2008 1:14 am Reply with quote

You can also use the messages module and set the message to anonymous users only.

If it's a Google Ad you can do what Evaders said and put it in a block and set it to Anonymous users.
 
View user's profile Send private message
viper155
PostPosted: Thu Mar 27, 2008 12:28 pm Reply with quote

Thanks evaders99 and jakec
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©