Quote:
Originally Posted by Cybershaolin
If you say so.  Not a way to talk to people looking for help and without having your php knowledge anyway.  But, anyhow, I fixed it by modifying your hack!
In the module:
I changed this:
PHP Code:
$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");
for
PHP Code:
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");
Now it works...
|
Great Help Cybershaolin!! :up:
I was receiving an Error Message:
Code:
Database error in vBulletin 3.6.7:
Invalid SQL:
UPDATE thread SET description = 'Edici?n de Tema Para A?adir Descripci?n' WHERE threadid = '1973';
MySQL Error : Table 'inciarc_foros.thread' doesn't exist
Error Number : 1146
Date : Monday, October 15th 2007 @ 11:45:12 PM
Script : http://zzz/editpost.php?do=updatepost&p=8980
Referrer : http://zzz/editpost.php?do=editpost&postid=8980
IP Address : zzz.zzz.zzz.zzz
Username : zzz
Classname : vb_database
According to Your Orientation, in the Admin Control Panel, in the Plugin System for the Add-Ons (Products), I've Located the "
Thread Description - Update Description" Plugin and as You Said:
REPLACED:
Code:
$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");
WITH:
Code:
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");
And Now The Error Message Is Not Happening, and The Edit of the Description is Successful!!
Thank You very Much Again For Sharing This Excellent Solution!! :up:
My Best Regards!!