Results 1 to 15 of 92
Page 1 of 7
FirstFirst 1 2 3 ... LastLast

Thread: [RELEASE v2] Top XX Posters

  1. #1
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647

    Updated to v0.0.4

    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.

    FEEDBACK WANTED! Likes/dislikes/modification requests, please.
    Last edited by tubedogg; Mon 26th Mar '01 at 3:18am.
     

  2. #2
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    thanks, looks good.
     

  3. #3
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    I can't call it in?!?
    I have done this sort of thing befor, and this isnt working? Hummmm . . .
     

  4. #4
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    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.)
     

  5. #5
    New Member Vociferous is on a distinguished road
    Join Date
    Feb 2001
    Posts
    20
    kickass!
     

  6. #6
    Senior Member Joshs has disabled reputation Joshs's Avatar
    Join Date
    Jan 2001
    Location
    hytekhosting.com
    Posts
    1,024
    Okay I have this setup but how do I include it into an .html file?
     

  7. #7
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    You can't. You must either use an extension of .php or .shtml, as described in the instructions above.
     

  8. #8
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    no man, somthings wonky!
    my server supports SSI
    the file is SHTML
    I donno whats wrong! I checked everything!
    *pulls hairout*

    snyx
     

  9. #9
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    Have you gotten the topposters.php to work separately? (e.g. upload it somewhere and go directly to it - myserver.com/topposters.php)
     

  10. #10
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    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?
     

  11. #11
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    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.
     

  12. #12
    Member Da_Gem is on a distinguished road
    Join Date
    Dec 2000
    Posts
    60
    thanks, i thought i installed it wrong :P
     

  13. #13
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    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?
     

  14. #14
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    I'll work on leaving admins out.

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

  15. #15
    Senior Member snyx has disabled reputation snyx's Avatar
    Join Date
    Aug 2000
    Location
    Vancouver, BC, Canada (whistler.2010)
    Posts
    1,073
    thats what im talking bout, I changed that, but it sisnt work
     

Page 1 of 7
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. [RELEASE v2] 0-Posters, active posters, inactive posters display hack.
    By DEMOLiTiON in forum Releases: Version 2.x
    Replies: 14
    Last Post: Sun 14th Oct '01, 5:41pm
  2. [RELEASE v2] Top XX Posters
    By Pie'oh'pah in forum Releases: Version 2.x
    Replies: 0
    Last Post: Mon 23rd Jul '01, 8:57pm
  3. Cont.: [RELEASE v2] Top Posters
    By NickyNet in forum Releases: Version 2.x
    Replies: 6
    Last Post: Tue 5th Jun '01, 12:16am
  4. [RELEASE v2] Top Posters
    By tubedogg in forum Releases: Version 2.x
    Replies: 43
    Last Post: Sun 13th May '01, 11:38pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts