Welcome to Geeklog, Anonymous Monday, May 06 2024 @ 11:48 pm EDT

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 EDT. The time is now 11:48 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