|
|
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.
|
|
|
|
Joined: Jun 2006
Posts: 16,300 Likes: 116
|
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
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
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:
<?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
?>
|
|
|
|
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!
|
|
|
|
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
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
0 members (),
736
guests, and
155
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|