ragazzi mi potete aiutare??? ho questo codice nel waptopic:
Codice PHP:
echo("[b] ".$topicinfo['topic_title']."[/b]
Da ");#
if($user['username'] != "Anonymous")
{
echo("<anchor>" . $user['username'] . "<go href=\"" . append_sid("wapmisc.$phpEx?action=profile&u=" . $user['user_id'] . "") . "\" /></anchor>");
}
else
{
echo $user['username'];
}
echo (" ".$noposts." il ");
echo create_date($board_config['default_dateformat'], $post['post_time'], $board_config['board_timezone']);
echo(" Nel forum: <anchor>$forum<go href=\"" . append_sid("wapmisc.$phpEx?action=forum&forum=$forum_id") . "\" /></anchor>
");
echo($post_text);
vicino all'autore del topic vorrei inserire un'icona se è online
questo nella versione web:
Codice PHP:
if ( $row['user_session_time'] >= ( time() - ($board_config['whosonline_time'] * 60) ) )
{
if ( $row['user_allow_viewonline'] )
{
$online_status_img = '[url="' . append_sid("][img]' . $images['Online'] . '[/img][/url]';
}
else if ( $userdata['user_level'] == ADMIN || $userdata['user_id'] == $user_id )
{
$online_status_img = '[url="' . append_sid("][img]' . $images['Offline'] . '[/img][/url]';
}
else
{
$online_status_img = '[img]' . $images['Offline'] . '[/img]';
}
}
else
{
$online_status_img = '[img]' . $images['Offline'] . '[/img]';
potete aiutarmi???grazie