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
  #642  
Old 04-14-2006, 10:47 AM
Traxdata Traxdata is offline
 
Join Date: Jul 2004
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ramsesx
Thanks Derek. So far it is now ok, I reuploaded the images. But now if I want to add a new site get the error:
Sorry, your image could not be uploaded because the format of it is not allowed. Allowed formats are GIF, JPEG, and PNG
etc.
If adding the site through the acp it's working fine.
the same here.
Reply With Quote
  #643  
Old 04-14-2006, 11:10 AM
Traxdata Traxdata is offline
 
Join Date: Jul 2004
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great. now when im trying to add an image i get error message

Warning: move_uploaded_file(images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR): failed to open stream: No such file or directory in /add_site.php on line 125

Warning: move_uploaded_file(): Unable to move '/tmp/phpCaSyrq' to 'images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR' in /add_site.php on line 125

Warning: getimagesize(images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR): failed to open stream: No such file or directory in /add_site.php on line 127


i changed nothing.
Reply With Quote
  #644  
Old 04-14-2006, 01:36 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems like a problem with your host. Does your host allow PHP file uploads? I plan to re-add the old function as an option in the next release so that people who are having problems uploading images will be able to just link to them instead.

Derek
Reply With Quote
  #645  
Old 04-14-2006, 01:51 PM
Deska's Avatar
Deska Deska is offline
 
Join Date: Aug 2002
Location: Asia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Traxdata, try to give chmod 777 folder images/toplist/buttons/sites
Reply With Quote
  #646  
Old 04-14-2006, 03:43 PM
Traxdata Traxdata is offline
 
Join Date: Jul 2004
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Of course... would be helpful if I had created "sites" folder before...

Thanks for your hint!
Reply With Quote
  #647  
Old 04-15-2006, 06:19 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it working.
Reply With Quote
  #648  
Old 04-17-2006, 01:15 PM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One problem i am having is that my site fails XHTML validation when i have this hack enabled.

Quote:
Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 1188 column 267: required attribute "alt" not specified.

...age.php?do=view&amp;id=23" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nof

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.


2. Error Line 1188 column 271: end tag for "img" omitted, but OMITTAG NO was specified.

...php?do=view&amp;id=23" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollo

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Is there a fix for this?
Reply With Quote
  #649  
Old 04-17-2006, 02:36 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure that is coming from my hack? I don't think I have a ?do=view in mine. I just ran the validator on my dev forum where my hack is, and it passed. Could it be your skin that is affecting it?

Thanks,
Derek
Reply With Quote
  #650  
Old 04-17-2006, 06:21 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind it appears this is being caused by the Toplist Images on the Forum home. Just disable that until the next version and it will be fixed.

Thanks for reporting.

Derek
Reply With Quote
  #651  
Old 04-17-2006, 06:49 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you would like to patch that part now to fix it until the upgrade comes up, here is how:

OPEN THE Toplist_Forum_Home TEMPLATE

REPLACE THE CONTENTS OF IT WITH:
PHP Code:
<!-- Toplist Sites --> 
<
tbody
        <
tr
                <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_toplist')"><img id="collapseimg_forumhome_toplist" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_toplist].gif" alt="" border="0" /></a
                        
$vbphrase[toplist_sites]: 
                </
td
        </
tr
</
tbody
<
tbody id="collapseobj_forumhome_toplist" style="$vbcollapse[collapseobj_forumhome_toplist]"
        <
tr
                <
td class="alt1" width="100%" height="30" colspan="2"><div class="smallfont">
<!-- 
Using javascript for the marquee since W3 doesn't like marquees. -->
<script type="text/javascript">
<!--
document.write('
<marquee direction="$vboptions[toplist_forumhome_marquee_direction]onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=$vboptions[toplist_forumhome_marquee_scrollamount]">$toplist_images</marquee>');
//-->
</script>
<!--
<marquee scrollamount="$vboptions[toplist_forumhome_marquee_scrollamount]">$toplist_images</marquee>
-->
                </div></td> 
        </tr> 
</tbody> 
<!-- / Toplist Sites --> 
SAVE

OPEN THE Toplist_Sites_Code TEMPLATE

REPLACE THE CONTENTS OF IT WITH:
PHP Code:
<a href="$vboptions[bburl]/out.php?id=$timage[id]"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$timage[id]border="0" alt="$timage[name]/></a>&nbsp;&nbsp;&nbsp;&nbsp
SAVE
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 12:56 AM.


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.06394 seconds
  • Memory Usage 2,339KB
  • 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
  • (2)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