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 09-21-2006 08:06 PM

Quote:

Originally Posted by Steve B
Sure.

It has been edited to remove the vote function as per the instructions earlier in this thread but we have also tried it with the templates reverted back to the original. I may have missed something though...

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="$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>
        <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>
    <if condition="$vboptions['toplist_show_user_banners'] == 1">
        <if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
            <td class="alt2" width="88"><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></td>
        <else />
            <td class="alt2" width="88">$vbphrase[toplist_none]</td>
        </if>
    </if>
    <td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">1<else />2</if>" width="50">$sr[in]</td>
    <td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">2<else />1</if>" width="50">$sr[out]</td>
    <td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">1<else />2</if>" width="50">$sr[views]</td>
</tr>


Quick question... Are admins able to see those links, or is it everyone that can't see them?

Quote:

Originally Posted by b6gm6n
hmmm dunno my friend... maybe mods or those with the right perms can enter the admincp for editing the toplist sites, or perhaps a seperate new template for edits which would include the ability to alter multiple entires.... either way your the don! :)

-b6

I think I might just leave them for now and change it later to inline moderation.

Quote:

Originally Posted by angkor408
derekivey, I don't see any option that say usergroup editor. All I see in my toplist is:

toplist option
toplist sites
add site
catergoies
mass delete site
inactive sites
suspended sites
mass suspended sites
reported sites
reset toplist

No, what I mean is go to Usergroups -> Usergroup Manager -> Edit Permissions for each group under the Toplist Permissions in the list of different permissions.

Derek

angkor408 09-21-2006 11:15 PM

Derek, I check my usergroup under toplist permission for " Register user" I have check the following option:

Help Toplist Permissions

Can View Toplist= Yes
Can Add Sites = Yes
Can Edit Sites = Yes
Can Delete Sites =Yes
Can Administer All Sites= NO

Register user can't edit or delete the site. If login as Admin,I was able to delete and edit but not register user.


Tim









Quote:

Originally Posted by derekivey
Quick question... Are admins able to see those links, or is it everyone that can't see them?


I think I might just leave them for now and change it later to inline moderation.


No, what I mean is go to Usergroups -> Usergroup Manager -> Edit Permissions for each group under the Toplist Permissions in the list of different permissions.

Derek


Qwest 09-22-2006 01:02 AM

BUG REPORT: This hack is NOT compatible with VBSEO

The redirect fails and gets stuck in a loop.

Steve B 09-22-2006 05:38 AM

Quote:

Originally Posted by derekivey
Quick question... Are admins able to see those links, or is it everyone that can't see them?

Yes everything is fine for Admin.

Don't worry about this too much if you are on the verge of releasing an update, we are able to edite and delete for our members anyway so are still able to use the toplist. If its something simple though it would make just a little less work for us admins, if not then I'll wait for the update and see if that solves our issue :)

Cheers

Steve B 09-22-2006 05:42 AM

Quote:

Originally Posted by Qwest
BUG REPORT: This hack is NOT compatible with VBSEO

The redirect fails and gets stuck in a loop.

It works fine with VBSEO

You just have to instruct VBSEO to exclude toplist.php, out.php, in.php & add_site.php. This is done under the VBSEO options > Exclude Pages

HTH

derekivey 09-22-2006 10:51 PM

Quote:

Originally Posted by Steve B
Yes everything is fine for Admin.

Don't worry about this too much if you are on the verge of releasing an update, we are able to edite and delete for our members anyway so are still able to use the toplist. If its something simple though it would make just a little less work for us admins, if not then I'll wait for the update and see if that solves our issue :)

Cheers

Yeah, might be a good idea to wait for the new version. I hope to have it out by Monday, hopefully if everything goes as planned. I just need to finish the stats page and add the comment system.

Derek

tazB.ca 09-24-2006 08:26 PM

Worksfine With 3.60...*installs*

kobescoresagain 09-24-2006 10:09 PM

I browsed through, but didn't see any help on my error. I get this error:

Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/apache/htdocs/forums/toplist.php(555) : eval()'d code on line 54

on www.sportscardfreaks.com/forums/toplist.php

Any idea on what this is? Or what do you need to help me solve it. Thanks

derekivey 09-25-2006 01:08 AM

Quote:

Originally Posted by kobescoresagain
I browsed through, but didn't see any help on my error. I get this error:

Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/apache/htdocs/forums/toplist.php(555) : eval()'d code on line 54

on www.sportscardfreaks.com/forums/toplist.php

Any idea on what this is? Or what do you need to help me solve it. Thanks

This should fix it... https://vborg.vbsupport.ru/showpost....&postcount=945

Chicago_VLNU_4s 09-26-2006 12:33 AM

i know i'm a little late on this, but i ran that query thruogh my CPanel and it worked. I was able to import the product again.. thanks


All times are GMT. The time now is 04:56 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.02584 seconds
  • Memory Usage 1,769KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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