herhangi bir linke tiklayinca söyle hata cikiiyor
- Kod: Tümünü seç
Fatal error: Call to undefined function: add_points() in /www/htdocs/XXXXX/forum/includes/functions_post.php on line 378
sayfayi ikki üc kere yenileyince hata gidiyor
ama yinede cok sinir edici
hem ben points ile alakali herhangi bir kod vermedim
378.- satirda suna benzer bir kod var
- Kod: Tümünü seç
if (($userdata['user_id'] != ANONYMOUS) && ($userdata['admin_allow_points']))
{
add_points($userdata['user_id'], $points);
}
}
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
return false;
ama dün gece ekledigim kod ise
cok farkli bir yerde
buda dün gece ekledigim kod
- Kod: Tümünü seç
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
return;
}
//
// Delete a post/poll
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$current_time=time();
$minutes = date('is', $current_time);
$hour_now = $current_time - (60*($minutes[0].$minutes[1])) - ($minutes[2].$minutes[3]);
$sql='UPDATE '.SITE_HISTORY_TABLE.' SET '.(($mode == 'newtopic' || $post_data['first_post']) ? 'new_topics=new_topics':'new_posts=new_posts').$sign.' WHERE date='.$hour_now;
if ( !$db->sql_query($sql) || !$db->sql_affectedrows() )
{
$sql = 'INSERT IGNORE INTO '.SITE_HISTORY_TABLE. ' (date, '.(($mode == 'newtopic' || $post_data['first_post']) ? 'new_topics': 'new_posts').')
VALUES ('.$hour_now.', "1")';
if ( !($db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Error createing new site_hitory'.$sql, '', __LINE__, __FILE__, $sql);
}
}
ne yapmam lazim acaba anacimm
Kurdugum modun linkide burada
http://mods.db9.dk/download.php?id=67
Sevgiyle