MyBB Community Forums

Full Version: Messed up code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I messed up the code from the index_whosonline template.

In my back-up database, I found something like this:

<tr>\n<td class="tcat"><strong>$lang->whos_online</strong> [<a href="online.php">$lang->complete_list</a>]</td>\n</tr>\n<tr>\n<td class="trow1"><span class="smalltext">$lang->online_note<br />$onlinemembers</span></td>\n</tr>

Which code do I need to restore the whosonline template?

Thanks!
From an newly installed 1.1.2 it looks like this.
<tr>
<td class="tcat"><strong>$lang->whos_online</strong> [<a href="online.php">$lang->complete_list</a>]</td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">$lang->online_note<br />$onlinemembers</span></td>
</tr>
Yeah, I know, but than I get something like this: http://www.chat2b.be/forum (look for the online stuff)
what do u have on the index template?
<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
$wm
<table width="100%" border="0">
<tr>
<td width="75%" valign="top">$forums </td>
<td width="25%" valign="top">$search
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td>
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td cellspacing="0" cellpadding="0" >
<span class="smalltext">
$shoutbox</span>
<div align="center">$shoutboxlink | </div>
</td>
</tr>
</table>
</td></tr></table>
</td>
</tr>
</table>
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<thead>
<tr>
<td class="thead" colspan="6">
<div class="expcolimage"><a href="java script:expandCollapse('boardstats');"><img src="$theme[imgdir]/collapse$collapsedimg[boardstats].gif" id="boardstats_collapseimg" border="0" alt="[-]" /></a></div>
<div><strong>$lang->boardstats</strong></div>
</td>
</tr>
</thead>
<tbody style="$collapsed[boardstats_e]" id="boardstats_e">
$whosonline
$birthdays
$forumstats<!-- ASOIP_2_0_I -->
</tbody>
</table>
<br />
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="trow1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left">
<table cellspacing="0" cellpadding="2" border="0">
<tr><td><img src="$theme[imgdir]/on.gif" alt="$lang->new_posts" /></td><td class="trow"><span class="smalltext">$lang->new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/off.gif" alt="$lang->no_new_posts" /></td><td class="trow"><span class="smalltext">$lang->no_new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/offlock.gif" alt="$lang->forum_locked" /></td><td class="trow"><span class="smalltext">$lang->forum_locked</span></td></tr>
</table>
</td>
<td valign="top" align="right">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td valign="top" align="right">
<span class="smalltext">$logoutlink<a href="misc.php?action=markread">$lang->markread</a> | <a href="showteam.php">$lang->forumteam</a> | <a href="stats.php">$lang->forumstats</a>
</td></tr>
</td></tr>
$loginform
</table>
</td></tr>
</table>
</td></tr>
</table>
<div align="center"><a href="http://pinguin-net.be/" target= "_blanc"><img src="http://pinguin-net.be/pinguin-net2.jpg" width="157" height="31" border="0"></a>
$footer
<br><center>Het forum is $forumage oud!</br></center>
</body>
</html>
I couldn't check your site to see what's the matter, but remember that something ,the problem lies in a template that is displayed within another template.


regards
Yeah, but I have only edited the whos_online to test the usercolour legend. Toungue
But now it got messed up.. so if you want to, please help me. Toungue
i dont see any wrong in that page. so maybe you have restored them, tell what you want to add , and i will give u the full code.

I just want to add a nice online.php (which hasn't got the purple (normal:white space and a user colour legend). Because now, as you see, it got screwed up. Toungue
Well i dont see any group legened , however if you need to add one, make sure to look at this
umm i dont see any mess in the who's online row, however if there is anything that i have missed, then make sure to revert the index_whosonline template back as the default.

regards
Pages: 1 2