![]() |
Quote:
|
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. |
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] |
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. |
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. |
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. |
If you know who voted, and for what site, you can easily add their votes by editing the database..
|
error:
Code:
Database error in vBulletin 3.5.0: |
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.
|
Code:
Invalid SQL: |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|