"Color Groups" und "Users of the day"

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
haba
Mitglied
Beiträge: 56
Registriert: 27.04.2004 15:52
Wohnort: Kt. TG

Beitrag von haba »

Schade, ich habe gedacht hier könnte mir jemand helfen?!
chaotix
Mitglied
Beiträge: 17
Registriert: 06.06.2004 22:02

Beitrag von chaotix »

Habe das gleiche Problem wie Du .

Ich habe jetzt einfach in den Color_Groups die Farben so definiert, wie sie bei den Users_of_the_day ausgegeben weden.

Obwohl bei den Color-Groups die Farbe "orange" nicht expliziet angegeben ist, nimmt der Mod sie trotzdem.

Mir stellt sich nun auch noch das Problem, das sich der Color_Group Mod überhaupt nicht mit dem last_post_topic_index verträgt.

Die Anweisung lautet dort :

#
#-----[ ACTION Find ]------------------[phpBB 2.0.5]-----------------------
#
if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$last_post = $last_post_time . '<br />';

$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '
<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
In meiner index.php steht nun durch den Color_Groups aber was anderes :

if ( $forum_data[$j]['forum_last_post_id'] )
{
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);

$last_post = $last_post_time . '<br />';


$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) :
color_group_colorize_name($forum_data[$j]['user_id']);

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
Auch hier habe ich schon alles möglich versucht - aber keinen Plan, wie ich die beiden zusammenbringe.

Gruss
Antworten

Zurück zu „phpBB 2.0: Mod Support“