Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Toplist Details »»
Toplist
Version: 2.0.0, by derekivey derekivey is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 10-17-2005 Last Update: 01-04-2007 Installs: 412
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

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!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #742  
Old 06-03-2006, 02:54 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way guys. Here are some screenshots of my progress so far. So far I have the feature that checks to see if the code has been added to their site done. I just need to make the cronjob that can automatically check it and validate it. The code checking feature is optional and can be disabled or enabled in the settings. All it does is looks for the board URL on each site and validates the site if it is found.

Derek
Reply With Quote
  #743  
Old 06-03-2006, 03:09 PM
Mr.D Mr.D is offline
 
Join Date: Feb 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great when can we aspect the release
Reply With Quote
  #744  
Old 06-03-2006, 03:16 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure when, I've been busy studying for finals which are Tuesday and Wednesday. So hopefully after those 2 days sometime maybe, before, I don't know exactly when.
Reply With Quote
  #745  
Old 06-05-2006, 12:33 AM
vonedaddy's Avatar
vonedaddy vonedaddy is offline
 
Join Date: Jan 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, I have one small problem. The dynamic image.png button does not work, I editted according to your directions in post #450. Any ideas?
Reply With Quote
  #746  
Old 06-05-2006, 01:10 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you paste the contents of it here in tags please?

Thanks,
Derek
Reply With Quote
  #747  
Old 06-06-2006, 04:20 AM
vonedaddy's Avatar
vonedaddy vonedaddy is offline
 
Join Date: Jan 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<?php 

/*======================================================================*\
|| #################################################################### ||
|| # Toplist Hack - Version 1.0.6                      # ||
|| # For vBulletin 3.5.3                          # ||
|| # ---------------------------------------------------------------- # ||
|| # By Derek Ivey (derek@modbb.com)                      # ||
|| # This hack may not be redistributed without my written permission # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ########################### 
error_reporting(E_ALL & ~E_NOTICE); 

// #################### DEFINE IMPORTANT CONSTANTS ####################### 
define('NO_REGISTER_GLOBALS'1); 
define('THIS_SCRIPT''toplist_dynamic_image');

// ######################### REQUIRE BACK-END ############################
// change the following to the path to your forum, with no ending slash.
chdir('/home/u1/vonaone/html/forum');
require_once(
'global.php'); 

// ####################################################################### 
// ######################## START MAIN SCRIPT ############################ 
// #######################################################################

// ############################## MISC STUFF #############################
header("Content-type: image/png"); 
$image imagecreatefrompng("images/toplist/buttons/dynamic/background.png");  
$color imagecolorallocate($image00255);
$font 3;

// ######################### GRAB INFO FROM DB ###########################
//$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='8'";
$sql "SELECT * FROM " TABLE_PREFIX "toplist_sites WHERE id='".$db->escape_string($_GET['id'])."'";
$sqlr $db->query_read($sql);
$sr $db->fetch_array($sqlr);

if (
$vbulletin->options['toplist_ranking_method'] == 0)
{    
    
$order '`in`';
}
else if (
$vbulletin->options['toplist_ranking_method'] == 1)
{
    
$order 'out';
}
else if (
$vbulletin->options['toplist_ranking_method'] == 2)
{
    
$order 'rating_average';
}
else
{
    
$order '`in`';
}

$rank1 "SELECT * FROM " TABLE_PREFIX "toplist_sites ORDER BY ".$order." DESC";
$rank2 $db->query_read($rank1);
$i 1;
while(
$rank3 $db->fetch_array($rank2))
{
    if (
$rank3['id'] == $_GET['id'])
    {
        
$rank $i;
    }
    else
    {
        
$i++;
    }
}

// ############################# CREATE IMAGE ############################
imagestring($image$font4428$rank$color);
imagestring($image$font5242$sr['in'], $color);
imagestring($image$font6256$sr['out'], $color);
imagestring($image$font5270$sr['rating_average'], $color);
imagestring($image2583$sr['name'], $color);

imagepng($image); 
imagedestroy($image);
?>
Reply With Quote
  #748  
Old 06-06-2006, 09:44 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See what the permissions are for that file. Make sure it has execute permissions (CHMOD 755). Please let me know if that fixes it.

Thanks,
Derek
Reply With Quote
  #749  
Old 06-06-2006, 11:46 AM
vonedaddy's Avatar
vonedaddy vonedaddy is offline
 
Join Date: Jan 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
See what the permissions are for that file. Make sure it has execute permissions (CHMOD 755). Please let me know if that fixes it.

Thanks,
Derek
No Sir, any other ideas?
Reply With Quote
  #750  
Old 06-06-2006, 07:25 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure the .htaccess file is in that folder and also make sure your host supports .htaccess and also has GD.
Reply With Quote
  #751  
Old 06-06-2006, 09:59 PM
vonedaddy's Avatar
vonedaddy vonedaddy is offline
 
Join Date: Jan 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by derekivey
Make sure the .htaccess file is in that folder and also make sure your host supports .htaccess and also has GD.
Yes to all of the above, we use gd 2 btw.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05259 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete