Find ein code nett in mein Style
Verfasst: 18.03.2007 20:14
Hi PhpBB Team und Mitglieder, hab wieder mal ein
Problem finde ein code nett in meiner posting.php
hier den code nett:
das ist der Mod :http://phpbbmods.de/ftopic393.html
brauch Deswegen eure Hilfe
Problem finde ein code nett in meiner posting.php
hier den code nett:
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------
#
$post_info = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$sql = "SELECT f.forum_bedankomat FROM " . FORUMS_TABLE . " f WHERE f.forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
}
while ( $row = $db->sql_fetchrow($result) )
{
$forum_bedankomatexist = $row['forum_bedankomat'];
}
if ($forum_bedankomatexist == 1)
{
$template->assign_block_vars('switch_bedankomat_on', array());
}
$sql = "SELECT * FROM " . BEDANKOMAT_TABLE . "
WHERE topic_id = " . $post_info['topic_id'];
if ($result = $db->sql_query($sql))
{
$total_thx = $db->sql_numrows($result);
}
$db->sql_freeresult($result);
if ((intval($total_thx) == 0 || $mode == 'newtopic') && $mode != 'reply')
{
$topic_bedankomat = ($post_info['topic_bedankomat'] == TRUE || $mode == 'newtopic') ? 'checked="checked"' : '';
}
else if (intval($total_thx) >= 0 && $mode != 'reply')
{
$s_hidden_bedankomat = '<input type="hidden" name="topic_bedankomat" value="1" />';
}
else
{
$s_topic_bedankomat = ($post_info['topic_bedankomat'] == TRUE) ? 1 : 0;
$s_hidden_bedankomat = '<input type="hidden" name="topic_bedankomat" value="'.$s_topic_bedankomat.'" />';
}
brauch Deswegen eure Hilfe