MyBB Community Forums

Full Version: [Tutorial] text after category.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, so I am going to show you guys how to add your any text after each category.

1. Go to Admin CP > Templates & Styles > Templates > Your theme name > Forum Bit > forumbit_depth1_cat

In there you'll see all this

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="80" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="80" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
<br />

2. Now copy this

<td class="tfoot" colspan="6"><span class="smalltext"><strong><i><a href="#top">Your text</a></i></strong></span></td>

(Replace "Your text" with anything)

3. Paste this between </tbody> and </table> (Youll see at the very end of the long code at step 1.

Thats it!
You can also put an image instead of text.

[Image: image1.png]

You can see the text "GameFeint Community" after the first category.
What does this look like when added and what's its purpose?... I'm confused.
Almost sure that is not a valid xhtml code.
It doesnt really have a purpose....
Is this after every category, or can it be made to show after certain categories?
^ @TheNova, it is added after every category .
you can use template conditionals plug-in to show required thing after certain categories (see also this ..)

Its the gray tfoot under each category like on the picture say "Gamefeint Community" its a return to top kinda deal.
It doesnt have to be return to the top. theres a section in the code that has <a href=" " I just put in it.