[SPLIT] about custom who.template.php

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

Previous topic - Next topic

Ben_S

Only shows one page so no good if you have more than 50 online.
Liverpool FC Forum with 14 million+ posts.

Owdy

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

Ben_S

Liverpool FC Forum with 14 million+ posts.

Oldiesmann

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
Christian Metal Fans

Owdy

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

Oldiesmann

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
Christian Metal Fans

[Unknown]

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]

Oldiesmann

Michael Eshom
Christian Metal Fans

edi67

#8
excellent work owdy thx

sorry one question when appear ? ? ? what means?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Owdy

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

JRSofty

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

Owdy

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

JRSofty

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

Owdy

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

I need some coding help. I would like my moderators to see those agents and ip's also.

This what i tryed:

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


to


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

[Unknown]

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]

Owdy

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

Owdy

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 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?

ShadowStriker

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

Advertisement: