Customizing SMF > Tips and Tricks

SMF 1.x & 2.x - Custom Who.template.php - Displays Users, Guests & Spiders

(1/14) > >>

MoreBloodWine:
First I will start with a famous quote...


--- Quote from: Owdy on November 03, 2004, 01:15:56 PM ---*** This is NOT the Googlebot & Spiders mod, you can find that mod by clicking here. ***

--- End quote ---

Ok, first and foremost... ALWAYS back up your original files before replacing them. As for what the attached file does, it replaces your currently used themes Who.template.php file and breaks it into three parts. Instead of lumping everything together it creates separate lists for Users, Guests & Spiders as seen here on my site.

It currently has about 200 or so agents for Spiders, Browsers & Phones... I took the time to alphabetize it so it's easily managed when adding new agents. This is a pretty straight forward setup so you can't really screw it up but should you have any questions please reply to this thread and I will try to answer it.

Few things to note:

1. This file was originally hosted and created by Owdy, he has decided to give up support on it for the numerous idiots who can't seem to understand that this has nothing to do with the Googlebot & Spiders mod. I'm sorry if what I just said seems harsh but it's the cold hearted truth. In any case, he has given me permission to re-host it and provide support for it by adding new agents etc. when needed.

2. Any questions regarding the Googlebot & Spiders mod will be ignored as this has nothing what so ever to do with that mod.

3. Anyone re-hosting the files code with new agents will be ignored as I don't have the time to comb through hundreds of agents to find whats new and add them to the main file. So, with that said new agents will only be accepted in the following formats and at which point they will be added to the main file.


--- Code: (If Spider) ---        array (
            'agent' => ' ',
            'spidername' => ' ',
            'spider' => true,
        ),

--- End code ---


--- Code: (If Phone) ---        array (
            'agent' => ' ',
            'name' => ' ',   
        ),

--- End code ---


--- Code: (If Browser) ---        array (
            'agent' => ' ',
        ),

--- End code ---

Edit: Since SMF seems to be stubborn (set) in their ways with permissions here I have to host the file off site at one of my forums, please feel free to register if you want since it's a multi platform gaming site. In any case, you can DL the file from the below link.

Custom Who.template.php

MoreBloodWine:
Request for the admins, please if you can allow me permissions to edit the main attached file as I only have the option to delete it.

Oya:

--- Quote from: MoreBloodWine on September 23, 2010, 05:49:53 PM ---Request for the admins, please if you can allow me permissions to edit the main attached file as I only have the option to delete it.

--- End quote ---

not without changing the whole permissions on this board so that everyone can upload attachments

MoreBloodWine:

--- Quote from: Oya on September 23, 2010, 06:18:11 PM ---
--- Quote from: MoreBloodWine on September 23, 2010, 05:49:53 PM ---Request for the admins, please if you can allow me permissions to edit the main attached file as I only have the option to delete it.

--- End quote ---

not without changing the whole permissions on this board so that everyone can upload attachments

--- End quote ---
Assuming that that is infact the case which it remains to be seen then I'll have to end up hosting it locally or some BS.

Edit: Come to think of it, if that is the case, with the team they have they could easily code in something simple. No I don't mean just for me but everyone as a whole who has a file thats part of their tip/trick.

Oya:
nto without altering smfs core code and they dont generally like doing that here because it makes upgrading harder

attachments are simply based on 'can post them in this board'

Navigation

[0] Message Index

[#] Next page

Go to full version