Link to my site: http://www.paraplanoff.net
SMF version: SMF ver. 2.0.1
TP version: TP ver. 1.0 RC2
Default Forum Language: Your Default Forum Language Russian_UTF8
Theme name and version: Impulse
Browser Name and Version: all
Mods installed: Mods listed here
Related Error messages: If I add tag in tags system, i have the database error and error in file: C:\www\www.paraplanoff.net\Sources\TPortalAdmin.php
String: 2735
foreach ($_POST as $what => $value)
{
if(substr($what, 0, 7) == 'tp_tags')
{
// check the value, only letters and underscore allowed
$allowed = "/[^a-zA-Z0-9_]/";
$value = preg_replace($allowed, '', $value);
if(!empty($value))
$smcFunc['db_query']('REPLACE',
'{db_prefix}tp_variables',
array('value1' => 'string', 'type' => 'string'),
array($value,'globaltag'),
array('id')
[b]string 2735[/b] );
}
}
Change this line:
$smcFunc['db_query']('REPLACE',
To this:
$smcFunc['db_insert']('REPLACE',
Bug is fixing ! Many Thanks!
... with add tags from article... if I add tag from article and press Save, I have $value, but not TAG...
look this:
and in list of TAGs adds $value
If you search for that error I'm sure I've already posted a fix for it. If not I'll have to come back later. Working on my car problems at the moment. lol
I am search it, but not found how fix this bug in my case :(
Probably because I posted it at SMF. :D
http://www.simplemachines.org/community/index.php?topic=27642.msg3095779;topicseen#msg3095779
I do not search it in SMF forum, but it work and fixing my bug! Thank you for help ! :)