Petite curiositél chez moi tout de même:
Le nom de l'auteur du message a changé dans viewforum.php mais uniquement pour les invités !
C'était noir avant, et là c'est écrit en blanc! Si qulequ'un sait d'ou ca peut venir
Modérateur: Modérateurs


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { color: #FFFFFF; font-size: 11px }
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$moderators[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$moderators[] = ($userdata['session_logged_in']) ? ('<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>') : '<span class="name">' . $row['username'] . '</span>';
#
#-----[ FIND ]------------------------------------------
#
$moderators[] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$moderators[] = ($userdata['session_logged_in']) ? ('<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>') : '<span class="name">' . $row['group_name'] . '</span>';
#
#-----[ FIND ]------------------------------------------
#
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
}
else
{
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<span class="name">' . $topic_rowset[$i]['username'] . '</span>': ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : '<span class="name">' . $lang['Guest'] . '</span>');
}
#
#-----[ FIND ]------------------------------------------
#
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? '<span class="name">' . $topic_rowset[$i]['post_username2'] . '</span>' : '<span class="name">' . $lang['Guest'] . '</span>') : ($userdata['session_logged_in']) ? ('<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>') : '<span class="name">' . $topic_rowset[$i]['user2'] . '</span>';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM <span class="name">
Parse error: syntax error, unexpected ')' in /home.10.11/forumpri/www/forum/viewforum.php on line 660$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? '<span class="name1">' . $topic_rowset[$i]['post_username2'] . '</span>' : '<span class="name1">' . $lang['Guest'] . '</span>') : ($userdata['session_logged_in']) ? ('<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>') : '<span class="name1">' . $topic_rowset[$i]['user2'] . '</span>');
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? '<span class="name1">' . $topic_rowset[$i]['post_username2'] . '</span>' : '<span class="name1">' . $lang['Guest'] . '</span>') : ($userdata['session_logged_in']) ? ('<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>') : '<span class="name1">' . $topic_rowset[$i]['user2'] . '</span>';
Parse error: parse error in c:\users\marie\easyphp1-8\www\forum\viewforum.php on line 1029
$last_post .= $lang['TY-by'] . (( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] ) : ($userdata['session_logged_in']) ? ('<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $subforum_data[$j]['user_id']) . '" style="color:' . $subforum_data[$j]['user_colour'] . '">' . $subforum_data[$j]['username'] . '</a><br>') . $lang['TY-in'] : ($subforum_data[$j]['username'] . ' ');

$last_post .= $lang['TY-by'] . (( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $subforum_data[$j]['user_id']) . '" style="color:' . $subforum_data[$j]['user_colour'] . '">' . $subforum_data[$j]['username'] . '</a><br>') . $lang['TY-in'];
$last_post .= $lang['TY-by'] . (( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] ) : ($userdata['session_logged_in'] ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $subforum_data[$j]['user_id']) . '" style="color:' . $subforum_data[$j]['user_colour'] . '">' . $subforum_data[$j]['username'] . '</a><br>' : '<b style="color:' . $subforum_data[$j]['user_colour'] . '">' . $subforum_data[$j]['username'] . '</b><br>')) . $lang['TY-in'];

Retourner vers Mods et Code phpBB2
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité