rickard I made some changes in punbb 1.2dev, they maybe util for you
index.php
find:
moderated by
replace:
'.$lang_common['Modby'].'
Lang_common.php
add this line:
'Modby' => 'Moderated by',
i add the login box in main page the code is:
header.php
change all pun_status for this:
// START SUBST - <pun_status>
if ($pun_user['is_guest']){
$tpl_temp = '<div class="boxin"><p class="conl">'.$lang_common['Not logged in'].'<br>'.$lang_common['ident'].'</p>';
$tpl_temp .= '<p class="conr"><pun_logina></p></div>';
}
else
{
$tpl_temp = '<div class="boxin"><p class="conl">'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong><br />'.$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 .= '<br /><strong><a href="admin_reports.php">There are new reports</a></strong>';
if ($pun_config['o_maintenance'] == '1')
$tpl_temp .= '<br /><strong><a class="punhot" href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong>';
}
if (basename($_SERVER['PHP_SELF']) == 'index.php')
$tpl_temp .= '</p><p class="conr"><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a><br /><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></p><div class="clearer"></div></div>';
else
$tpl_temp .= '</p><div class="clearer"></div></div>';
}
$tpl_main = str_replace('<pun_status>', $tpl_temp, $tpl_main);
// END SUBST - <pun_status>
// START SUBST - <pun_logina>
ob_start();
?>
<form name="login" method="post" action="<?php echo $pun_root;?>login.php?action=in" id="login">
<input type="hidden" name="form_sent" value="1">
<input type="hidden" name="redirect_url" value="<?php echo $_SERVER['REQUEST_URI']; ?>">
<b><?php echo $lang_common['Username'] ?>:</b>
<input type="text" name="req_username" size="10" maxlength="20">
<b><?php echo $lang_common['Password'] ?>:</b>
<input type="password" name="req_password" size="10" maxlength="16">
<input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>">
</form>
<?php
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_logina>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_logina>
in your lang open common.php add this line:
'ident' => 'You must register to use all features of this forum',
El Mejor Lugar de la Red - Corporación Azakur4