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 06-15-2006 03:21 PM

Hmm thats weird, it looks fine to me, I'll have to take a look more closely and I'll let you know if I find anything out.

Derek

EDIT: What MySQL version do you have?

b6gm6n 06-16-2006 01:37 AM

Hi... i love this mod... really coool... anyways i suppose you know of the 'cannot edit categories' bug from ACP... :) (too many spaces_ "id = 2") :D maybe...

-b6

derekivey 06-16-2006 02:43 AM

Please try this file, it should fix it. I attached it to a post and forgot to update the zip file in the first post.

Link: https://vborg.vbsupport.ru/attachmen...5&d=1150214870

Derek

nets 06-16-2006 08:01 AM

thank`s
iam install it :banana:

georg

Quote:

Originally Posted by derekivey
Please try this file, it should fix it. I attached it to a post and forgot to update the zip file in the first post.

Link: https://vborg.vbsupport.ru/attachmen...5&d=1150214870

Derek


derekivey 06-16-2006 01:03 PM

Hi Georg,

Are you still getting that MySQL error?

Thanks,
Derek

b6gm6n 06-17-2006 11:16 AM

One last thing... a friend uploaded a banner which was outside my dims limits... added the site but showed no banner... sho he thought he'd try it again... and again...and again...not knowing he was uploading a banner that was too big... so a little notice would be great :D...as i say...top mod... great stuff!

-b6

derekivey 06-17-2006 02:45 PM

There should be a notice. That's weird it wasn't showing up though. What happened when he tried adding it? What did the Toplist script do?

nets 06-17-2006 02:50 PM

yes,
this file was already instal.
the same error ist still getting.
what now ??
greatings
georg



Quote:

Originally Posted by derekivey
Hi Georg,

Are you still getting that MySQL error?

Thanks,
Derek


derekivey 06-17-2006 03:22 PM

Ok, what version of MySQL do you have?

nets 06-17-2006 04:31 PM

Quote:

Originally Posted by derekivey
Ok, what version of MySQL do you have?

Server OS/PHP WINNT
Datenbankverbrauch 81,10 MB
Webserver Apache v2.2.0
Index belegt 2,57 MB
PHP 5.1.1
PHPs max. Post-Gr??e 16,00 MB
PHPs maximale Uploadgr??e 16,00 MB
PHPs Speicherlimit Nein
MySQL-Version 5.0.18-nt-max
MySQL Paketgr??e 1.023,0 KB

here my dates
georg

Ramsesx 06-17-2006 05:02 PM

Seems not to work with msql 5, maybe you remember my help request before 2 month derek.

derekivey 06-17-2006 06:28 PM

Georg,

Please try the attached file and let me know if it works.

Thanks,
Derek

Snake 06-17-2006 06:48 PM

I'll test it out for you...

nets 06-18-2006 12:43 PM

i`ll have overide it.
and it runs perfektly .. no errors !!
the sql database run?s.

thanks .. :banana:
georg


Quote:

Originally Posted by derekivey
Georg,

Please try the attached file and let me know if it works.

Thanks,
Derek


derekivey 06-18-2006 07:57 PM

Thanks for getting back to me. I will update the zip file soon with the fix so that no one else has any problems with it.

Thanks,
Derek

b6gm6n 06-19-2006 01:16 AM

Quote:

Originally Posted by derekivey
There should be a notice. That's weird it wasn't showing up though. What happened when he tried adding it? What did the Toplist script do?

it's ok... all working, my bad...

Vitz 06-19-2006 02:13 PM

I'm getting an odd Database error when trying to add a site through the Admin CP. Any idea how to fix this?

Quote:

Originally Posted by Error
Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO toplist_sites SET
username = 'Vitz',
name = 'Name',
url = 'http://www.name.com',
description = 'Name',
`in` = '0',
out = '0',
views = '0',
status = 'active',
cid = '',
imagetype = 'image/jpeg',
imagesize = '4326',
imagecode = 'yIu026PzjHz7HrXTnGd6',
added_code = '0';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out = '0',
views = '0',
status = 'active',
cid = '',
' at line 7
Error Number : 1064
Date : Monday, June 19th 2006 @ 08:12:40 AM
Script : http://www.elusive-works.co.uk/forum...list_admin.php
Referrer : http://www.elusive-works.co.uk/forum...min.php?do=add
IP Address : 82.169.28.64
Username : Vitz
Classname : vB_Database

Other than that, great hack. It'll definitely help me out.

derekivey 06-19-2006 02:19 PM

What MySQL version are you running?

PitPunks 06-19-2006 03:10 PM

Nominated for m.o.t.m and clicked install, ++++ing amazing dude, thanks!

derekivey 06-19-2006 04:00 PM

Thanks! Glad you like it :D.

Derek

Dj. Gargamel 06-19-2006 05:24 PM

hello - I just installed this great mod but I am having a problem - everything is working correctly till the moment I am choosing a category of sites to view - sites are displayed only when View All Sites option is turned on - when we are trying to sort sites by category none of pages is being shown (one random site is displaying always at top)

puregraf 06-19-2006 07:31 PM

hi im getting 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 : Monday, June 19th 2006 @ 01:30:55 PM
Script : http://www.puregraffiti.com/graffiti...list_admin.php
Referrer :
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database


and when i access: http://www.puregraffiti.com/graffiti-space/toplist.php

i get:

puregraffiti, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


also,

i have no topsites category under my admincp for vbulletin like how it shows on your screenshots that im supposed to have... ??

someone please help

Noxious 06-19-2006 08:02 PM

i just installed this mod, i was wondering if anyone know how i change the banner allowed file extensions as the default mod only allows jpeg, gif and png image banner files and i prefere to use jpg, and when i try to upload a jpg banner i get an error message

Thanks for any help

derekivey 06-19-2006 09:30 PM

Quote:

Originally Posted by Dj. Gargamel
hello - I just installed this great mod but I am having a problem - everything is working correctly till the moment I am choosing a category of sites to view - sites are displayed only when View All Sites option is turned on - when we are trying to sort sites by category none of pages is being shown (one random site is displaying always at top)

Can you PM me a link to your site so I can take a look?

Quote:

Originally Posted by puregraf
hi im getting 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 : Monday, June 19th 2006 @ 01:30:55 PM
Script : http://www.puregraffiti.com/graffiti...list_admin.php
Referrer :
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database


and when i access: http://www.puregraffiti.com/graffiti-space/toplist.php

i get:

puregraffiti, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


also,

i have no topsites category under my admincp for vbulletin like how it shows on your screenshots that im supposed to have... ??

someone please help

Make sure you imported the product XML file under vB's product manager, then set the usergroup permissions and everything should be working.

Quote:

Originally Posted by Noxious
i just installed this mod, i was wondering if anyone know how i change the banner allowed file extensions as the default mod only allows jpeg, gif and png image banner files and i prefere to use jpg, and when i try to upload a jpg banner i get an error message

Thanks for any help

Currently you have to edit the add_site.php, edit_site.php, and /admincp/toplist_admin.php files to add image types. You will need to know the mime type for each file type you want to add (e.g. image/jpeg).

The line should look like this:
PHP Code:

if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png"

Derek

puregraf 06-20-2006 12:35 AM

Quote:

Make sure you imported the product XML file under vB's product manager, then set the usergroup permissions and everything should be working.
hi, i went to redo that, and i went to import and got this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT * FROM toplist_sites WHERE image LIKE 'http://%';

MySQL Error : Table 'puregraf_peegee.toplist_sites' doesn't exist
Error Number : 1146
Date : Monday, June 19th 2006 @ 06:35:04 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database

then i went to do it again cause it didnt add it, and i got this:



Database error in vBulletin 3.5.4:

Invalid SQL:
CREATE TABLE `toplist_ratings` (
`id` int(10) NOT NULL auto_increment,
`site_id` int(10) NOT NULL default '0',
`username` varchar(255) NOT NULL default '',
`rating` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;;



MySQL Error : Table 'toplist_ratings' already exists
Error Number : 1050
Date : Monday, June 19th 2006 @ 06:37:29 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : 71.137.37.85
Username : puregraffiti
Classname : vb_database

derekivey 06-20-2006 04:31 AM

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

Dj. Gargamel 06-20-2006 11:11 AM

Quote:

Originally Posted by derekivey
Can you PM me a link to your site so I can take a look?

Derek

PM sent - thanks for support

Vitz 06-20-2006 04:26 PM

Quote:

Originally Posted by derekivey
What MySQL version are you running?

I'm currently running MySQL 5.0.18.

derekivey 06-20-2006 05:29 PM

Ok, I'll release an update shortly to fix these db errors. It seems that MySQL has added some more keywords so I will need to add ` around everything.

Derek

derekivey 06-20-2006 06:21 PM

Ok I have released the update. Those of you having SQL errors should redownload the zip file and reupload the files only. You don't have to reimport the xml file.

Please let me know if you continue to have problems.

Thanks,
Derek

derekivey 06-20-2006 08:51 PM

There was another bug found with this hack, if you edit a site in the AdminCP, it resets the category back to no category, so its just shown when you first go to the Toplist. If you would like to fix this, please upload the attached file to the AdminCP and overwrite the old one. I am also updating the zip file to include this change.

Thanks,
Derek

Domenico 06-20-2006 09:57 PM

Another bug, when you give a usergroup permission to edit they can bypass the validation. Instead of clicking the validate link to check if the backlink exist they can simply click edit and save and the link is posted in the toplist. Can this be fixed?

Also when I turn on site moderation and then validate the user, the user still gets the message (when clicking validate) that the moderator needs to validate the link first. So the site is validated by me but the user still gets this message and can't validate his site (backlink).

derekivey 06-21-2006 03:56 AM

I'll take a look at these and get back to you. I'll see if I can reproduce them.

Derek

Dj. Gargamel 06-21-2006 07:30 AM

Thank for so fast answer and using Your precious time
unfortunately I found next error - when I am trying to edit category in Admin CP i get message "Sorry, you cannot edit a category without first selecting one. Please try again, and make sure a id is included in the url."

Domenico 06-21-2006 10:29 AM

Quote:

Originally Posted by Dj. Gargamel
Thank for so fast answer and using Your precious time
unfortunately I found next error - when I am trying to edit category in Admin CP i get message "Sorry, you cannot edit a category without first selecting one. Please try again, and make sure a id is included in the url."

I also had this error but with the latest update it is gone. You can go around this bug by opening the edit category in a new window. Then in the url you can see what is wrong. You must get rid of the two spaces at the end.

Remove %20 twice at the end and enter. No it works. :)

Domenico 06-21-2006 10:32 AM

Ok another one, when users forget to copy the site code they can't get it again when hey edit their site. They have to delete the entry and start all over again. Can't you display the site code on the user edit page ?

Request: how can I remove the rating column? I want to disable the rating part from the toplist.

Vitz 06-21-2006 01:39 PM

Thank you for the update. The hack seems to work fine now. I just have one question. How would I go about moving the toplist box that scrolls the listed sides, to the bottom of my forums? Right now I have an affiliate box there, and would like to replace that with the Toplist box. I'm not very experienced when it comes to coding so if you could help me, that'd be great. Thanks.

derekivey 06-21-2006 02:07 PM

Quote:

Originally Posted by Dj. Gargamel
Thank for so fast answer and using Your precious time
unfortunately I found next error - when I am trying to edit category in Admin CP i get message "Sorry, you cannot edit a category without first selecting one. Please try again, and make sure a id is included in the url."

Make sure you uploaded the attached file above. I logged into your admincp and it doesn't look like you did because that bug still exists, and so does the broken images bug when you click on Toplist Sites.

Quote:

Originally Posted by Domenico
Ok another one, when users forget to copy the site code they can't get it again when hey edit their site. They have to delete the entry and start all over again. Can't you display the site code on the user edit page ?

Request: how can I remove the rating column? I want to disable the rating part from the toplist.

It shows up when they edit their site and click submit. I think I will add a page in the next version where they can see it without having to edit their site.

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.

Quote:

Originally Posted by Vitz
Thank you for the update. The hack seems to work fine now. I just have one question. How would I go about moving the toplist box that scrolls the listed sides, to the bottom of my forums? Right now I have an affiliate box there, and would like to replace that with the Toplist box. I'm not very experienced when it comes to coding so if you could help me, that'd be great. Thanks.

You will have to mess with the plugin called Toplist Forum Home Addon, which is on the hook forumhome_complete. You will have to edit the line called:
PHP Code:

$find '<!-- end logged-in users -->'

and replace it with a line of code that is currently above where you want to put it.

Derek

Domenico 06-21-2006 02:41 PM

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?

Noxious 06-21-2006 07:59 PM

Quote:

Originally Posted by derekivey
Currently you have to edit the add_site.php, edit_site.php, and /admincp/toplist_admin.php files to add image types. You will need to know the mime type for each file type you want to add (e.g. image/jpeg).

The line should look like this:
PHP Code:

if ($image_type == "image/gif" OR $image_type == "image/pjpeg" OR $image_type == "image/jpeg" OR $image_type == "image/x-png"

Derek

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

Quote:

Sorry, your image could not be uploaded because the format of it is not allowed. Allowed formats are GIF, JPEG, and PNG

The format of the file you uploaded is .

Please go back and select a new image or leave the image field blank.


All times are GMT. The time now is 05:43 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.02332 seconds
  • Memory Usage 1,857KB
  • 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
  • (3)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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