Version: , by tubedogg
Developer Last Online: Dec 2016
Version: 2.2.x
Rating:
Released: 03-21-2001
Last Update: Never
Installs: 8
No support by the author.
LAST UPDATED: 3.26.01 2:10 AM Eastern
I put together a little thing to show the top XX posters on your board. It can be used on a non-vB page. The username is a link to the member's profile.
Hack version: 0.0.4
Changes from version 0.0.1: Fixed a small bug with the path. Changes from version 0.0.2: Added option to exclude admins from list of posters. Changes from version 0.0.3: Fixed alternating colors so they are horizontal, not vertical. Changed $path to $url and $path2 to $path to make variables easier. Added a seperate header row color.
For version: 2.0.0 beta 3 (possibly also beta 1 and beta 2, but it is untested with those versions).
Files needed: topposters.php (see attached zip file below).
Files to edit: topposters.php (see instructions below).
Possible file locations: Anywhere, so long as the $path is set correctly.
Instructions
Unzip the file topposters.php from topposters004.zip to your hard drive.
Open topposters.php in an ASCII text editor, such as Notepad (Windows), SimpleText (Mac), EditPlus, UltraEdit, TextPad, etc. (DO NOT use WYSIWYG HTML editors such as FrontPage, HotDog, DreamWeaver, etc. They will in all likelyhood screw up the file! I will not be able to support you if you edit the file in one of these programs.)
Edit the variables at the top. These are:
---$maxposters > This is the number of posters you want to show.
---$hc > Set this to the color you want the header row to be.
---$bc1 and $bc2 > These are the first and second alternating colors. Look at the picture in the vbulletin.com thread and you'll see what I mean.
---$text and $link > Set the colors of the main text and the color of the links. Make sure this color is visible on both alternating colors, set in step 3b.
---$font > This is the font(s) to use for display. You can set specific fonts (e.g. Verdana, Arial, etc.) or general font-families (e.g. sans-serif, serif).
---$fontsize > Set a point size for your font. Size 8 is about equivelant to <font size=1>. Anything below about 6 will basically be undreadable, so be careful.
---$url > This is the path to your board files, such as index.php, members.php, etc. This is *not* the path to config.php (e.g. don't include the /admin part of the URL)!
---$path > This is the path to config.php - normally in the /admin directory. Do not add a trailing slash. It may need a leading slash.
---$admins > If you want admins included on the list of posters, set this to 1. If you do *not* want admins included, set this to 0.
Upload it to your website. You can include it as follows. To include it on a PHP-parsed page (.php, .php3, .phtml, etc.):
Code:
<? include("topposters.php"); ?>
To include it on a server-parsed page (.shtml, .shtm, .ssi, etc.):
Code:
<!--#include file="topposters.php"-->
Instructions are included in the zip file (topposters.txt) and brief instructions are also in the topposters.php file itself.
I installed this hack and it works, but the problem is that the links to their member files goes into the admin directory. So instead of
forum/member.php
Nice hack mate, I had it working in 3minutes in vbb 2.0 final.
I have only one question is het possible to have only the top poster of today and that it only counts if you make a new thread not a replay, so you will get a list with today guys who started a new post. Is this possible ?
Fatal error: Failed opening required '/admin/config.php' (include_path='.:/usr/local/lib/php') in /home/onlinega/public_html/forum/topposters.php on line 59
I don't have a slash before the admin. Here I'll show you what my config looks like:
/////////////// CONFIG ///////////////
//
$maxposters = "3"; // change this to the number of posters you want to show. for a top 10 listing, set it to 10, etc.
$hc = "#999999"; // change to head row color.
$bc1 = "#696969"; // change to first alternating color.
$bc2 = "#5C5C5C"; // change to second alternating color.
$text = "#FFFFFF"; // change to text color.
$link = "#EEEEEE"; // change to link color.
$font = "Verdana,Helvetica,sans-serif"; // change to fonts you want. use serif or sans-serif for general, or use specific fonts names.
$fontsize = "8pt"; // change to font size you want. 8 is about the minimum; go up from there. 1 will not even show up.
$url = "http://216.10.11.101/forum/index.php"; // path to your board files. (e.g. index.php, member.php, etc.) may need a starting slash. *do not* put an ending slash on!
$path = "admin/config.php"; // path to your config.php file. may need a starting slash. *do not* put an ending slash on!
$admins = "0"; // change this to "0" to leave admins off the list of top posters.
//
///////////// END CONFIG /////////////