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,533
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,533
Likes: 150
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
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
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)