[SPLIT] about custom who.template.php

Started by Ben_S, November 03, 2004, 01:19:53 PM

Previous topic - Next topic

Owdy

QuoteSorry - you don't have the proper permissions to view the Who's Online list.
Please login below or register an account with World Wide Programming.

Anyway, i dont know what you have done, but just put that Who.template.php (from first post in this topic) in your theme folder.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

nokonium

Not specifically what this was designed for, but.... IIUC this is Admin/Moderator only view

Could it be modified to enable easy identification of regular lurkers? By that I mean Admin adds the IP and their ID for it to the template, not an IP lookup as such.



nokonium

My co-admin has raised a concern about security and malformed browser strings, is there a possible problem?



Owdy

Only admins see ip's and browsers. No security issues there.

Quote from: nokonium on May 29, 2005, 03:03:00 AM
Could it be modified to enable easy identification of regular lurkers?
I dont understand your request.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

nokonium

What I mean is, could who.template.php be modified to lookup the IP of Guests in an array and if it finds a match, it would add some custom text, according to the entries in the lookup.

For example:

Guest
(###.###.##.###, MSIE 6.0)

Could read

Guest - Rival Forum Admin
(###.###.##.###, MSIE 6.0)



Owdy

That ip could match several members.  In my forum for example, tens of users come via same IP because they surf via school pc's or similar. No use IMO.

it could read:
Guest - Owdy, caddis, nokonium, I R Richy, agridoc, WhoIsShe, Orstio, Søren Bjerg, morloc, -CM-, d®ÊåDLo®d, John Slater, Shahzad,
(###.###.##.###, MSIE 6.0)

That doesnt look very nice, and information it gives is useless.:)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

[Unknown]

If you have "rival forum admins" you've got political problems to work out, not anything else.

-[Unknown]

nokonium

Quote from: Owdy on May 29, 2005, 12:59:32 PM
That ip could match several members.  In my forum for example, tens of users come via same IP because they surf via school pc's or similar. No use IMO.

it could read:
Guest - Owdy, caddis, nokonium, I R Richy, agridoc, WhoIsShe, Orstio, Søren Bjerg, morloc, -CM-, d®ÊåDLo®d, John Slater, Shahzad,
(###.###.##.###, MSIE 6.0)

That doesnt look very nice, and information it gives is useless.:)


I can see your point but I would assume that you would only return one lookup value, so that would read Guest - School PC or somesuch.

[UNKNOWN] - That was just an example, maybe it would have been a better example to use "Banned member" or "Known Troll". I have suggested it so that Admins do not have to remember the IP's of all regular non members, to know who is lurking. If they are a true guest it should just return the 'else' of "Guest"



Owdy

Yeah, well, i dont know how to do that.

Quoteso that would read Guest - School PC or somesuch.
How SMF gets this info? There is no way.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

nokonium

It is always worth asking though, because someone may be able to.

If you don't ask, you can't get.  :)




Owdy

Quote from: ShadowStriker on May 29, 2005, 02:01:58 PM
how do i get this working?
Read what i posted to you. Thats a good start.

Quote from: Owdy on May 28, 2005, 02:41:51 PM
just put that Who.template.php (from first post in this topic) in your theme folder.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

ShadowStriker

i tried adding it ti the other who.template.php but it wouldnt work... do i have to delete the exisitng one?

Owdy

Yes, just upload it and overwrite. No need editing any files.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Thantos

#34
Heres a version I've been working on.  It seperates into three catagories:
Users
Guests
Spiders

It will rename spiders so it doesn't say Guest.

It should be really easy to add more spiders or user agents if you so wished.

I've done limited testing on it but there might be a few problems.  I mainly reused Owdy's code so a big thanks to him ;)

Edit:  Added the page numbers in

Ben_S

I like it Mike, unfortunatly though it's missing the page numbers.
Liverpool FC Forum with 14 million+ posts.

Thantos


Owdy

Awesome Mike! Ill attach that in first post.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

Question Mike. Why isnt all spiders have that 'spider' => true, ? Like Inktomi Slurp?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Thantos

Because I wasn't sure if it was a spider :)

If I missed any feel free to correct and let me know :)

Advertisement: