Topic: Help needed modifying <pun_status>
Hey everyone,
I need to change the order of displaying <pun_status> elements. These are:
Logged in as, Last visit, New posts, Mark all topics as read.
I want to have them in the following order:
New posts, Mark all topics as read, Logged in as, Last visit.
Any time I try to modify header.php something goes wrong and they dont display. Here's the code:
$tpl_temp = "\n\t\t\t".'<div class="events_head">'."\n\t\t\t\t".'<p>'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong> ||'."\n\t\t\t\t".$lang_common['Last visit'].': '.format_time($pun_user['last_visit']);
if ($pun_user['g_id'] < PUN_GUEST)
{
$result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
if ($db->result($result_header))
$tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><strong><a href="admin_reports.php">There are new reports</a></strong></li>';
if ($pun_config['o_maintenance'] == '1')
$tpl_temp .= "\n\t\t\t\t".'<li class="maintenancelink"><strong><a href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong></li>';
}
if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php')))
$tpl_temp .= "\n\t\t\t"."\n\t\t\t"."\n\t\t\t\t".'<span><a href="search.php?action=show_new" class="events_text_link">'.$lang_common['Show new posts'].'</a>'."\n\t\t\t\t".'<a href="misc.php?action=markread" class="events_text_link">'.$lang_common['Mark all as read'].'</a></span>'."\n\t\t\t"."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
else
$tpl_temp .= "\n\t\t\t".'<br />'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
Could you please help me modify the code above?
Thanks in advance,
AV_