MyBB Community Forums

Full Version: phpBB3 Forum Header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am trying to make a phpBB3-like theme and I've run into a problem. I'm trying to get the "Threads", "Posts", and "Last Posts" on the main forum header like it is here. I'm trying to edit the "forumbit_depth1_cat" template, but I'm not getting the result I wanted. Here's what I have so far:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_l.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbg.gif) repeat-x" align="center" width="100%"><div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" /></div>
<span class="thead"><div style="text-align: left;"><strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong>


<br /><div class="smalltext">{$forum['description']}</div></strong></div></span>

<td width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>
<td width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_posts}</strong></td>
<td width="200" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_lastpost}</strong></td>

</td>
<td align="right"><img src="{$theme['imgdir']}/cat_r.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">

{$sub_forums}
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_lb.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbgb.gif) repeat-x" align="center" width="100%">
</td>
<td align="right"><img src="{$theme['imgdir']}/cat_rb.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<br />
ew, sorry...I just hate phpbb3. =P
made the move from phpbb to here and ain't going back. =)
Nice idea but i'm not too sure about forum look-a-likes
Obviously the person is making it for his site. (I assume)
Can anybody help me out here?
computergeek67 Wrote:I am trying to make a phpBB3-like theme and I've run into a problem. I'm trying to get the "Threads", "Posts", and "Last Posts" on the main forum header like it is here. I'm trying to edit the "forumbit_depth1_cat" template, but I'm not getting the result I wanted. Here's what I have so far:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_l.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbg.gif) repeat-x" align="center" width="100%"><div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" /></div>
<span class="thead"><div style="text-align: left;"><strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong>


<br /><div class="smalltext">{$forum['description']}</div></strong></div></span>

<td width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>
<td width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_posts}</strong></td>
<td width="200" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_lastpost}</strong></td>

</td>
<td align="right"><img src="{$theme['imgdir']}/cat_r.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">

{$sub_forums}
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_lb.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbgb.gif) repeat-x" align="center" width="100%">
</td>
<td align="right"><img src="{$theme['imgdir']}/cat_rb.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<br />

I believe this is the template you want to edit ------> forumbit_depth2_forum_lastpost

That is if this is what your wanting to change?
Quote:by karlsemple
on Wed May 21, 2008 8:32 am
That is not what I want to edit. Here's an example:
http://img292.imageshack.us/my.php?image...deriq3.png

As you can see there, I want to move all the contents of the subheader except for the "forum" text up to the main forum header.
computergeek67 Wrote:That is not what I want to edit. Here's an example:
http://img292.imageshack.us/my.php?image...deriq3.png

As you can see there, I want to move all the contents of the subheader except for the "forum" text up to the main forum header.

Index Template. Note the code between {$header} and {$forums}.

{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat"> </td>
<td class="tcat" width="100%"><strong>{$lang->forumbit_forum}</strong></td>
<td class="tcat" width="175" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_lastpost}</strong></td>
<td class="tcat" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>
<td class="tcat" align="center"><strong>{$lang->forumbit_posts}</strong></td>
</tr>
{$forums}


I *believe* that is what your looking for. It should give you a place to start anyways.
Any luck?
Well, the code that you gave just adds another table at the top of the forum. I don't think I can play around with that because the "{$forums}" variable dictates all the forum tables. The best luck I got was with this code:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_l.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbg.gif) repeat-x" align="center" width="100%"><div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" /></div>
<span class="thead"><div style="text-align: left;"><strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></strong></div></span>



</td>
<td align="right"><img src="{$theme['imgdir']}/cat_r.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
	<tr>
		<tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_lb.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbgb.gif) repeat-x" align="center" width="100%">
</td>
<td align="right"><img src="{$theme['imgdir']}/cat_rb.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<br />

Which gave me this result:
http://img361.imageshack.us/my.php?image...66bdu5.png
Pages: 1 2