Variable array $postrow
Publicado: 16 Feb 2010, 02:09
Hola,
He visto que algunas variables del array $postrow no muestra el contenido.
Ejemplo en el post donde tiene que decir: por Autor» Lun Feb 15, 2010 6:55 pm
Sólo sale: por » Lun Feb 15, 2010 6:55 pm
El código es:
Como ven, la variable postrow.POST_DATE si se muestra, pero la variable postrow.POST_AUTHOR_FULL no lo hace.
Así sucede también para las variables puesta en la firma como en los avatars, no muestran su contenido.
Este es el contenido en Viewtopic.php que crea este array
He notado que la varible 'POST_DATE' usa solo $user, en cambio las otras variables usan $user_cache
Toda idea para solucionar este problema sera muy agradecido
He visto que algunas variables del array $postrow no muestra el contenido.
Ejemplo en el post donde tiene que decir: por Autor» Lun Feb 15, 2010 6:55 pm
Sólo sale: por » Lun Feb 15, 2010 6:55 pm
El código es:
Código: Seleccionar todo
<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> » {postrow.POST_DATE} </p>
Así sucede también para las variables puesta en la firma como en los avatars, no muestran su contenido.
Este es el contenido en Viewtopic.php que crea este array
Código: Seleccionar todo
$postrow = array(
'POST_AUTHOR_FULL' => ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_full'] : get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
'POST_AUTHOR_COLOUR' => ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_colour'] : get_username_string('colour', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
'POST_AUTHOR' => ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_username'] : get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
'U_POST_AUTHOR' => ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_profile'] : get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
'RANK_TITLE' => $user_cache[$poster_id]['rank_title'],
'RANK_IMG' => $user_cache[$poster_id]['rank_image'],
'RANK_IMG_SRC' => $user_cache[$poster_id]['rank_image_src'],
'POSTER_JOINED' => $user_cache[$poster_id]['joined'],
'POSTER_POSTS' => $user_cache[$poster_id]['posts'],
'POSTER_FROM' => $user_cache[$poster_id]['from'],
'POSTER_AVATAR' => $user_cache[$poster_id]['avatar'],
'POSTER_WARNINGS' => $user_cache[$poster_id]['warnings'],
'POSTER_AGE' => $user_cache[$poster_id]['age'],
'POST_DATE' => $user->format_date($row['post_time'], false, ($view == 'print') ? true : false),
'POST_SUBJECT' => $row['post_subject'],
'MESSAGE' => $message,
'SIGNATURE' => ($row['enable_sig']) ? $user_cache[$poster_id]['sig'] : '',
'EDITED_MESSAGE' => $l_edited_by,
'EDIT_REASON' => $row['post_edit_reason'],
'BUMPED_MESSAGE' => $l_bumped_by,
He notado que la varible 'POST_DATE' usa solo $user, en cambio las otras variables usan $user_cache
Toda idea para solucionar este problema sera muy agradecido