vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Top XX Posters (https://vborg.vbsupport.ru/showthread.php?t=12067)

tubedogg 03-21-2001 10:00 PM

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

FEEDBACK WANTED! :) Likes/dislikes/modification requests, please. :D

03-22-2001 10:51 PM

thanks, looks good.

03-23-2001 01:16 PM

I can't call it in?!?
I have done this sort of thing befor, and this isnt working? Hummmm . . .

03-23-2001 03:18 PM

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

03-23-2001 04:55 PM

kickass! :)

03-24-2001 08:30 PM

Okay I have this setup but how do I include it into an .html file?

03-24-2001 10:20 PM

You can't. You must either use an extension of .php or .shtml, as described in the instructions above.

03-24-2001 10:39 PM

no man, somthings wonky!
my server supports SSI
the file is SHTML
I donno whats wrong! I checked everything!
*pulls hairout*

snyx

03-24-2001 10:41 PM

Have you gotten the topposters.php to work separately? (e.g. upload it somewhere and go directly to it - myserver.com/topposters.php)

03-24-2001 11:31 PM

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

03-25-2001 01:14 AM

thanks, i thought i installed it wrong :P

03-25-2001 01:17 AM

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?

03-25-2001 01:22 AM

I'll work on leaving admins out.

Did you change $path2 = "board/admin" to $path2 = "forum/admin" ? That should've worked.

03-25-2001 01:24 AM

thats what im talking bout, I changed that, but it sisnt work

03-25-2001 01:28 AM

Are you putting the file in the forum directory or somewhere else?

03-25-2001 01:45 AM

I updated the first post with the latest version, which now gives an option to exclude admins from the list.

03-25-2001 01:59 AM

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

03-25-2001 08:18 AM

tubedogg, your a genious
thankz man!

04-01-2001 04:00 PM

Whaouuuu
You are making a lots of very nice hack guy!!!
Congrats!!

04-02-2001 05:01 PM

well a quick question where do i put the include....
cuz i want it to display on the main page?

04-03-2001 01:10 AM

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.

04-03-2001 02:57 AM

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?

04-03-2001 04:30 AM

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.

04-03-2001 04:47 AM

dito: I'll see what I can do about a version to use on the index.php vB page.

dito 04-04-2001 03:09 AM

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

jojo85 04-04-2001 10:11 AM

<a href="http://www.agnfr.com/portail/index.php" target="_blank">http://www.agnfr.com/portail/index.php</a>

zoaner 04-14-2001 07:06 AM

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:

maverick1236 05-18-2001 03:30 AM

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

tubedogg 05-18-2001 07:09 AM

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"

maverick1236 05-19-2001 10:09 AM

IT WORKED!

c-pr0mpt 05-22-2001 03:54 AM

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?

c-pr0mpt 05-22-2001 04:12 AM

Nevermind I fixed it. Was very simple. Should have looked harder before.

snyx 05-22-2001 04:30 AM

Can I please see a working update for vB 2.0 FINAL, PLEASE?!? :D

Rosevalley 05-23-2001 07:30 AM

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 ?

AnnaFan 06-02-2001 01:31 PM

Hi,

where must I include the topposters.php? In which file? Thanx.

tubedogg 06-02-2001 03:31 PM

In whatever file you want it to appear.

AnnaFan 06-02-2001 03:42 PM

hi,

in every which is possible.

Brickhouse 06-08-2001 08:34 AM

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!

tubedogg 06-08-2001 03:45 PM

Remove the / before admin in the $path.

Brickhouse 06-10-2001 12:18 AM

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
  • Page Generation 0.01391 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete