• Welcome to Simple Machines Community Forum. Please login or sign up.

Custom Who.template.php - separated list for users, guests and spiders

Started by Owdy, November 03, 2004, 01:15:56 PM

Previous topic - Next topic

Owdy

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

RoarinRow

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

Farmacija

im using smf 1.07 and uin default theme in who.template.php i couldnt find code above  :(
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Farmacija

www.farmaceuti.com
www.farmaceuti.com/tekstovi

Stigmartyr

Once I installed the GoogleBot Mod and THEN uploaded the attached file, everything works great :)

colochris1980

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


Rasyr

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




n1kki6

Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?

Niteblade

Quote from: n1kki6 on June 15, 2006, 11:51:14 PM
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

n1kki6

It does it wil the spider bot mod on the users list at the bottom so I am guessing its possible.

TGB

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

TGB

Quote from: Owdy on June 26, 2006, 04:54:57 AM
Quote from: edsloter on June 25, 2006, 07:00:27 PM
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

AbsolutelyFreeWeb

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.

Omar Bazavilvazo

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

PrizeLive.com

Quote from: Omar Bazavilvazo on July 08, 2006, 11:50:59 PM
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!

PrizeLive.com

Quote from: Owdy on July 09, 2006, 02:06:24 AM
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!

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!

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

// $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:

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



PlayGroundFor.us

Could someone help me modify this so that it would only allow those who have permissions to see spiders be able to see them.

Advertisement: