Not Solved Forum_legend into table
#1
Not Solved
Hello there,
I'm creating a theme and I want to put the forum legend into a table
<dl> code isn't edited

[Image: 2u3wft3.png]
[Image: 2sbqr7q.png]

Like this:
[Image: e0n2o7.gif]
[Image: 2lazl1z.jpg]
My Portfolio (Not updated)
Reply
#2
Not Solved
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
<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

[Image: all-fanart.jpg]
Reply
#3
Not Solved
I have to modify those templates to do that?
[Image: 2lazl1z.jpg]
My Portfolio (Not updated)
Reply
#4
Not Solved
That is correct.

[Image: all-fanart.jpg]
Reply
#5
Not Solved
Fixed with:
<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
[Image: 2lazl1z.jpg]
My Portfolio (Not updated)
Reply
#6
Not Solved
Cool. Glad you sorted it out.

[Image: all-fanart.jpg]
Reply
#7
Not Solved
Sorry for "bumping" this, but I need help too. Shedrock didn't really explain which bit needs to be edited :\
Reply
#8
Not Solved
Everything in each template.

[Image: all-fanart.jpg]
Reply
#9
Not Solved
o.0 Nevermind, doesnt matter.
Reply
#10
Not Solved
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
[Image: 2lazl1z.jpg]
My Portfolio (Not updated)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)