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)

Domenico 06-21-2006 08:25 PM

Quote:

Originally Posted by derekivey
Right now you manually have to remove the rating column, but in the next version I will have an option that when disabled it will not show it, requiring no file edits. For now, if you want to remove it now, you have to edit the Toplist, Toplist_1, and Toplist_2 templates to remove it.

Derek

Derek, can you please show us wich code has to be taken out because whatever I do it messes up everything. I just want to remove the rating column.

Thank you!

DementedMindz 06-21-2006 10:07 PM

ok question i went in to delete a site and after i deleted it from the toplist.php page i got this error... what would cause that?

Code:

Warning: unlink(images/toplist/buttons/sites/forumhome_todayusers): No such file or directory in /delete_site.php on line 105
also the site never had a button i never added one..

derekivey 06-22-2006 12:41 AM

Quote:

Originally Posted by Domenico
Thanks for your answer! :)

Ok some users think they are clever and put the site html on a page outside of their site. Can you make the url where they put the site html code visible on the admin page when I edit a site please?

It doesn't check other pages for the code. It only checks the exact url they entered as their site URL.

Quote:

Originally Posted by Noxious
done that but still getting the following when trying to upload a JPG banner, JPEG files work but no1 really uses them anymore

Yeah thats a weird bug in this hack. I'm not exactly sure why it doesn't detect the filetype of the image. If you feel comfortable with what file types people upload, you can remove the if statement to allow any filetype until I figure out how to fix the bug.

Quote:

Originally Posted by Domenico
Derek, can you please show us wich code has to be taken out because whatever I do it messes up everything. I just want to remove the rating column.

Thank you!

Open the Toplist template.

FIND AND DELETE:
HTML Code:

<td class="thead" width="90">$vbphrase[toplist_rating]</td>
FIND AND DELETE:
HTML Code:

<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>

Close & Save the Toplist template.

Open the Toplist_1 template.

FIND AND DELETE:
HTML Code:

<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" 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>

Close & Save the Toplist_1 template.

Open the Toplist_2 template.

FIND AND DELETE:
HTML Code:

<td class="alt<if condition="$vboptions[toplist_show_user_banners] == 1">2<else />1</if>" 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>

That should delete it.

Quote:

Originally Posted by DementedMindz
ok question i went in to delete a site and after i deleted it from the toplist.php page i got this error... what would cause that?

Code:

Warning: unlink(images/toplist/buttons/sites/forumhome_todayusers): No such file or directory in /delete_site.php on line 105
also the site never had a button i never added one..

You can ignore that. But, I'm not sure why its trying to delete a file called forumhome_todayusers. Did you modify anything?

DementedMindz 06-22-2006 12:45 AM

Nope not at all... Im not sure why it was either i even tried it on my test board and it did the same thing... It does it mostly when you dont add a image(button) for the site...

derekivey 06-22-2006 01:32 AM

Just ignore it for now. It won't cause any problems. If you want to prevent it from being shown, open delete_site.php and go to line 105, and put a @ in front of unlink.

Derek

Domenico 06-22-2006 09:57 AM

Many thanks for your support Derek!

puregraf 06-22-2006 09:56 PM

Quote:

Originally Posted by derekivey
Please login to PHPMyAdmin, and delete all of the toplist_ tables, as well as the toplistpermissions column in the usergroup table (Do not delete the table itself!), and try the import again.

Derek


I did what you said and i guess it worked, but not all the way. look on the left on the menu where the toplist is supposed to be, there is a new module there but its blank..

heres a screenshot of my admin after i imported the file from my comp manage products / import producthttps://vborg.vbsupport.ru/

derekivey 06-23-2006 02:20 AM

Quote:

Originally Posted by Domenico
Many thanks for your support Derek!

No Problem.

Quote:

Originally Posted by puregraf
I did what you said and i guess it worked, but not all the way. look on the left on the menu where the toplist is supposed to be, there is a new module there but its blank..

heres a screenshot of my admin after i imported the file from my comp manage products / import producthttp://puregraffiti.com/pg2/topsites_screenshot.jpg

Looks like it didn't import the phrases. Go to Languages & Phrases, and do a search for toplist, and see if any come up.

Derek

puregraf 06-23-2006 03:34 AM

Quote:

Originally Posted by derekivey
No Problem.


Looks like it didn't import the phrases. Go to Languages & Phrases, and do a search for toplist, and see if any come up.

Derek

No Phrases Matched Your Query
:paranoid:


I clicked on one of the blank spaces on the module on that screenshot i posted above and it took me to a page were it had this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM toplist_sites WHERE status = 'inactive';

MySQL Error : Table 'puregraf_peegee.toplist_sites' doesn't exist
Error Number : 1146
Date : Thursday, June 22nd 2006 @ 09:35:34 PM
Script : http://www.puregraffiti.com/graffiti...?do=massdelete
Referrer : http://www.puregraffiti.com/graffiti-space/admincp/
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database

Thanks for your help.

derekivey 06-23-2006 04:06 AM

Doesn't look like it is importing correctly for you, for some reason. If you would like, I will try importing it for you. If you want me to, please PM me admin info.

Thanks,
Derek


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.01869 seconds
  • Memory Usage 1,770KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (9)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