Advertisement:

Author Topic: Custom Who.template.php - separated list for users, guests and spiders  (Read 288295 times)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,572
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Remove this topic.




admin note: I have changed the topic back, because the thread is still valid, despite the confusion of some people who apparently can't read.
This is **NOT** the googlebots, or the spiders, or any other MOD.  It is a TIP/TRICK.
« Last Edit: September 23, 2010, 07:29:30 AM by Kindred »
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 RoarinRow

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
  • Ride my AV!
    • Avalanche Style
Very cool, thank you!  I've been using your previous version of the who.template.php and love it!  I use it all the time.  It makes separating who's who easier on the eyes.   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
im using smf 1.07 and uin default theme in who.template.php i couldnt find code above  :(

Offline Farmacija

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
  • Farmacija forum www.farmaceuti.com
    • Pharmacy forum
Ok, i upload it in themes/default folder. thanx

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 300
  • Gender: Male
Once I installed the GoogleBot Mod and THEN uploaded the attached file, everything works great :)

Offline colochris1980

  • Semi-Newbie
  • *
  • Posts: 12
    • Before and After Bankruptcy
Just wondering. I uploaded the file, everything tested successful, but the last thing was the install.php execute code file

I don't have the install file installed.

Anyways it said that everything was ok and the effects should take place.

But I look at the forum index and I only see guests =0 users =1

No spider or robot count

Did I do something wrong?
Before and After Bankruptcy

Your #1 Source for all of your Before and After Bankruptcy Needs!

http://www.beforeandafterbankruptcy.com [nofollow]

kat

  • Guest
Maybe there weren't any bots around, at the time?

Offline Rasyr

  • Jr. Member
  • **
  • Posts: 172
How can I remove Spiders from the file? I like the breakdown, but I want to get rid of spiders altogether. How can I do that?

I don't want the bots mixed in with the Guests, I want them removed completely.

Thanks for the help!!


Edit: Okay, I figured out how to remove the Spiders (a simple if statement right after the For each loop statement that starts displaying them - the if statement ends before the page index section).

However, I have another issue. As can be seen here -- http://www.ironcrown.com/ICEforums/index.php?action=who;sort=time;start=0 -- I am not showing all of my Members on a single page.

How can I change this file to make that happen. I want to show all the Members together, and then show all of the guests together (I can get it to do this by sorting by User, but I want it to happen automatically, always -- if that makes any sense?)



« Last Edit: June 15, 2006, 08:52:15 AM by Rasyr »

Offline n1kki6

  • Jr. Member
  • **
  • Posts: 193
Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?

Offline Niteblade

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
    • Prosperent Ads
Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?

Interesting..
affiliate blog

Offline n1kki6

  • Jr. Member
  • **
  • Posts: 193
It does it wil the spider bot mod on the users list at the bottom so I am guessing its possible.

Offline TGB

  • Jr. Member
  • **
  • Posts: 103
    • DC-Haven
can we have instructions on what is modified from the original who.template.php as mine is already modified and i would need to do a manual install
www.dreamcasthaven.com <----- Running SMF 1.1.16 & heavily modified
www.psxhaven.com <----- Running SMF 1.1.16 & heavily modified
www.romhaven.info <----- Running SMF 1.1.16 & heavily modified
www.bthaven.com <----- Running TT 2.06

Offline TGB

  • Jr. Member
  • **
  • Posts: 103
    • DC-Haven
can we have instructions on what is modified from the original who.template.php
Lots. Compare those files, youll see.

i can't really compare since my file is already modified, it would not match up.  that is why i am asking.
www.dreamcasthaven.com <----- Running SMF 1.1.16 & heavily modified
www.psxhaven.com <----- Running SMF 1.1.16 & heavily modified
www.romhaven.info <----- Running SMF 1.1.16 & heavily modified
www.bthaven.com <----- Running TT 2.06

Offline AbsolutelyFreeWeb

  • Semi-Newbie
  • *
  • Posts: 83
    • Finexe Community
Could you please edit the first post to make it more clear one doesn't need to do the translate part in the faq. I thought I had to do that just to use it.
:hearts:
I use finexe web for
domain registration and hosting.

Offline Omar Bazavilvazo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,619
  • Gender: Male
  • Minna no nihongo...
    • HablaJapones
I just installed it for my brand new installed SMF 1.1RC2, thanks Owdy, works like a charm



Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php

NO me manden PM para soporte o dudas
...Leo los foros como todos...

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
I just installed it for my brand new installed SMF 1.1RC2, thanks Owdy, works like a charm

how can i get it for 1.1 rc2
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
SurfExcelerator, take it from this topics first post. edsloter wanted to compare this file to unmodifyed version, that one he can get from download area.

Thanks.. it works great..  :D
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Offline PrizeLive.com

  • Full Member
  • ***
  • Posts: 683
    • PrizeLive.com
How can you have both who templates working...

so http://www.moneytalkpro.com/index.php?action=who and http://www.moneytalkpro.com/index.php?action=who2 would both work... ?

who would be the original and who2 would have the groups separated..
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Offline guachiman

  • Newbie
  • *
  • Posts: 7
  • Gender: Male
  • El Guachiman
Hey guys,

For those of you that had the "Location Mod - WhoFlags" installed (gobalooper.locationmod), you need to follow these steps:

1. donwload the new Who.template.php file
2. Open it and search for

Code: [Select]
// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg', $alternate ? '2' : '', '">

<td>';

and SUBSTITUTE the <td>'; with:

Code: [Select]
<td>', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '';

3. Upload the file to the ./Themes/default/ directory.

I hope this is useful!



Offline PlayGroundFor.us

  • Semi-Newbie
  • *
  • Posts: 37
  • Gender: Male
    • PlayGroundFor.us - Your Photography Club.
Could someone help me modify this so that it would only allow those who have permissions to see spiders be able to see them.