![]() |
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. http://kevin.tubescan.com/i/topposters.jpg 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
Instructions are included in the zip file (topposters.txt) and brief instructions are also in the topposters.php file itself. FEEDBACK WANTED! :) Likes/dislikes/modification requests, please. :D |
thanks, looks good.
|
I can't call it in?!?
I have done this sort of thing befor, and this isnt working? Hummmm . . . |
You mean you can't include it? Did you double-check the path set towards the top? (Remember, not to /admin, just to the main forums directory.)
|
kickass! :)
|
Okay I have this setup but how do I include it into an .html file?
|
You can't. You must either use an extension of .php or .shtml, as described in the instructions above.
|
no man, somthings wonky!
my server supports SSI the file is SHTML I donno whats wrong! I checked everything! *pulls hairout* snyx |
Have you gotten the topposters.php to work separately? (e.g. upload it somewhere and go directly to it - myserver.com/topposters.php)
|
Im getting this:
Code:
Fatal error: Failed opening required '/forum/admin/config.php' (include_path='.:/usr/local/lib/php') in /home2/form-kaos/www/forum/topposters.php on line 12 |
thanks, i thought i installed it wrong :P
|
Okay I got it to work (thanks for that) but you had a problem with path2, I had to change $path2/admin to forum/admin I donno why it didnt work?
Next, is there any way to leave the admins out of it? Cuz 2 of the 5 admins have top 10 posts, any ideas way yo leave admins out? |
I'll work on leaving admins out.
Did you change $path2 = "board/admin" to $path2 = "forum/admin" ? That should've worked. |
thats what im talking bout, I changed that, but it sisnt work
|
Are you putting the file in the forum directory or somewhere else?
|
I updated the first post with the latest version, which now gives an option to exclude admins from the list.
|
That is a bug due to my sloppy coding. :)
I apologize for the inconvenience. Please redownload the zip file from the first post in this thread and try again. :) |
tubedogg, your a genious
thankz man! |
Whaouuuu
You are making a lots of very nice hack guy!!! Congrats!! |
well a quick question where do i put the include....
cuz i want it to display on the main page? |
Which main page? The vB's main page or your site's main page? It is designed to go on an external page (e.g. the main page of your site), not a page inside the vB.
|
i would love to see it on the index.php page of my vb site is it possible?
and if not then could u tell me how i can put in another button like the profile and search and faq....etc? |
dito,
The include would go on the main index.html file for your site if you want it to show up on your home page. You can take a look at my site to get an idea. |
dito: I'll see what I can do about a version to use on the index.php vB page.
|
hehe:) that would be great tubedogg hope u work something out!!
thanx in advance :D:D:Dmaybe u would contact me when and if u found a way to get it on the index.php ! icq:71547154 |
<a href="http://www.agnfr.com/portail/index.php" target="_blank">http://www.agnfr.com/portail/index.php</a>
|
I'm trying to put it on my phpwebsite portal and it doesn't let me include it on my mainpage, I don't know why but it doesn't insert it and my script is ok because I can see it using a shml file..... Any idea?
Also, the admins still in the list Thanks, it will bee nice when I'll get it done:cool: |
Warning: Failed opening 'upload/admin/config.php' for inclusion (include_path='') in h:\nusphere\apache\htdocs\upload\admin\topposters. php on line 59
this is what i see after installimg the topposters hack |
You will need to move your topposters.php file up one directory, to h:\nusphere\apache\htdocs\upload\topposters.php and then adjust your $path to just "admin"
|
IT WORKED!
|
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 It goes forum/admin/member.php How can I fix this? |
Nevermind I fixed it. Was very simple. Should have looked harder before.
|
Can I please see a working update for vB 2.0 FINAL, PLEASE?!? :D
|
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 ? |
Hi,
where must I include the topposters.php? In which file? Thanx. |
In whatever file you want it to appear.
|
hi,
in every which is possible. |
I keep getting this error:
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 Please help, thanks! |
Remove the / before admin in the $path.
|
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 ///////////// Please help? |
All times are GMT. The time now is 05:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|