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

Reply
 
Thread Tools
Toplist Template Rewrite (add site - site list) Details »»
Toplist Template Rewrite (add site - site list)
Version: 1.00, by dwbro1 dwbro1 is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 07-14-2006 Last Update: Never Installs: 9
 
No support by the author.

These are two simple template rewrites I did to make toplist look more like the old Top 100 programs from the past. Nothing special just removed the buttons column and moved them above the site name and desc. Also rewrote the add sites html template to allow for full 468x60 banners to be displayed.

This template rewrite requires the orginial add-on "Toplist" by Derekivey:
https://vborg.vbsupport.ru/showthread.php?t=98646

versions:

1.1 - Coming Soon supports 1.0.9 of Toplist

1.0 - Supports 1.0.8 of the orginial Toplist

If you use, don't forget to click install.


Template "toplist"
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
</head>
<body>
$header

$navbar
<!-- <form action="toplist.php" method="get"> -->
<if condition="$vboptions[toplist_check_if_code_exists] == 1 AND $validate_bits != ''">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
                <td class="tcat" colspan="4">{$vbphrase['toplist_sites_pending_validation']}</td>
</tr>
<tr align="center">
        <td class="alt1" colspan="4">$vbphrase[toplist_sites_pending_validation_desc]</td>
</tr>
<tr align="center">
	<td class="thead">$vbphrase[toplist_site_name]</td>
        <td class="thead">$vbphrase[toplist_site_url]</td>
	<td class="thead">$vbphrase[toplist_edit]</td>
	<td class="thead">$vbphrase[toplist_validate]</td>
</tr>
$validate_bits
<tr align="center">
        <td class="thead" colspan="7"><div class="smallfont">&nbsp;</div></td>
</tr>
</table>
<br />
</if>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="right">
<tr align="right">
                <td>
<!--                <div class="smallfont">
$vbphrase[toplist_select_category]: <select name="cid">
<option selected="selected" value="">$vbphrase[toplist_view_all_sites]</option>
<optgroup label="$vbphrase[toplist_categories]">
$cat_list
</optgroup>
</select> 
<input type="submit" value="$vbphrase[toplist_go]" />
                </div> --> &nbsp;
                </td>
</tr>
</table>
<!-- </form> -->
<br /><br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$vboptions[toplist_enabled] == 1 AND $permissions[toplistpermissions] & $vbulletin->bf_ugp[toplistpermissions]['canaddsites']">
<tr class="alt1" align="left"><td colspan="7">
<a href="$vboptions[bburl]/add_site.php"><img src="$vboptions[bburl]/iSkin/buttons/addsite.gif" border="0"></a>
</td></tr></if>
<tr align="center">
                <td class="tcat" colspan="7">{$vbphrase['toplist_random_site']}</td>
</tr>
<tr align="center">
	<td class="thead" width="20">$vbphrase[toplist_rank]</td>
                <td class="thead">$vbphrase[toplist_site_name_and_description]</td>
	<td class="thead" width="50">$vbphrase[toplist_in]</td>
	<td class="thead" width="50">$vbphrase[toplist_out]</td>
        <td class="thead" width="50">$vbphrase[toplist_views]</td>
                <td class="thead" width="90">$vbphrase[toplist_rating]</td>
</tr>
<if condition="$randchk >= 1 || $num_rows >= 1">
<tr align="center">
<td class="alt2">$rand_rank</td>
<td class="alt1">

<if condition="$vboptions[toplist_show_user_banners] == 1">
<if condition="$randsite[imagecode] != ''">
<a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$randsite[id]" border="0" alt="" /></a>
</if></if><br />
<div align="left">
<a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK"><b>$randsite[name]</b></a><br /><br />$randsite[description]<br /></div></td>

<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">1<else />2</if>" width="50">$randsite[in]</td>
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" width="50">$randsite[out]</td>
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">1<else />2</if>" width="50">$randsite[views]</td>
<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" width="90">
<if condition="$rating == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_$rating.gif" alt="" />
<br />
$randsite[votes] 
<if condition="$randsite[votes] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show[guest]">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$randsite[id]','rate_site','menubar=0,resizable=1,width=$vboptions[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>
<else />
<tr align="center">
<td class="alt1" colspan="7">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="7">&nbsp;</td>
</tr>
</table>
<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
                <td class="tcat" colspan="7">{$vboptions[bbtitle]} {$vbphrase['toplist']}</td>
</tr>
<tr align="center">
<if condition="$cat != 1">
	<td class="thead" width="20">$vbphrase[toplist_rank]</td>
</if>
                <td class="thead">$vbphrase[toplist_site_name_and_description]</td>
	<td class="thead" width="50">$vbphrase[toplist_in]</td>
	<td class="thead" width="50">$vbphrase[toplist_out]</td>
        <td class="thead" width="50">$vbphrase[toplist_views]</td>
                <td class="thead" width="90">$vbphrase[toplist_rating]</td> 
</tr>
$html
<tr align="center">
<td class="thead" colspan="7">&nbsp;</td>
</tr>
<if condition="$vboptions[toplist_enabled] == 1 AND $permissions[toplistpermissions] & $vbulletin->bf_ugp[toplistpermissions]['canaddsites']">
<tr class="alt1" align="left"><td colspan="7">
<a href="$vboptions[bburl]/add_site.php"><img src="$vboptions[bburl]/iSkin/buttons/addsite.gif" border="0"></a>
</td></tr></if>
</table>

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="$stylevar[right]">
                <td>$pagenav</td>
</tr>
</table>

$footer
</body>
</html>

Template "toplist_HTML_Code"
HTML Code:
<if condition="THIS_SCRIPT == add_site"> 
$vbphrase[toplist_add_successful]<br />
<if condition="$vbulletin->options['toplist_moderate_sites'] == 1">
$vbphrase[toplist_sites_moderated]<br />
<else />
$vbphrase[toplist_sites_shown_instantly]<br />
</if>
<else />
$vbphrase[toplist_edit_successful]<br />
</if>
$vbphrase[toplist_html_code_message]:<br />
<br /><br />
<if condition="THIS_SCRIPT == add_site">
<!-- Start image/text codes -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code1" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td></tr>
<tr><td><br><br></td></tr>


<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/dynamic/image.png?id=$sr[id]" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code2" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/dynamic/image.png?id=$sr[id]" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td></tr>
<tr><td><br><br></td></tr>


<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK">$vboptions[bbtitle]</a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code3" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK">$vboptions[bbtitle]</a></textarea></td></tr>
<tr><td><br><br></td></tr>

<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1 OR $vboptions[toplist_count_site_page_views] == 1">
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view_in_image&amp;id=$sr[id]" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td>
<textarea name="code4" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view_in_image&amp;id=$sr[id]" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>
</if>
<tr><td><br><br></td></tr>

<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td>$vbphrase[toplist_count_page_views]<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td>To the below code on your web site to count page views from your link.<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td><textarea name="code5" cols="100" rows="4" readonly="readonly"><iframe src="$vboptions[bburl]/in.php?do=views&id=$sr[id]" width="0" height="0"></iframe></textarea></td></tr>
</if>
</if>
</table>
<!-- End image/text codes -->
<else />
<!-- Start image/text codes -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code1" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td></tr>
<tr><td><br><br></td></tr>


<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/dynamic/image.png?id=$id" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code2" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/images/toplist/buttons/dynamic/image.png?id=$id" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td></tr>
<tr><td><br><br></td></tr>


<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK">$vboptions[bbtitle]</a><br /><br /></td>
</tr>
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
<tr align="center">
<td><textarea name="code3" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK">$vboptions[bbtitle]</a></textarea></td></tr>
<tr><td><br><br></td></tr>

<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1 OR $vboptions[toplist_count_site_page_views] == 1">
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view_in_image&amp;id=$id" border="0" alt="$vboptions[bbtitle]" /></a><br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td>To use this link type select the below code and add it to your web site.<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_use_custom_in_rank_image] == 1">
<tr align="center">
<td><textarea name="code4" cols="100" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view_in_image&amp;id=$id" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>
</if>
<tr><td><br><br></td></tr>

<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td>$vbphrase[toplist_count_page_views]<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td>To the below code on your web site to count page views from your link.<br /><br /></td>
</tr>
</if>
<if condition="$vboptions[toplist_count_site_page_views] == 1">
<tr align="center">
<td><textarea name="code5" cols="100" rows="4" readonly="readonly"><iframe src="$vboptions[bburl]/in.php?do=views&id=$id" width="0" height="0"></iframe></textarea></td></tr>
</if>
</if>
</table>
<!-- End image/text codes -->
</if>
If you use, don't forget to click install.

Show Your Support

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

Comments
  #2  
Old 07-15-2006, 11:21 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uuhh some of the stuff dosen't appear.
________
no2 vaporizer
Reply With Quote
  #3  
Old 07-16-2006, 02:41 AM
dwbro1's Avatar
dwbro1 dwbro1 is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure what you mean by some of the stuff. I know I commented out the drop down list of cats as I only have one. I also added the add_site.php as a button at the top and bottom and removed the txt link for it.
Reply With Quote
  #4  
Old 07-16-2006, 04:01 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like i get Red "X' on add site?
________
marijuana strain strawberry cough
Reply With Quote
  #5  
Old 07-16-2006, 04:28 AM
dwbro1's Avatar
dwbro1 dwbro1 is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shazz not really sure what you are referencing when you say red "X".. did you verify all the links are updated to reflect your directories ?
Reply With Quote
  #6  
Old 07-16-2006, 04:42 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.sounddistrict.com
http://www.vbcoderz.com
________
magic flight launch box
Reply With Quote
  #7  
Old 07-16-2006, 05:11 AM
dwbro1's Avatar
dwbro1 dwbro1 is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh .. Yes I changed the template to add a button at the top and bottom of the template to add a site instead of the small text link that was at the bottom before that was hard to see. You just have to create a image button and change the path/imagename.gif in the template to reflect the right location and file. You can also just remove the buttom image and make it a text link instead if you wish.

if you have trouble finding this let me know and I'll give more details of what to look for.
Reply With Quote
  #8  
Old 07-16-2006, 05:12 AM
sab2000sab's Avatar
sab2000sab sab2000sab is offline
 
Join Date: May 2006
Location: Michigan
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like the Add Site button is not where it is supposed to be.. right click and view the properties of the missing graphic... that will tell you where you need to upload the add site button!

[Edit] Oh sorry dwbro1!.. lol... Looks like we were posting at the same time!.. lol.. Be blessed!
Reply With Quote
  #9  
Old 07-16-2006, 06:43 AM
dwbro1's Avatar
dwbro1 dwbro1 is offline
 
Join Date: Apr 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So mote it be
Reply With Quote
  #10  
Old 07-16-2006, 09:57 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done on that!
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 02:14 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.06614 seconds
  • Memory Usage 2,385KB
  • Queries Executed 23 (?)
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_html
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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