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)

loonytune15 12-05-2005 11:46 PM

Quote:

Originally Posted by derekivey
Category system is on my list of things to add. I also plan to add an option that allows you to add a random site to the forum home, note this will be optional and can be turned off in the AdminCP.

Sounds good, both be very good additions. Will serve well as an affiliate hack.

loonytune15 12-06-2005 12:16 AM

ok I have had to run the last 2 queries above and with the last one I got this error.
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';

ALTER TABLE `toplist_sites` ADD `votes` INT( 10 ) DEFAULT

It still wont show any ratings.
in the admin cp under toplist sites, it dont show the ratings either, but when you click to view the individual site, it shows in there.

derekivey 12-06-2005 12:32 AM

Hmm looks like your missing part of the query.

Try this:

[sql]
ALTER TABLE `toplist_sites` ADD `votes` INT( 10 ) DEFAULT '0' NOT NULL AFTER `rating_total`;
[/sql]

loonytune15 12-06-2005 12:45 AM

nope that didn't work either..
An error occurred while attempting to execute your query. The following information was returned.
error number: 1054
error desc: Unknown column 'rating_total' in 'toplist_sites'
I got that error running that on its own.

I changed the other query and got the first error again.

derekivey 12-06-2005 01:27 AM

Hmm, looks like your missing that field also, run these queries:
[sql]
ALTER TABLE `toplist_sites` ADD `rating_total` INT( 10 ) DEFAULT '0' NOT NULL AFTER `out`;
ALTER TABLE `toplist_sites` ADD `votes` INT( 10 ) DEFAULT '0' NOT NULL AFTER `rating_total`;
ALTER TABLE `toplist_sites` ADD `rating_average` INT( 10 ) DEFAULT '0' NOT NULL AFTER `votes`;
[/sql]

Sorry for the trouble, not sure why the plugin system didn't execute those queries. Once you run those it should work.

loonytune15 12-06-2005 01:30 AM

I am idiot, I didn't realize that these needed to be run seperately.

All seems to work now except it wont accpt the earlier attempts at voting.

derekivey 12-06-2005 01:42 AM

If you know who voted, and for what site, you can easily add their votes by editing the database..

Allan 12-06-2005 08:19 AM

error:

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `rating_total` INT( 10 ) DEFAULT '0' NOT NULL AFTER `out`;;

MySQL Error  : Duplicate column name 'rating_total'
Error Number : 1060
Date        : Tuesday, December 6th 2005 @ 11:17:47 AM
Script      : http://www.xxxxxxx.com/xxxxxx/admincp/plugin.php
Referrer    : http://www.xxxxxxx.com/xxxxxx/admincp/plugin.php?do=productadd
IP Address  : 82.xxxxx.0.xxxx
Username    : xxxxxxxx
Classname    : vb_database


derekivey 12-06-2005 09:51 AM

That means you already have that one in the database, just edit the .xml file and remove that query from the install code, and try it again, it should work after you do that.

Allan 12-06-2005 10:38 AM

Code:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;



All times are GMT. The time now is 04:29 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.01664 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)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