Posted on: 04/11/03 06:11pm
By: Anonymous (Anonymous)
Would one of you geeklog masters be able to help with? I don't want my members to get the pop-up just those logged on as guest.
Thanks!
Sending Pop-up Message to ALL "Guests"
Posted on: 04/12/03 08:18am
By: rawdata
Anonymous visitors have a uid (user id) equal to 1. Everyone else's uid is higher. In your code, do a test for the uid and only serve the pop up code when it equals 1.
$uid = $_USER['uid'];
if ($uid == 1) {
put your code here
}
If this is in a function, make sure $_USER is declared as a global variable.
Sending Pop-up Message to ALL "Guests"
Posted on: 04/12/03 05:36pm
By: jhk
Be aware that more and more people are blocking pop-ups. Either through their browser (Mozilla, Netscape, Opera, Konqueror, etc.) or by using 3rd party blocking software. If the information is critical, you might want to put it in a block or above the stories.