Téma: Nefunguje Icon Topic s Easy Poll2.0
Ahoj, mam problem, jsem neznaly v php a proto me to nejde upravit.
Podarilo se me rozchodit easy poll 2.0, muzu poslat hotove soubory, ale mam problem s Icon Topic..
// If it's a new topic
else if ($fid)
{
if(isset($ptype)) // Si c'est un sondage
{
if ($ptype == 3)
$db->query('INSERT INTO ' . $db->prefix . 'topics (poster, subject, posted, last_post, last_poster, forum_id, question, yes, no) VALUES(\'' . $db->escape($username) . '\', \'' . $db->escape($subject) . '\', ' . $now . ', ' . $now . ', \'' . $db->escape($username) . '\', ' . $fid . ', \'' . $db->escape($question) . '\', \'' . $db->escape($yesval) . '\', \'' . $db->escape($noval) . '\')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());
else
$db->query('INSERT INTO ' . $db->prefix . 'topics (poster, subject, posted, last_post, last_poster, forum_id, question) VALUES(\'' . $db->escape($username) . '\', \'' . $db->escape($subject) . '\', ' . $now . ', ' . $now . ', \'' . $db->escape($username) . '\', ' . $fid . ', \'' . $db->escape($question) . '\')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());
$new_tid = $db->insert_id();
if ($ptype != 0)
$db->query('INSERT INTO ' . $db->prefix . 'polls (pollid, options, ptype) VALUES(' . $new_tid . ', \'' . $db->escape(serialize($option)) . '\', ' . $ptype . ')') or error('Unable to create poll', __FILE__, __LINE__, $db->error());
}
else
{
// Create the topic
$db->query('INSERT INTO '.$db->prefix.'topics (poster, subject, posted, last_post, last_poster, forum_id) VALUES(\''.$db->escape($username).'\', \''.$db->escape($subject).'\', '.$now.', '.$now.', \''.$db->escape($username).'\', '.$fid.')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());
$new_tid = $db->insert_id();}toto je cisty script, prosim poslete me, jak by mel vypadat s icon topicem..kdyz tam vlozim ten radek co je napsany v navodu, nic to nedela..v databazy se akorat vyplni v hodnote icon_topic 0, kdyz ji prepisu, ve viewformu se ikonka vedle topicu zobrazi..nejak ten Poll to zmenil, kdyz si dam cistou instalaci a aplikuju Icon Topic tak to faka...diky moc :-)