Previous Thread
Next Thread
Print Thread
Hop To
#179506 02/26/2007 11:19 AM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
Anybody have a way to determine if a Guest has entered the forums?
I'd like to give them a "Special Welcome" to try to onvince some of them to register.

LarE #179513 02/26/2007 2:22 PM
Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
I know theres a way to determine if it's a certain user or not, so I don't see why it couldn't detect if the person had no nickname... Not sure of exactly how to do it offhand though


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #179515 02/26/2007 4:13 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you're looking at maybe changing the header (above the breadcrumb, navigation bar) you could use the Display Options -> General -> HTML Includes section. In the Default Header, you could do something like:

Code
<?php
if ($user['USER_ID']) {

   echo <<<USER_IS_LOGGED_IN

This will display to a user that is logged in.

USER_IS_LOGGED_IN;

} else {

   echo <<<REGISTER_PRETTY_PLEASE

This will display to a user that is not logged in.

REGISTER_PRETTY_PLEASE;

} // end if
?>

Rick #179530 02/26/2007 6:21 PM
Joined: Sep 2006
Posts: 120
member
member
Joined: Sep 2006
Posts: 120
Thanks Rick. That looks like it will do it.
Plus I never used php inserts before so I can learn a little about that too!

LarE #179578 02/27/2007 7:31 PM
Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
Thanks Rick, I've used it to display text asking them to join, when registered they get the site logo


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
0 members (), 736 guests, and 155 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)