Advertisement:

Author Topic: [SPLIT] about custom who.template.php  (Read 62335 times)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #20 on: May 28, 2005, 02:41:51 PM »
Quote
Sorry - 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

Offline nokonium

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • TinyPortal Support Team
    • Our-Local
[SPLIT] about custom who.template.php
« Reply #21 on: May 29, 2005, 03:03:00 AM »
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.



Offline nokonium

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • TinyPortal Support Team
    • Our-Local
[SPLIT] about custom who.template.php
« Reply #22 on: May 29, 2005, 06:41:41 AM »
My co-admin has raised a concern about security and malformed browser strings, is there a possible problem?



Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #23 on: May 29, 2005, 08:03:31 AM »
Only admins see ip's and browsers. No security issues there.

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

Offline nokonium

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • TinyPortal Support Team
    • Our-Local
[SPLIT] about custom who.template.php
« Reply #24 on: May 29, 2005, 12:55:48 PM »
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)



Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #25 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.:)
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
[SPLIT] about custom who.template.php
« Reply #26 on: May 29, 2005, 01:00:12 PM »
If you have "rival forum admins" you've got political problems to work out, not anything else.

-[Unknown]

Offline nokonium

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • TinyPortal Support Team
    • Our-Local
[SPLIT] about custom who.template.php
« Reply #27 on: May 29, 2005, 01:25:09 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"



Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #28 on: May 29, 2005, 01:26:09 PM »
Yeah, well, i dont know how to do that.

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

Offline nokonium

  • Full Member
  • ***
  • Posts: 680
  • Gender: Male
  • TinyPortal Support Team
    • Our-Local
[SPLIT] about custom who.template.php
« Reply #29 on: May 29, 2005, 01:28:51 PM »
It is always worth asking though, because someone may be able to.

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



Offline ShadowStriker

  • Jr. Member
  • **
  • Posts: 365
[SPLIT] about custom who.template.php
« Reply #30 on: May 29, 2005, 02:01:58 PM »
how do i get this working?

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #31 on: May 29, 2005, 02:25:43 PM »
how do i get this working?
Read what i posted to you. Thats a good start.

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

Offline ShadowStriker

  • Jr. Member
  • **
  • Posts: 365
[SPLIT] about custom who.template.php
« Reply #32 on: May 29, 2005, 03:54:01 PM »
i tried adding it ti the other who.template.php but it wouldnt work... do i have to delete the exisitng one?

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #33 on: May 29, 2005, 03:54:51 PM »
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

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
[SPLIT] about custom who.template.php
« Reply #34 on: May 29, 2005, 04:35:56 PM »
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
« Last Edit: May 30, 2005, 03:33:19 PM by MikeMill »

Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,725
  • xxx
[SPLIT] about custom who.template.php
« Reply #35 on: May 30, 2005, 02:25:59 PM »
I like it Mike, unfortunatly though it's missing the page numbers.
Liverpool FC Forum with 14 million+ posts.

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
[SPLIT] about custom who.template.php
« Reply #36 on: May 30, 2005, 03:33:32 PM »
Fixed, thanks Ben

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #37 on: May 30, 2005, 04:24:54 PM »
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

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
[SPLIT] about custom who.template.php
« Reply #38 on: May 30, 2005, 04:51:46 PM »
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

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,163
  • Gender: Male
[SPLIT] about custom who.template.php
« Reply #39 on: May 30, 2005, 04:55:38 PM »
Because I wasn't sure if it was a spider :)

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