Advertisement:

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

Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,725
  • xxx
[SPLIT] about custom who.template.php
« on: November 03, 2004, 01:19:53 PM »
Only shows one page so no good if you have more than 50 online.
Liverpool FC Forum with 14 million+ posts.

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 #1 on: November 03, 2004, 01:32:45 PM »
Fixed
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 Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,725
  • xxx
[SPLIT] about custom who.template.php
« Reply #2 on: November 03, 2004, 01:50:36 PM »
:).

Might use it myself :).
Liverpool FC Forum with 14 million+ posts.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,868
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
[SPLIT] about custom who.template.php
« Reply #3 on: November 03, 2004, 02:12:28 PM »
Speaking of UserAgents...

http://www.garykeith.com/browsers/downloads.asp - ZIP file containing 28,592 user agent strings (ok, a ZIP file with a text file containing 28,592 user agent strings).
Michael Eshom
Cincy Space - now open!

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 #4 on: November 03, 2004, 02:13:58 PM »
If you really need 28,592 user agents, you can ad them :D
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 Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,868
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
[SPLIT] about custom who.template.php
« Reply #5 on: November 03, 2004, 03:34:55 PM »
I'm not saying that he should add them all to that list. I was just pointing out that if anyone wanted a good list of user agents they could get them there.
Michael Eshom
Cincy Space - now open!

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
[SPLIT] about custom who.template.php
« Reply #6 on: November 03, 2004, 07:33:58 PM »
Some of them are just variants; for example, my IE has my .NET CLR version number... which could be one of several numbers.  It could also have multiple CLR numbers, or just one.

And then, there's at least four for every day of the year; nightly builds of Mozilla browsers.

-[Unknown]

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,868
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
[SPLIT] about custom who.template.php
« Reply #7 on: November 04, 2004, 11:45:36 AM »
I know.
Michael Eshom
Cincy Space - now open!

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
[SPLIT] about custom who.template.php
« Reply #8 on: November 15, 2004, 02:50:32 AM »
excellent work owdy thx

sorry one question when appear ? ? ? what means?
« Last Edit: November 15, 2004, 03:33:21 AM by edi67 »
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

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 #9 on: November 15, 2004, 11:59:54 AM »
Unknown browser
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 JRSofty

  • Jr. Member
  • **
  • Posts: 138
  • Gender: Male
  • Rebooting....
    • JRSofty Programming
[SPLIT] about custom who.template.php
« Reply #10 on: February 09, 2005, 01:59:23 AM »
Why is the $known_agents line in there twice? It is scoped in the same function and should be able to be used throughout. Anyone?
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

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 #11 on: February 09, 2005, 02:00:48 AM »
Because there are 2 lists; users and guests. Code works, so why this is broblem to you?
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 JRSofty

  • Jr. Member
  • **
  • Posts: 138
  • Gender: Male
  • Rebooting....
    • JRSofty Programming
[SPLIT] about custom who.template.php
« Reply #12 on: February 09, 2005, 02:57:02 AM »
Sorry about. I like to keep things simple. And you are right the code works fine.

BTW you can remove the second $known_agents line (I did) and it will work fine as well ;)

Thanks
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

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 #13 on: February 09, 2005, 03:54:38 AM »
Cool, i'll do that. Thanks. :)
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 #14 on: April 16, 2005, 10:35:27 AM »
I need some coding help. I would like my moderators to see those agents and ip's also.

This what i tryed:

Code: [Select]
if ($context['user']['is_admin'])
{
$user_agent = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';
$agent = '';

to


Code: [Select]
if (in_array(2, $user_info['groups']) || $context['user']['is_admin'])
{
$user_agent = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';
$agent = '';
That isnt working. Any suggestions?
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 #15 on: April 16, 2005, 10:45:41 AM »
You'll have to create your own group for moderators and use that id.  When viewing the "who's online" page, no one will ever be in group 3.  Group 2 is global moderators only.

-[Unknown]

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 #16 on: April 16, 2005, 10:50:30 AM »
I dont get it, why group id 2 wont do? Group 3 is that undeletable moderator group in my forum. I dont have any members in it.
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 #17 on: April 16, 2005, 11:00:01 AM »
Ok, did that, didnt work.
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 #18 on: May 27, 2005, 06:49:03 PM »
i read the do not post questions sticky thing but when i posts it in support unknown sais it was ok to to reply but not to make topics that has to do with questions... ok... where do i put the code? and what are user agents?

Offline ShadowStriker

  • Jr. Member
  • **
  • Posts: 365
[SPLIT] about custom who.template.php
« Reply #19 on: May 28, 2005, 11:03:00 AM »
i tried putting this below the other things in the who.template.php and look what happened....  http://wwp.x10hosting.com/general/index.php?action=who