Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 08:59 pm EST

Geeklog Forums

Sending Pop-up Message to ALL "Guests"


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!
 Quote

Status: offline

rawdata

Forum User
Full Member
Registered: 02/17/03
Posts: 236
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.
 Quote

Status: offline

jhk

Forum User
Chatty
Registered: 07/13/02
Posts: 57
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.
 Quote

All times are EST. The time is now 08:59 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content