vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=36930)

DjSap 04-02-2002 10:00 PM

Toplist
 
The toplist hack allows people to add their sites to your toplist and send traffic to your site, in return you will send traffic to them.

This toplist script is pretty simple but it does the work, it has a cheat protection where it doesn't allow one ip to vote more then once a day on a certain site. It is completly template driven and will blend in with your vb design.

The installation is simple and the zip file contains install.txt where you will find instructions.

please post bugs/comments/suggestions here.

Floris 04-03-2002 10:41 AM

Dynamic IP can be a problem,
why not let a 'username/id' only vote once? Instead of an IP, since you say that the user has to be registered?

DjSap 04-03-2002 10:54 AM

the user has to be registered to sign up on the toplist, if the people vote from the persons site then you cannot be sure that they are signed up on your site.

rawnet 04-03-2002 11:24 AM

EXAMPLE

Have you got an example URL and some screen shots please?

Ross

DjSap 04-03-2002 11:59 AM

here is a screen of the toplist itself, this uses the default vd style.

PBC 04-03-2002 01:19 PM

It says to run the queries in topsite.sql.

Do I run that into the vBulletin database, or do I need to put that in another database?

DjSap 04-03-2002 01:22 PM

use the same db as vbulletin

Lesane 04-03-2002 01:43 PM

Pretty cool hack, i'm gonna install this one later. Thanks.

Neo 04-03-2002 03:55 PM

Very nice hack man. But I have to agree with xiphoid. I might install with... but I have In-Link :p

ZiRu$ 04-03-2002 04:10 PM

I'll install it later too....GREAT HACK

DjSap 04-03-2002 04:18 PM

im working on adding a rate site thingy right now, does anybody have any more suggestions?

Bald Bouncer 04-03-2002 04:57 PM

anyone got any idea why I cant run the query, using phpadmin and its saying no SQL to run??

DjSap 04-03-2002 07:07 PM

i only tested the file with phpMyAdmin, phpadmin might use a diffrent system, try copying all content from toplist.sql and paste it into the query box and run it.

Shroomboy 04-04-2002 01:27 AM

I suggest letting them have buttons (didn't see any on the preview)

ZiRu$ 04-04-2002 02:01 AM

Quote:

Originally posted by Shroomboy
I suggest letting them have buttons (didn't see any on the preview)
i think the top 3 should be able to have buttons

Lionel 04-04-2002 04:37 AM

works nice on 2.21. Installed took 30 seconds. Just a query and created a link.

Okiewan 04-04-2002 04:22 PM

after install... get a blank page with only this in the source:
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Thoughts?

Shroomboy 04-04-2002 07:17 PM

well what page did u go to? toplists.php or toplists.sql and you hvae to run the toplists.sql to make the tables... if u have PHPMyAdmin use that... oh and suggestions on the hack
1. Your site had a button with numbers on it...
2. You show that sitesbutton
3. The limit for description is longer then is (can't see where to change)
4. make more like a topsite that other sites have...
5. Make it have a choice of wheather only members of the forums can join or if anyone can...

Okiewan 04-04-2002 09:50 PM

yup..made the tables. Been a while since i tried to call a .sql from a browser :)

TheCaver 04-06-2002 01:35 AM

Works great, nice addition..........

JC

Okiewan 04-07-2002 02:32 PM

Bug? Seems that if there are mutiple template sets, the templates are not created ... if anyone cares about this hack anymore.... :)

lifesourcerec 04-07-2002 03:50 PM

Suggestion...

Modify it so that "Your Bulletin Board > Top List" links are at the top? That way users can click that instead of keep clicking "Back" to get back to the forum.

In Template toplist_menu

Before this:
Quote:

<normalfont><a href=toplist.php?s=$session[sessionhash]>Toplist</a> | <a href=toplist.php?s=$session[sessionhash]&action=add>Add Site</a> | <a href=toplist.php?s=$session[sessionhash]&action=edit>Edit Site</a></normalfont>
Add this:
Quote:

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top">
<img src="{ imagesfolder}/vb_bullet.gif" border="0" align="absmiddle"><normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt; Top Sites</normalfont></b>
</td>
</tr>
</table>
Remove the space between { and imagesfolder.

Okiewan 04-07-2002 04:10 PM

Made all the templates by hand... works fine. Can't actually say that the possible bug I reported is correct, I removed all of the "experimental" templates, leaving only one, then reinstalled, it still didn't make the templates (yes, ran the queries again).

Go figure..

NSeXcellent 04-07-2002 08:54 PM

Could someone explain "Run the queries in toplist.sql" a little better, for a not-so-sql-literate person? Thank you :D

mewgood 04-07-2002 11:57 PM

go to phpmyadmin and run toplist.sql

mewgood 04-10-2002 06:17 AM

why I get a blank page?
http://www.mewgood.com/~vbb/toplist.php

mewgood 04-11-2002 04:21 AM

anyone please?

Okiewan 04-12-2002 12:00 PM

Check to see if the install program made the templates as it's supposed to. It didn't on my site, I had to make them manually. You can do that by opening the install file, you'll see the templates there.

DjSap 04-12-2002 12:11 PM

well i found that there is a problem if you got many diffrent template sets, cuz the install file only adds the toplist templates to the default template set, the rest you have to do by hand or change the mysql query.

mewgood 04-13-2002 04:10 AM

can you please list in here, or please pm me about it? I don't get it..

mewgood 04-16-2002 05:05 AM

can anyone please post the templets out?

DjSap 04-16-2002 05:54 AM

Well this sql query should work on boards with many style sets.

To make this little thingie work you have to open template.php and around line 332 you will find this:

$only['calendar'] = 'Calendar';

Above it place

$only['toplist'] = 'Toplist';

mewgood 04-17-2002 04:17 AM

ar...
look please.
http://www.mewgood.com/~vbb/toplist.php
same it is a blank page..

Slynderdale 04-17-2002 07:14 PM

nice hack, im gonna use it but editing it a little so it uses your vbulletin account and pass to check if your an admin, if your an admin youll have access to the admin options instead of using the password varible so every admin on the forum, and other usergroups you give permission can access the admin section and instead og logging ip im changing it so it logs the users id so they must sign up on your forums first to rate.

mewgood 04-18-2002 10:43 PM

Quote:

Originally posted by mewgood
ar...
look please.
http://www.mewgood.com/~vbb/toplist.php
same it is a blank page..

anyoe can help me out?

Slynderdale 04-19-2002 04:29 AM

Ill be releasing a toplist edit shortly, i made some improvments and modifications to it, it will be as a toplist.hack file and a text file for those who dont have vbhacker.

Modifications:
The toplist will looks like this:

Site Name Added by username
description
[vote for this site]

and after a in and out will be vote so people can vote for the site

and if your a admin at the left will be a link [edit] [delete]

Admins will be able to edit the in and out count, the url, site name,sit name and description and be able to delete it, and a list all ability to see all the sites listed.

Im also gonna add a toplist section in the forum options so you can set the max sites to list, if users can post more then one site, if if you want the members to be registered to be able to vote, if not it uses ip detection, same for the in count.

DjSap 04-19-2002 05:46 AM

i got a rating thing done but im too lazy to rls an updated version, its better if you include it in your rls, hit me up on icq and ill give you the file additions.

Slynderdale 04-19-2002 06:26 AM

Heres what i have so far for the top list, i removed and edited some of the scripted, only admins can see the edit and remove links at the bottom of the site info, its a new template so if you want you could make them images

Slynderdale 04-19-2002 06:26 AM

Heres what the admin edit looks like

Slynderdale 04-19-2002 06:28 AM

Im gonna add voting next, members will be able to vote for a site once, im also adding some other modifications too, ill keep you inform


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.01245 seconds
  • Memory Usage 1,807KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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