vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [AJAX] Thumbs Up? (https://vborg.vbsupport.ru/showthread.php?t=285720)

gsk8 05-06-2019 06:31 PM

Thanks for help! I think I know the problem ;)

gsk8 05-09-2019 01:10 AM

So it appears after I uninstalled and reinstalled, I can't "restore" the following tables to myPHP

sc_thumbs_post
sc_thumbs_visitormessage
sc_thumbs_groupmessage
sc_thumbs_picturecomment
sc_thumbs_picture
sc_thumbs_stats

Provider says my backup tables are innodb and what I currently have is myisam. :confused:

Munkholm 09-24-2019 11:38 AM

Did you find a solution to this ? Just ran into the same problem.

gsk8 09-24-2019 12:29 PM

Yes, but I had to hire a coder and also work with my host provider (I pay for management) to fix the tables. It was a pain in the butt.

Dave 09-24-2019 12:57 PM

Quote:

Originally Posted by gsk8 (Post 2600755)
Yes, but I had to hire a coder and also work with my host provider (I pay for management) to fix the tables. It was a pain in the butt.

I hope you didn't get ripped off because converting tables between engines in a database only takes several minutes. (unless you have millions of records in these tables)

gsk8 09-24-2019 02:13 PM

It was a little more complicated as I had this mod "re-modified" for my purposes ;)

mangmel 11-11-2019 03:55 AM

Database Error
]]> Database error in vBulletin 4.2.5
Invalid SQL: SELECT * FROM sc_thumbs_post WHERE postid IN () ORDER BY username ASC;

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 ') ORDER BY username ASC' at line 1
Error Number : 1064
Request Date : Monday, November 11th 2019 @ 05:54:20 AM
Error Date : Monday, November 11th 2019 @ 05:54:20 AM

MySQL Version :
]]>

mangmel 11-11-2019 04:00 AM

Quote:

Originally Posted by mangmel (Post 2601190)
Database Error
]]> Database error in vBulletin 4.2.5
Invalid SQL: SELECT * FROM sc_thumbs_post WHERE postid IN () ORDER BY username ASC;

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 ') ORDER BY username ASC' at line 1
Error Number : 1064
Request Date : Monday, November 11th 2019 @ 05:54:20 AM
Error Date : Monday, November 11th 2019 @ 05:54:20 AM

MySQL Version :
]]>

solved line 109:
$thumbs = $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX. "sc_thumbs_". $contenttype ." WHERE $data_id IN (" . implode(',', $ids) . ") ORDER BY username ASC");

DeanoUK 06-25-2020 10:25 AM

Quote:

Originally Posted by gsk8 (Post 2599248)
Hey, not sure what I did but get an error when trying to give thumbs up?

Just as a note. As previous suggestion you need to change line 97 to:

PHP Code:

function fetch_thumbs($id 0$ids = [], $contenttype$data_id$fetch_again false

Then line 106 to:

PHP Code:

$ids = array();
$ids[] = $id


Enrico1954 09-11-2022 04:37 PM

I change back from PHP 7.1 to 7.0 and now the Add work again


All times are GMT. The time now is 03:32 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.01610 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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