MyBB Community Forums

Full Version: Edit template: $forums. Where is it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I'd like to edit the main (index) page and for that, I 've taken a look at Edit Template : index. Index is made up of
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
...
</head>
<body>
{$header}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

You see, there's a $forums template over there.
But where is that $forums template located? I can't find it in Admin CP.


Thanks.[/code]
$forums is all the forums together, all loading different templates. What is it you want to change exactly?? The name in {} doesn't mean it's loading a template with that name.
Thank you for the reply.
I want to delete the the <br> marked *** in this typical HTML output of index page:

<table class="tborder" border="0" cellpadding="4" cellspacing="1">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img style="cursor: pointer;" src="images/collapse.gif" id="cat_1_img" class="expander" alt="[-]" title="[-]"></div>
<div><strong><a href="forumdisplay.php?fid=1">Title 1</a></strong>***<br>***<div class="smalltext">Title 2</div></div>
</td>
</tr>
</thead>
<tbody style="" id="cat_1_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>Forum</strong></span></td>

<td class="tcat" style="white-space: nowrap;" align="center" width="85"><span class="smalltext"><strong>Subjects</strong></span></td>
...

so that forum title and its details do not cover much space. To do that I needed to delve into index and then $forums.

Here's my MyBB forum URL (under construction)[/code]
I belive that is the index template, but it might not be. I can't check right now though, sorry.
I've finally found it, it's the forumbit_depth1_cat template!
The template name is not so intuitive, why there's the suffix of "bit" I have no idea but that template prepares the very main index page.

Thanks!
Because they're bits of the entire forum structure.