PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 79

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

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
Moderator


Joined: Apr 30, 2004
Posts: 2847

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

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
View user's profile Send private message Visit poster's website
jakec
Moderator


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

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

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
Regular
Regular


Joined: Feb 18, 2006
Posts: 79

PostPosted: Thu Mar 27, 2008 12:28 pm Reply with quote Back to top

Thanks evaders99 and jakec
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum