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 05-28-2002 05:41 AM

Toplist 2.0 should be done today or tomarrow, if you have any ideas or requests post them, if there good ill add them in 2.0

New Features of 2.0:

Members can add a image on there site that records daily and total page hits.

Admins can reset sites and set there stats all back to 0.

A random banner and button code that shows a random buttom or banner when the page refreshes and if you click on it, it counts as an out for that site and it takes you to that site.

A bug fix in the old version that if a site has over 10 votes some times its gets placed at the bottom or middle and ones wirh 5,6,7 and so on gets placed higher.

also an idea, an admin reset and delete all, if you wish these to be added, please post and tell me and tell me if you have any other ideas.

Slynderdale 05-28-2002 06:10 AM

Quote:

Originally posted by ceo_tfw
can you let us know where the nav.gif is? when you click on the small button link to a members site to get code, the two buttons seem to be broken :)
i replaced all my > with a image instead of >, makes it look a little better and it matches my custom style i made, just change it to > and ill also attach the image if you want it.

countryboy713 05-28-2002 09:22 AM

What i was really looking forward to, if you can, is the page views count for votes. When they put my button on their page and it gets viewed, it counts as a vote.

Is this still possible?

Slynderdale 05-28-2002 09:51 AM

Quote:

Originally posted by countryboy713
What i was really looking forward to, if you can, is the page views count for votes. When they put my button on their page and it gets viewed, it counts as a vote.

Is this still possible?

ill make it the way i have planned then when thats done ill edit it to how you want it and ill post it for you :)

Seby 05-28-2002 12:23 PM

thanks that you will implement the page views thing ;) Will be a great hack when done I think. Would be cool if you could make an option in the admin interface to choose wether you want a "voting" list of a "pageviews" list. So if people sign up they either get a vote image or an image that counts the pageviews.
Just an idea though.

Thanks,
Sebastian

Princeton 05-29-2002 05:50 AM

Some things just didn't make sense to me so I ....
Changed a few things:
permissions, I'm using only buttons I removed all references to banners, BUTTON CODE displays when in EDIT section only, added refferid to vote url {reciprocal link}, made the front page valid HTML, added a help section (actually this was already part of my site ... you never know), added a dialog box to confirm deletion.

Besides doing all these (personal) changes, I think you did a great job.:up: What would make this even better is the ability to count incoming hits site-wide. eg. no need to click on a vote url or a banner to count as a hit

You can check it out at total-impact.com. Add your site if you like ... read the guidelines before you do.

Seby 05-31-2002 05:10 PM

so you gonna release the hack soon? I am waiting :D

ULTIMATESSJ 05-31-2002 07:57 PM

i got a proble while trying to run the query for this

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: DROP TABLE IF EXISTS toplist_hitsin;
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_increment,
topid int(11) NOT NULL default '0',
accountid varchar(20) NOT NULL default '',
date varchar(20) NOT NULL default '',
PRIMARY KEY (inid)
)
mysql error: You have an error in your SQL syntax near ';
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_incremen' at line 1

mysql error number: 1064

Date: Friday 31st of May 2002 04:52:43 PM
Script: http://www.animexplosion.com/forums/...dmin/query.php
Referer: http://www.animexplosion.com/forums/admin/query.php

Slynderdale 06-01-2002 02:37 AM

Quote:

Originally posted by ULTIMATESSJ
i got a proble while trying to run the query for this

Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: DROP TABLE IF EXISTS toplist_hitsin;
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_increment,
topid int(11) NOT NULL default '0',
accountid varchar(20) NOT NULL default '',
date varchar(20) NOT NULL default '',
PRIMARY KEY (inid)
)
mysql error: You have an error in your SQL syntax near ';
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_incremen' at line 1

mysql error number: 1064

Date: Friday 31st of May 2002 04:52:43 PM
Script: http://www.animexplosion.com/forums/...dmin/query.php
Referer: http://www.animexplosion.com/forums/admin/query.php

run the queries one by one with phpmyadmin, fire flies query in admin cp or another query tool

Slynderdale 06-01-2002 02:38 AM

Quote:

Originally posted by Seby
so you gonna release the hack soon? I am waiting :D
soon, power went out all day today and yesterday and my mom just came out of the hospital, ive been a little busy, ive been working on the scripted though and adding alot of new stuff

ULTIMATESSJ 06-01-2002 10:00 AM

Quote:

Originally posted by Slynderdale

run the queries one by one with phpmyadmin, fire flies query in admin cp or another query tool

isn't this just one query

DROP TABLE IF EXISTS toplist_hitsin;
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_increment,
topid int(11) NOT NULL default '0',
accountid varchar(20) NOT NULL default '',
date varchar(20) NOT NULL default '',
PRIMARY KEY (inid)
)

Slynderdale 06-01-2002 10:05 AM

Quote:

Originally posted by ULTIMATESSJ


isn't this just one query

DROP TABLE IF EXISTS toplist_hitsin;
CREATE TABLE toplist_hitsin (
inid int(11) unsigned NOT NULL auto_increment,
topid int(11) NOT NULL default '0',
accountid varchar(20) NOT NULL default '',
date varchar(20) NOT NULL default '',
PRIMARY KEY (inid)
)

no, 2

the drop table is one and the create table is one

Seby 06-01-2002 01:15 PM

Quote:

Originally posted by Slynderdale


soon, power went out all day today and yesterday and my mom just came out of the hospital, ive been a little busy, ive been working on the scripted though and adding alot of new stuff

Thanks a lot Slynderdale ;) Keep up the great work!

Sebastian

xug 06-06-2002 07:39 AM

Thanks Slynderdale for this cool hack.

I do have one cosmetic bug and can't figure it out where the problem could be.

Maybe you can tell me what's wrong with my script.

The bottom links from vbulletin are messed up, take a look here :

http://www.xboxusersgroup.com/forums/toplist.php?s=

techno 06-09-2002 04:54 PM

Having a problem...

Seems like after a site gets a few votes, they are placed at the bottom of the list...hmmm :(

Slynderdale 06-09-2002 05:56 PM

Quote:

Originally posted by techno
Having a problem...

Seems like after a site gets a few votes, they are placed at the bottom of the list...hmmm :(

im working on a fix for 2.0

techno 06-09-2002 06:01 PM

ok, thanks

ManagerJosh 06-14-2002 03:30 PM

Great Hack Slynderdale

Looking forward to version 2.0! How soon can we expect it?

psychoxmonkee 06-17-2002 01:27 AM

yah
how soon?

X-Fan 06-17-2002 05:53 AM

Cool hack! Will prove very popular with my site's members, I'm sure.

http://x-mencomics.com/xfan/forums/toplist.php?s=

ManagerJosh 06-17-2002 07:47 AM

Here is a patch to correct the sorting issue on the toplist. This corrects the sorting issue though I'm not sure what Slynderdale had in mind.

This addresses the problem earlier stated by Slynderdale:
Quote:

A bug fix in the old version that if a site has over 10 votes some times its gets placed at the bottom or middle and ones wirh 5,6,7 and so on gets placed higher.
This patch adjusts settings in the MySQL so that it handles the sorting properly.

Be Sure to Back Up Your Database in case something happens.

Run the following MySQL query in PhpMyAdmin:
PHP Code:

ALTER TABLE `toplist_sitesCHANGE `topid` `topidINT(11UNSIGNED NOT NULL AUTO_INCREMENT

After running the MySQL Query, log out of your Database, and view your TopList. It now sorts properly. In Version 2.0, I'm not sure what changes will be made to sort it properly, but hopefully what I did is what Slynderdale had in mind.

Enjoy!

Andy R 06-24-2002 03:57 AM

A couple of questions...

1. Can I run this script from a different domain on the same server? Instead of having it run on www.airstreamforums.com I would like to run it from www.airstreamsites.com. Kind of like how I have PhotoPost integrated @ www.airstreamphotos.com...

2. I have clicked on many of the demo links but they all seem to not be live anymore? Can you post a live demo link?

THANKS A TON FOR YOUR HARD WORK!!!

I look forward to installing this hack!

psychoxmonkee 06-27-2002 02:55 PM

yeah, if you have safemode off, you can include the directories USING THE FULL SYSTEM PATH: e.g. /usr/home/domain/www/toplist.php

Robert Basil 06-28-2002 02:39 AM

Added and running great. (With a few little code hacks)

http://www.sportbikeworld.com/toplist.php

psychoxmonkee 07-05-2002 06:03 PM

new version out yet???

FleaBag 07-08-2002 04:21 PM

Sweet hack, running well on 2.2.6 - thanks! :D

Ninth Dimension 08-07-2002 07:12 PM

/me clicks install

very good hack, any news on v2.0?

Slynderdale 08-07-2002 11:29 PM

Sorry about the hold up. my webhost been down for the past month so all my projects are on hold, sorry every one, as soon as it goes back up ill finish the toplist hack

Tim Wheatley 08-08-2002 12:31 AM

Excellent. Works great. :)

Gonna have to alter the templates a little (for example tell people what size buttons/banners have to be) and explain what in out means even. ;)

But superb stuff! :D

Vivi Ornitier 08-08-2002 10:06 PM

umm . . u guys think u can write a script to add the templates automatically? i don' twanna add 30 new ones b y hand

xug 08-12-2002 03:00 AM

Any news on V2??

FleaBag 09-03-2002 02:48 PM

Works with 2.2.7, thanking you. ;)

NexDog 09-03-2002 11:22 PM

Looking forward to v2.0. Slynderdale, if you want some help with hosting, give me a shout. :)

FleaBag 09-04-2002 07:18 AM

Eagerly awaiting version 2. ;)

NexDog 09-10-2002 12:08 PM

I hope Slynderdale gets back to this fine place soon. I have 3 issues that I need to resolve before hitting that prestigous "Install" button. :D

1) No top nav links at all.
2) Bottom links crushed and hiding behind the main topsites area.
3) No way to enter any width and height parameters to buttons and banners.

It's there, nice and messy:

http://www.hostnexus.com/forum/toplist.php

I might remove the banner altogether as another member did....

NexDog 09-10-2002 01:35 PM

No worries, worked it out. Will launch it everyone soon

FleaBag 10-29-2002 09:35 PM

Working with 2.2.8. The queries needed to be rearranged though.

Chris M 10-29-2002 10:13 PM

Please Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

Iori Yagami 11-05-2002 07:33 AM

*sniff* I wanted to install it on my board (2.2.8.) but I only get a lot of SQL errors. *sniff*

[cries].. but.. but this hack is so cool... need it[/cries]

Warlord 11-08-2002 04:19 AM

I like...:)

'Clicks install'


All times are GMT. The time now is 09:51 PM.

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.01432 seconds
  • Memory Usage 1,821KB
  • 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
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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