vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

derekivey 10-17-2005 10:00 PM

Toplist
 
Toplist
Developer: derekivey
Version: 2.0.0
vBulletin Version: 3.5.5 (Seems to work fine on 3.6.0)
File Edits: 0
Template Edits: 2 (Optional)
New Phrases: 294
Uses Plugins: Yes!
Difficulty: Easy

Description: This hack adds a Toplist to your forums. You can choose in the AdminCP whether to rank the sites by their In hits or their Out hits. It is fully phrased to make it easy to translate to another language if you need to. The users are able to add a site, edit, or delete their site if they added it. The Administrators can Edit the users' sites or Delete them.
This hack is for vBulletin 3.5.5.

*** I Strongly Recommend That You Backup Your Database Before Installing/Upgrading This Hack! ***

Planned features for a later release:
  • Add Image Storage Setting (hot linking or upload)
  • Add Stats Page [ Will be released later ]
  • Add API to get site info onto non-vB pages and other vB pages.
  • Add Site Comment System
  • Fix bug with & not being allowed in URLs [ Done ]
  • Add Setting to choose where to put Toplist Sites Marquee
  • Whatever else is suggested
Change Log
The change log is now available here.

Screen Shots
I have added screen shots of this hack in action below.
More screenshots are located here.

Demo
You can find demo information here.

Translations
You can find a French translation of this hack here.

For a How To on Editing the Dynamic Image, See this Post.

Please click Install you installed this hack.


Thanks!

Chroder 10-17-2005 10:30 PM

Excellent work Derek :)

derekivey 10-17-2005 10:39 PM

Thanks! Also, Thanks for all your help :)

jugo 10-17-2005 10:52 PM

GREAT!!! Finally!!! This is what i've beenw aiting for...thanks.

Question...does this hack generate code to include in the listed site to count the hits?

concepts 10-17-2005 10:55 PM

when does it generate whether someone has clicked into the site? I clicked on both sites, looked around then came back to the toplists and the hit #'s were still the same?

derekivey 10-17-2005 11:02 PM

Quote:

Originally Posted by jugo
GREAT!!! Finally!!! This is what i've beenw aiting for...thanks.

Question...does this hack generate code to include in the listed site to count the hits?

Yes, when they add a site it shows them the html code to add to their site.

Quote:

Originally Posted by concepts
when does it generate whether someone has clicked into the site? I clicked on both sites, looked around then came back to the toplists and the hit #'s were still the same?

It only counts the out clicks if they user is logged in. I did this to prevent cheating. I might add the option to allow out clicks from guests in the next version. The in hits should have counted, it saves the IP address of the person who clicked in on the site and stops counting if their ip is already in the database for that site.

jesus likes pie 10-17-2005 11:28 PM

Hi derek! It's ATI! *waves*

What is this meant to....do.....is it for like...affiliates or something? I don't really understand.

EDIT: Is this the hack you didn't tell anyone on IRC about?

concepts 10-17-2005 11:32 PM

hmmm, well the in-clicks didn't count on either site I viewed.. don't get me wrong, I love this hack! and I already clicked install and downloaded it, but before putting this up, I want to make sure it actually works.. the in-clicks should count towards user clicks right?

for example: the traffic surfer links does not refresh at all it was 1 in 1 out before I clicked, 1 in 1 out after I clicked (4 times to make sure)

however this http://www.modbb.com/toplist.html although a phpbb, which I expect was the muse for this mod, auto updates on refresh (although its unfair because a user can click multiple times...

please clarify any errors?

Edit*
and what exactly is an in/out hit (Stupid Question, I know)
In hit - someone clicks the site link from the outside.
Out - when they leave the site?

derekivey 10-17-2005 11:39 PM

The one on my other site (ModBB) is someone elses mod.

The out hits don't count for guests. But for the in hits did you go to a link like this?

http://www.trafficsurfer.net/in.php?id=4 (thats for the ModBB site).

I just did it while being a guest and it counted it for me.

derekivey 10-17-2005 11:41 PM

Quote:

Originally Posted by jesus likes pie
Hi derek! It's ATI! *waves*

What is this meant to....do.....is it for like...affiliates or something? I don't really understand.

It lets the users add their site to it and people can look at it and if they are interested in a site they can click the link and be redirected to that site. The site gets ranked on hits into the forum or hits out to the user's site.


Quote:

Originally Posted by jesus likes pie
EDIT: Is this the hack you didn't tell anyone on IRC about?

No...

concepts 10-17-2005 11:46 PM

okay, installed at www.supaleague.com/board/toplist.php this works perfectly!

sorry for the confusion!

derekivey 10-17-2005 11:49 PM

No problem, glad you like it :)

Peace_Hope 10-18-2005 01:09 AM

That hack still needs a little work in my opinoin, like for instance, maybe have it so that the link that shows up for the user to put on their site should have a link saying:

Click Here to vote for our site over at xxxx.

with xxxx being the site with the toplist.

Just my ideas.

jugo 10-18-2005 01:23 AM

Quote:

Originally Posted by Peace_Hope
That hack still needs a little work in my opinoin, like for instance, maybe have it so that the link that shows up for the user to put on their site should have a link saying:

Click Here to vote for our site over at xxxx.

with xxxx being the site with the toplist.

Just my ideas.


That's easy just have to make a change to one file:

in add_site.php, change this to whatever you want the code to be:
Code:

$html = "{$vbphrase['toplist_add_successful']}<br />
        {$vbphrase['toplist_html_code_message']}:<br />
        <textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";

i am going to add something to mine that will allow me to specify the image to use. and maybe with a little GD code, it will display the current ranking on the image....

hmmmm....this is going to be fun.

derekivey 10-18-2005 01:37 AM

Quote:

Originally Posted by jugo
That's easy just have to make a change to one file:

in add_site.php, change this to whatever you want the code to be:
Code:

$html = "{$vbphrase['toplist_add_successful']}<br />
        {$vbphrase['toplist_html_code_message']}:<br />
        <textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";

i am going to add something to mine that will allow me to specify the image to use. and maybe with a little GD code, it will display the current ranking on the image....

hmmmm....this is going to be fun.

If you get something like that working, please share it :). I want to add something like that, where they can select a image that shows their current ranking.

Thanks :)

rblaze 10-18-2005 02:34 AM

Haha nice hack guys

Amazing what can be done when y'all aren't playing CS:S XD

Cya in #vbfans

~Blaze

JubeiSaotome 10-18-2005 04:30 AM

A perfect addition to my forum. Thanks.

Snake 10-18-2005 12:05 PM

What a great toplist hack. Thanks bro! :)

jesus likes pie 10-18-2005 01:29 PM

Quote:

Originally Posted by rblaze
Haha nice hack guys

Amazing what can be done when y'all aren't playing CS:S XD

Cya in #vbfans

~Blaze

ha...derek doesn't play CS:S :P

Chroder does though. So do I, but my hacks are newbish and most of the time useless. Oh well :)

See ya around blaze.

-ATI4EVER

The Realist 10-18-2005 02:34 PM

How can you change the code so that members have the opertunity to list more than one site. And whats needed so that admin can manually add a site via admincp.

Laters

Suzie 10-18-2005 02:43 PM

Quote:

Originally Posted by The Realist
How can you change the code so that members have the opertunity to list more than one site. And whats needed so that admin can manually add a site via admincp.

Laters

I need this as well.

yahoooh 10-18-2005 03:19 PM

i am using vBulletin 3.0.9 , i wait the port thanx

ThePimp 10-18-2005 03:59 PM

Is there a way to require a recip? Possibly a bit of code that reads the "Added" page and scans for a recip link on the page, and denies the site addition if one doesn't exist?

Most TopLists work off of the principal of getting more IN links, and if there isn't a check for recips, it will get cumbersome to try to keep up with all of the links and checking to be sure they don't remove your link.

Just a suggestion.

azmi 10-18-2005 06:06 PM

*installed* the hack - thanks for sharing!

but how about the incoming link?
it is only linked to the forum and not to the toplist !
is there any way to change it?

if you show for something how to make the Link with a button:
http://www.aardvarkind.com/

derekivey 10-18-2005 06:45 PM

Hey,

I'll try and release a new version in a few days to have most of those changes. Keep posting your ideas/suggestions, it helps me out a lot. Also ThePimp, I am looking into adding that feature as well.

derekivey 10-18-2005 06:54 PM

ThePimp, I'm not quite sure how to do that part, sorry.

Allan 10-19-2005 01:31 PM

no work with BBcode for description, damage :(

Suggestions, after add a site, a button is missing to return to toplist ;)

derekivey 10-19-2005 06:42 PM

Ok Thank You for telling me about the button missing. Also, why would you need BBCode for the description of the site?

Allan 10-19-2005 08:34 PM

Quote:

Originally Posted by derekivey
Ok Thank You for telling me about the button missing. Also, why would you need BBCode for the description of the site?

To put in fat or italic for example, for a description, it is always useful ;)

ps: Attach Files, the french language :)

derekivey 10-19-2005 08:45 PM

Ok, I'll look into it and see if I can add it. Also, thanks for translating it :). I will add it and give you credit for it.

Mr Chad 10-20-2005 04:20 AM

In.php isnt redirecting

derekivey 10-20-2005 07:23 PM

Should be. I've tested it on my test site and my live site...

Mr Chad 10-20-2005 09:06 PM

mine is just stopping, like it will credit for the redirect but it will stay at a blank page saying in the title redirexcting while the load is done.

derekivey 10-20-2005 09:11 PM

Can you give me your url, so I can take a look?

Thanks,
Derek

ctsolutions 10-21-2005 12:00 AM

@derekivey

I think your zip file is corrupt cose in "toplist.php" I have no "Add Site/Delete Site" link.

Code:

if($filename == 'toplist.php'){
    $userinfo['activity'] = 'Viewing Toplist';
} elseif($filename == 'add_site.php') {
                $userinfo['activity'] = 'Adding Site to Toplist';
} elseif($filename == 'delete_site.php') {
                $userinfo['activity'] = 'Deleting Site from Toplist';
} elseif($filename == 'out.php') {
                $userinfo['activity'] = 'Viewing Site';
}




Mike

derekivey 10-21-2005 12:13 AM

Nope, it's not corrupt. I just downloaded it. Everything is there. Maybe try downloading it again and reuploading the files in the upload folder.

Ramsesx 10-21-2005 08:01 AM

Thank you for this nice modification derekivey, but also I wish to can add sites from the acp or user more than only one site.

derekivey 10-21-2005 09:42 AM

Yeah, I'm going to add those features in the next release.

ctsolutions 10-21-2005 12:20 PM

Quote:

Originally Posted by derekivey
Nope, it's not corrupt. I just downloaded it. Everything is there. Maybe try downloading it again and reuploading the files in the upload folder.


Sorry, I have not see at the very bottom of the page the Add Site Link

I change the "toplist" template to be able to add sites on the top of the page:

find:


Code:

href="http://www.trafficsurfer.net">Derek Ivey</a></div></td>
</tr>


afther that add:

Code:

<a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a> |
 <a href="$vboptions[bburl]/delete_site.php">$vbphrase[toplist_delete_site]



Thanks
Mike

derekivey 10-21-2005 06:40 PM

Quote:

Originally Posted by ctsolutions
Sorry, I have not see at the very bottom of the page the Add Site Link

I change the "toplist" template to be able to add sites on the top of the page:

find:


Code:

href="http://www.trafficsurfer.net">Derek Ivey</a></div></td>
</tr>


afther that add:

Code:

<a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a> |
 <a href="$vboptions[bburl]/delete_site.php">$vbphrase[toplist_delete_site]



Thanks
Mike

Ok, great. Glad you got it fixed.


All times are GMT. The time now is 06:21 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.02601 seconds
  • Memory Usage 1,833KB
  • 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
  • (7)bbcode_code_printable
  • (11)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
  • (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