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)
-   -   Toplist Hack (https://vborg.vbsupport.ru/showthread.php?t=38076)

Slynderdale 04-29-2002 10:00 PM

Toplist Hack
 
This isnt the same as Dj'Sap's toplist scripted, i scripted my own, i do give him credit for the original and giving me the idea to make my own, my toplist has alot of cool features and easy to use.
It let members add one site only to the toplist where only other members can vote for it, the site with the most votes get higher on the list.

Members can only vote once a day though.
Members can also add a banner and image button if they want
People can click on the banner or button and will be taking to a page with the code to add the banner or button to there site to link them to the toplist to vote.
Theres 2 ways to vote:
1. go to the toplist and click vote on the site
2. Theres two kinds of links, one brings you to the toplist and automaticly vote for you and the other automaticly vote for you but brings you to the site you voted for

You have to sign up on the forums to vote

It keeps track on how many total an d daily ins (votes) and outs

Admins can see a specail edit and delete link next to the vote link, admins can delete any site and edit almost every thing about it, including url, description, title, button and banner url, total and daily ins and outs.

Admins are allowed to add more then one site

People can choose from a drop down menu on how many toplists get showed on there screen, the default is 50, you can choose from 10,25,50,75,100 and all, you can esily add more if you want.

Some screens shots are in the zip file.

[edit]
Heres a live demo: http://www.gods-network.com/forums/toplist.php

Also screen shots are posted in posts below
[/edit]

Slynderdale 04-30-2002 03:21 PM

Heres what the main toplist page looks like.

John 04-30-2002 03:25 PM

Looks good :)

Slynderdale 04-30-2002 03:32 PM

Quote:

Originally posted by JohnWarwick
Looks good :)
thanks :)

ExcErr 04-30-2002 03:42 PM

can i have a working demo?

Slynderdale 04-30-2002 04:19 PM

i just fixed a small bug, its nothing major, i updated the zip

if you already downloaded it, in toplist.php find in the show button code section:
PHP Code:

$button="<a href=\"toplist.php?action=in&topid=$topid\" target=\"_blank\"><img src=\"$buttonurl\" border=0 height=33 width=88 alt=\"$siteurl\"></a>"

and replace it with:
PHP Code:

$button="<a href=\"$bburl/toplist.php?action=in&topid=$topid\" target=\"_blank\"><img src=\"$buttonurl\" border=0 height=33 width=88 alt=\"$siteurl\"></a>"

find in the show banner code section:
PHP Code:

$banner="<a href=\"toplist.php?action=in&topid=$topid\" target=\"_blank\"><img src=\"$bannerurl\" border=0 height=60 width=468 alt=\"$siteurl\"></a>"

and replace it with:
PHP Code:

$banner="<a href=\"$bburl/toplist.php?action=in&topid=$topid\" target=\"_blank\"><img src=\"$bannerurl\" border=0 height=60 width=468 alt=\"$siteurl\"></a>"

i forgot to add the $bburl

Slynderdale 04-30-2002 05:13 PM

If any one wanna use it or edit it, heres a blue toplist button i made

Neo 04-30-2002 07:07 PM

Nice... but I think I will stick with my In-Link :)

ZiRu$ 04-30-2002 07:49 PM

Thats great! I'll install it this weekend

Slynderdale 04-30-2002 08:03 PM

heres the admin edit screen


All times are GMT. The time now is 02:47 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.02532 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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