dieser MOD klingt interessant. Könnt Ihr den vielleicht als eine MOD Bausatz beschreiben, so wie alle MOD´s sind? Zum schluss war ich etwas verwirrt, wie ich das alles machen muss

bedanke mich schonmal in vorraus dazu.
gruß flatron2006
Gehts vielleicht indem ich ne Variable umbenenne? Wenn ja, welche und wo überall? (Hab schon bissele den Überblick verloren, das letzte mal als ich mich mit dem Problem beschäftigt hab, is ja schon ein wenig her).Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40 bytes) in /home/www/webXXXX/html/TWINcast/includes/functions.php on line 1130
Aktueller Stand ist (man beachte die // Auskommentierungen):metty84 hat geschrieben:na ich hab nich gekukt ich hab mich auf deine aussage gestützt und dachte du hättest es innerhalb e9ner schleife reingebaut
EDIT: du hast nur den zweiten teil eingebaut der die daten ans template ausgibt aber den ersten teil nicht in dem die daten erstmal erzeugt werden
also probiers mal so
in zeile 711 einfügenCode: Alles auswählen
// // If you don't use these stats on your index you may want to consider // removing them // $total_posts = get_db_stat('postcount'); $total_users = get_db_stat('usercount'); $newest_userdata = get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; if( $total_posts == 0 ) { $l_total_post_s = $lang['Posted_articles_zero_total']; } else if( $total_posts == 1 ) { $l_total_post_s = $lang['Posted_article_total']; } else { $l_total_post_s = $lang['Posted_articles_total']; } if( $total_users == 0 ) { $l_total_user_s = $lang['Registered_users_zero_total']; } else if( $total_users == 1 ) { $l_total_user_s = $lang['Registered_user_total']; } else { $l_total_user_s = $lang['Registered_users_total']; }
Code: Alles auswählen
//
// If you don't use these stats on your index you may want to consider
// removing them
//
//$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
//if( $total_posts == 0 )
//{
// $l_total_post_s = $lang['Posted_articles_zero_total'];
//}
//else if( $total_posts == 1 )
//{
// $l_total_post_s = $lang['Posted_article_total'];
//}
//else
//{
// $l_total_post_s = $lang['Posted_articles_total'];
//}
if( $total_users == 0 )
{
$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if( $total_users == 1 )
{
$l_total_user_s = $lang['Registered_user_total'];
}
else
{
$l_total_user_s = $lang['Registered_users_total'];
}
Ergebnis ist auf www.twincast.de (linke Seite, mittlerer Block "Wer ist online?") zu bewundern.'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts_viewtopic),