2010-05-01, 11:57 AM
2010-05-01, 12:16 PM
I can give you a sample of how this is achieved. You can then modify it to suit your needs.
Templates to be modified:
1st - index_whosonline
2nd - index_stats
3rd - index_boardstats
4th - index_birthdays
5th - index
Hope this helps.
Shedrock
Templates to be modified:
1st - index_whosonline
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1 smalltext" align="center" width="1"><img src="{$theme['imgdir']}/online.png" alt="" /></td>
<td colspan="6" class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
2nd - index_stats
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td>
</tr>
<tr>
<td class="trow1 smalltext" align="center" width="1"><img src="{$theme['imgdir']}/stats.png" alt="{$lang->boardstats}" /></td>
<td colspan="6" class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>Legend</strong></span></td>
</tr>
<tr>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->new_posts}</td>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->no_new_posts}</td>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->forum_locked}</td>
</tr>
3rd - index_boardstats
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td colspan="6" class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
<tr>
<td colspan="6" class="tfoot" style="text-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>
</tbody>
</table>
<br />
4th - index_birthdays
<tr><td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr>
<tr>
<td colspan="6" class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>
5th - index
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$boardstats}
<br class="clear" />
{$footer}
</body>
</html>
Hope this helps.
Shedrock
2010-05-01, 01:05 PM
I have to modify those templates to do that?
2010-05-01, 01:05 PM
That is correct.
2010-05-01, 01:23 PM
Fixed with:
instead of the <dl></dl> code in the index template
<td class="{$bgcolor}" width="3,3%"><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" />{$lang->new_posts}
<td class="{$bgcolor}" width="3,3%"><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" />{$lang->no_new_posts}</td><td class="{$bgcolor}" width="3,3%"><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" />{$lang->forum_locked}</td></tr></table>
instead of the <dl></dl> code in the index template
2010-05-01, 01:25 PM
Cool. Glad you sorted it out.
2010-05-02, 10:59 AM
Sorry for "bumping" this, but I need help too. Shedrock didn't really explain which bit needs to be edited :\
2010-05-02, 12:05 PM
Everything in each template.
2010-05-02, 12:35 PM
o.0 Nevermind, doesnt matter.
2010-05-02, 02:17 PM
just use my code, i can't paste a screen cause i m writing from my phone. If you want to c the effect go here: mythemes.netsons.org and view the screens of the youtube theme