Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 07:30 am EST

Geeklog Forums

irreal guests(bots) in who is online block


Status: offline

isyankar

Forum User
Junior
Registered: 06/29/05
Posts: 15
i need to show irreal guests in "who's online block"

what i mean is something like irc bots which shows that people are always exist in my site whether they are or not.

if i was able to tell what i want can you instruct me how can i do it?
 Quote

Status: offline

isyankar

Forum User
Junior
Registered: 06/29/05
Posts: 15
no answer??? Can someone help me
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog doesn't distinhuish between "real" visitors and bots. And I doubt that this is even possible (not reliably, at least).

For Geeklog, every HTTP request that comes from a new IP address is a visitor. Logged in users are recognized by their cookies, everything else is just an anonymous user.

I guess you could try and make sense of the user agent string of those anonymous visitors to see if it's a bot. But I doubt this would be very reliable. And you would have to hack something into the session handling so that you could display them separately in the Who's Online block (which really only displays the current sessions).

bye, Dirk
 Quote

Status: offline

isyankar

Forum User
Junior
Registered: 06/29/05
Posts: 15
i mean that there must be a variable such as $i=0 for the who is online block.. i will change it with $i=100



where is this variable which shows number of guests (initially)??
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sorry, I have no idea what you mean ...

Anyway, the code for the Who's Online block is in lib-common.php, function phpblock_whosonline. Have a look yourself.

bye, Dirk
 Quote

All times are EST. The time is now 07:30 am.

  • 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