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)

Celtic_Mad 08-23-2006 03:45 PM

Does this work for 3.6.0?

derekivey 08-23-2006 09:59 PM

Quote:

Originally Posted by Celtic_Mad
Does this work for 3.6.0?

Seems to be working fine for me on my dev board.

derekivey 08-23-2006 09:59 PM

Quote:

Originally Posted by Robbed
That would be great I was looking for something like that.

Could i get the template edits?

Thanks

Rob

Sure, I will post them shortly.

Derek

b6gm6n 08-24-2006 04:42 PM

problem...fixed!

Snake 08-24-2006 10:38 PM

Is this gonna work on 3.6 too? I'm not sure.

Shazz 08-24-2006 10:39 PM

Quote:

Originally Posted by Dark Blade
Is this gonna work on 3.6 too? I'm not sure.

Yes! :cool:

Snake 08-24-2006 10:54 PM

Thanks!

Shazz 08-24-2006 11:01 PM

Quote:

Originally Posted by Dark Blade
Thanks!

I think majority of the 3.5 hacks should say at the bottom or top of the post that says if its capable of 3.6..

derekivey 08-25-2006 12:33 AM

Here is the code for those templates I was talking about, for if you have bigger images on the toplist.

Toplist:
PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
<
script type="text/javascript" src="clientscript/toplist.js?version=$version"></script>
</
head>
<
body>
$header

$navbar
<if condition="$disabled != 1">
    <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>

    <
form action="toplist.php" method="get">
    <
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" onchange="this.form.submit();">
                    <
option selected="selected" value="">$vbphrase[toplist_view_all_sites]</option>
                    <
optgroup label="$vbphrase[toplist_categories]">
                        
$cat_list
                    
</optgroup>
                </
select
                <
input type="submit" class="button" value="$vbphrase[toplist_go]/>
            </
div>
        </
td>
    </
tr>
    </
table>
    </
form>
    <
br /><br />
    <if 
condition="$vboptions['toplist_show_random_sites'] == 1">
        <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
        <
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 OR $num_rows >= 1">
            <
tr align="center">
                <
td class="alt2">$rand_rank</td>
                <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$randsite[id]target="_BLANK">$randsite[name]</a><br />$randsite[description]<br />
                <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $randsite['imagecode'] != ''">
                    <
br /><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>
                </
td>
                <
td class="alt2" width="50">$randsite[in]</td>
                <
td class="alt1" width="50">$randsite[out]</td>
                <
td class="alt2" width="50">$randsite[views]</td>
                <
td class="alt1" 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"><div class="smallfont">&nbsp;</div></td>
        </
tr>
        </
table>
        <
br />
    </if>
</if>

<
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">
        <
div class="smallfont">
            <if 
condition="$vboptions['toplist_enabled'] == 1 AND $permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canaddsites']">
                <
a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a>
            <else />
                &
nbsp;
            </if>
        </
div>
    </
td>
</
tr>
</
table>
<
br />
<
table cellpadding="0" cellspacing="0" border="0" width="100%">
<
tr align="$stylevar[right]">
    <
td>$pagenav</td>
</
tr>
</
table>
<
br />
<
center>$last_reset</center>

$footer
</body>
</
html

Toplist_1:
PHP Code:

<tr align="center">
    <if 
condition="$cat != 1">
        <
td class="alt2">$rank</td>
    </if>
    <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]target="_BLANK">$sr[name]</a><br />$sr[description]
    <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
            <
br /><br /><a href="$vboptions[bburl]/out.php?id={$sr[id]}target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]border="0" alt="" /></a><br />
    </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                <
br />
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                <
br />
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
            </if>
        </if>
        <if 
condition="!is_member_of($bbuserinfo, 1)">
            [ <
a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=report&amp;id=$sr[id]','report','menubar=0,resizable=1,width=320,height=220');return false;">$vbphrase[toplist_report]</a> ]
        </if>
    </
td>
    <
td class="alt2" width="50">$sr[in]</td>
    <
td class="alt1" width="50">$sr[out]</td>
    <
td class="alt2" width="50">$sr[views]</td>
    <
td class="alt1" width="90">
        <if 
condition="$sr['rating_average'] == 0">
            
$vbphrase[toplist_not_rated]
        <else />
            <
img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
            <
br />
            
$sr[votes
            <if 
condition="$sr['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=$sr[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

Toplist_2:
PHP Code:

<tr align="center">
    <if 
condition="$cat != 1">
        <
td class="alt2">$rank</td>
    </if>
    <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]">$sr[name]</a><br />$sr[description]
    <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
        <
br /><br /><a href="$vboptions[bburl]/out.php?id=$sr[id]target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]border="0" alt="" /></a><br />
    </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                <
br />
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                <
br />
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
            </if>
        </if>
    </
td>
    <
td class="alt2" width="50">$sr[in]</td>
    <
td class="alt1" width="50">$sr[out]</td>
    <
td class="alt2" width="50">$sr[views]</td>
    <
td class="alt1" width="90">
        <if 
condition="$sr['rating_average'] == 0">
            
$vbphrase[toplist_not_rated]
        <else />
            <
img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
            <
br />
            
$sr[votes
            <if 
condition="$sr['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=$sr[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

If you decide to go back to the old layout, simply revert those templates, and the old layout will be restored. I will have a setting in the next version to switch between the 2 layouts, so that will not be necessary in the next version.

Derek

Shazz 08-25-2006 12:35 AM

Quote:

Originally Posted by derekivey
Here is the code for those templates I was talking about, for if you have bigger images on the toplist.

Toplist:
PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
<
script type="text/javascript" src="clientscript/toplist.js?version=$version"></script>
</
head>
<
body>
$header

$navbar
<if condition="$disabled != 1">
    <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>

    <
form action="toplist.php" method="get">
    <
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" onchange="this.form.submit();">
                    <
option selected="selected" value="">$vbphrase[toplist_view_all_sites]</option>
                    <
optgroup label="$vbphrase[toplist_categories]">
                        
$cat_list
                    
</optgroup>
                </
select
                <
input type="submit" class="button" value="$vbphrase[toplist_go]/>
            </
div>
        </
td>
    </
tr>
    </
table>
    </
form>
    <
br /><br />
    <if 
condition="$vboptions['toplist_show_random_sites'] == 1">
        <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
        <
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 OR $num_rows >= 1">
            <
tr align="center">
                <
td class="alt2">$rand_rank</td>
                <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$randsite[id]target="_BLANK">$randsite[name]</a><br />$randsite[description]<br />
                <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $randsite['imagecode'] != ''">
                    <
br /><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>
                </
td>
                <
td class="alt2" width="50">$randsite[in]</td>
                <
td class="alt1" width="50">$randsite[out]</td>
                <
td class="alt2" width="50">$randsite[views]</td>
                <
td class="alt1" 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"><div class="smallfont">&nbsp;</div></td>
        </
tr>
        </
table>
        <
br />
    </if>
</if>

<
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">
        <
div class="smallfont">
            <if 
condition="$vboptions['toplist_enabled'] == 1 AND $permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canaddsites']">
                <
a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a>
            <else />
                &
nbsp;
            </if>
        </
div>
    </
td>
</
tr>
</
table>
<
br />
<
table cellpadding="0" cellspacing="0" border="0" width="100%">
<
tr align="$stylevar[right]">
    <
td>$pagenav</td>
</
tr>
</
table>
<
br />
<
center>$last_reset</center>

$footer
</body>
</
html

Toplist_1:
PHP Code:

<tr align="center">
    <if 
condition="$cat != 1">
        <
td class="alt2">$rank</td>
    </if>
    <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]target="_BLANK">$sr[name]</a><br />$sr[description]
    <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
            <
br /><br /><a href="$vboptions[bburl]/out.php?id={$sr[id]}target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]border="0" alt="" /></a><br />
    </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                <
br />
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                <
br />
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
            </if>
        </if>
        <if 
condition="!is_member_of($bbuserinfo, 1)">
            [ <
a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=report&amp;id=$sr[id]','report','menubar=0,resizable=1,width=320,height=220');return false;">$vbphrase[toplist_report]</a> ]
        </if>
    </
td>
    <
td class="alt2" width="50">$sr[in]</td>
    <
td class="alt1" width="50">$sr[out]</td>
    <
td class="alt2" width="50">$sr[views]</td>
    <
td class="alt1" width="90">
        <if 
condition="$sr['rating_average'] == 0">
            
$vbphrase[toplist_not_rated]
        <else />
            <
img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
            <
br />
            
$sr[votes
            <if 
condition="$sr['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=$sr[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

Toplist_2:
PHP Code:

<tr align="center">
    <if 
condition="$cat != 1">
        <
td class="alt2">$rank</td>
    </if>
    <
td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]">$sr[name]</a><br />$sr[description]
    <if 
condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
        <
br /><br /><a href="$vboptions[bburl]/out.php?id=$sr[id]target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]border="0" alt="" /></a><br />
    </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                <
br />
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                <
br />
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
            </if>
        </if>
        <if 
condition="$bbuserinfo['username'] == $sr['username']">
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
            </if>
        <else />
            <if 
condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
                [ <
a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
            </if>
        </if>
    </
td>
    <
td class="alt2" width="50">$sr[in]</td>
    <
td class="alt1" width="50">$sr[out]</td>
    <
td class="alt2" width="50">$sr[views]</td>
    <
td class="alt1" width="90">
        <if 
condition="$sr['rating_average'] == 0">
            
$vbphrase[toplist_not_rated]
        <else />
            <
img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
            <
br />
            
$sr[votes
            <if 
condition="$sr['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=$sr[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

If you decide to go back to the old layout, simply revert those templates, and the old layout will be restored. I will have a setting in the next version to switch between the 2 layouts, so that will not be necessary in the next version.

Derek

This helps a ton! :)
I bet alot of people could use this


All times are GMT. The time now is 08:57 PM.

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.02981 seconds
  • Memory Usage 2,299KB
  • 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
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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