MyBB Community Forums
[Tutorial] text after category. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [Tutorial] text after category. (/thread-104168.html)



[Tutorial] text after category. - FunctionHab - 2011-09-18

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">
<thead>
<tr>
<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>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<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>
</tr>
{$sub_forums}
</tbody>
</table>
<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.


RE: [Tutorial] text after category. - Alex C. - 2011-09-18

What does this look like when added and what's its purpose?... I'm confused.


RE: [Tutorial] text after category. - Omar G. - 2011-09-18

Almost sure that is not a valid xhtml code.


RE: [Tutorial] text after category. - FunctionHab - 2011-09-19

It doesnt really have a purpose....


RE: [Tutorial] text after category. - TheNova - 2011-09-19

Is this after every category, or can it be made to show after certain categories?


RE: [Tutorial] text after category. - ranjani - 2011-09-19

^ @TheNova, it is added after every category .
you can use template conditionals plug-in to show required thing after certain categories (see also this ..)




RE: [Tutorial] text after category. - MyBB Hoster - 2011-09-20

Its the gray tfoot under each category like on the picture say "Gamefeint Community" its a return to top kinda deal.


RE: [Tutorial] text after category. - FunctionHab - 2011-09-20

It doesnt have to be return to the top. theres a section in the code that has <a href=" " I just put gamefeint.com/#top in it.