MyBB Community Forums

Full Version: [Solved] Can someone check this code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I'm having some trouble with my theme of my board..

My stats colour and lay-out etc. aren't showing up that good.

Can you see and say me what's wrong?

<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<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>

here's the link: http://chat2b.be/forum

look for 'statistieken'

** Note: When posting code, please use the [code][/code] tags - Dale Hay **
You need to goto the template which has the Statistieken bit in it, search for:
<td class="thead">
And change it to:
<td class="thead" colspan="6">
That should sort it. Smile
Sorry for the [code]-tags.

I did that, but nothing has changed.
destroyer Wrote:Sorry for the [code]-tags.

I did that, but nothing has changed.
No probs about the tags, just keeps things nice and tidy. Smile

Would you be able to paste your template code that contains the "Statistieken" stuff on here and I will be able to help a little bit more. Smile
Woah! I'm lost. Are we looking at the 'index.php' page or the 'stats.php' page?
We are looking at the stats bit..

But I think there's something wrong with the index page bit..
destroyer Wrote:We are looking at the stats bit..

But I think there's something wrong with the index page bit..
Ok, well would you be able to post the code for that bit then. I believe the problem may be found in *Template Name* --> Index Page Templates --> index_stats or index or index_whosonline. Sorry to be a pain, but could you post the template codes for them (only the ones which have been edited). Big Grin
It's definitely in index_stats.
index:
<html>
<head>
<title>$settings[bbname]</title>
$headerinclude
</head>
<body>
$header
<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">
<div class="expcolimage"><a href="javascript: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></span>
</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
</body>
</html>

Index_stats:

<tr><td class="tcat" colspan=""><strong>$lang->boardstats</strong></td></tr>
<tr>
<td class="trow1" colspan=""><span class="smalltext">
$lang->stats_posts_threads<br />
$lang->stats_numusers<br />
$lang->stats_newestuser<br />
$lang->stats_mostonline
</span>
</td>
</tr>
Pages: 1 2