TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 95
  • Total: 95

TAGs add problem

Started by saks, December 01, 2011, 03:09:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saks

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] );
}
}

IchBin

Change this line:
$smcFunc['db_query']('REPLACE',

To this:
$smcFunc['db_insert']('REPLACE',

saks

Bug is fixing ! Many Thanks!

saks

... 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

IchBin

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

saks

I am search it, but not found how fix this bug in my case :(


saks

I do not search it in SMF forum, but it work and fixing my bug! Thank you for help ! :)

This website is proudly hosted on Crocweb Cloud Website Hosting.