2016-05-05, 07:21 AM
(2016-05-05, 04:22 AM)palhanow Wrote: [ -> ](2016-05-04, 10:43 PM)TheDragonRing Wrote: [ -> ]Hi, I'm trying to setup a forum for my organisation (BoxOfDevs) and I am using your "Focus" theme for it. I just have a few questions about how to setup various parts of it. First off, I have seen the explanation you gave for setting up the latest posts sidebar but didn't find the instructions you gave about changing codes very clear, could you give a better explanation of that please? Secondly, I can't find anything that explains how to setup the "Advertisments" section on the sidebar, could you also reply with an explanation of that? Also, I have been unable to find any explanations on how to customise the footer that comes with the theme, could you please help with that? Thank you in advance, I hope you reply soon!
Hey man,
I've ben there.
Let me try to help. Lets do like Jack The Ripper, by parts.
So, first thing, the sidebar AND the Ads:
Download this: http://community.mybb.com/thread-162649-...pid1195131
Go to ACP -> Templates and Style -> Index Templates -> Open index template.
Okey, a lot of codes bla bla, so, follow this:
Search and change this:
<div style="float:{$left};width: 80%;">{$forums}</div> <div style="float:{$right};width:19%;">{$sidebar}</div>
To this:
{$forums}
And change this:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <strong><i class="fa fa-comments"></i> Recent Posts</strong> </td> </tr> <tr> <td class="trow1"> Please use any recent posts plugin to show recent threads.</td> </tr> </table><br/>
To this:
{$sidebar}
Your index template should look like this, WITH THE ADS IN THE SIDE:
<html> <head> <!-- Site optimized with MySEO 1.0 --> {$seo_index} <!-- Site optimized with MySEO 1.0 --> <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} <div class="forum"> {$forums} </div> <div class="sidebar"><br/> {$sidebar} <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"><strong><i class="fa fa-pie-chart"></i> Forum Stats</strong></td> </tr> <tr> <td class="trow1"> <span class="smalltext"> {$mybb->settings['bbname']} tem {$stats['numusers']} registered members.<br /> New Threads: {$newestmember}<br /> Total Threads: {$stats['numthreads']}<br /> Total Posts: {$stats['numposts']} </span> </td> </tr> </table> <br /> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"> <tr> <td class="thead"> <strong><i class="fa fa-registered"></i> Ads here!</strong> </td> </tr> <tr> <td class="trow1"> ->>>>>>>>>PUT YOUR AD CODE HERE!! 250x250 box in Google AdSense should do the job great!</td> </tr> </table> </div> {$boardstats} <dl class="forum_legend smalltext"> </dl> <br class="clear" /> {$footer} </body> </html>
WallBB, please correct me if im wrong!
This is basically my index template without some customizing.
The Footer thing:
Just go in ACP -> Templates And Style -> Templates -> Footer Templates -> footer
Done. Copy the code inside, custom like you want, its very easy. Change what you want, remove what you want, customize texts, etc. Just dont remove the copyrights texts from MyBB and Focus Theme so you can get support in this Forum and to give credit to the proper authors.
Thats it. I hope this help you.
Thankyou! I will try this out ASAP. Hopefully it works!
Help! I edited the index template as you said here, just didn't do the advertisement section yet. Below is my index template ->>>>>
<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}
<div class="forum">
{$forums}
</div>
<div class="sidebar"><br/>
{$sidebar}
</table><br/>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong><i class="fa fa-pie-chart"></i> Forum Stats</strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">
Total Members: {$stats['numusers']}<br />
Total Threads: $stats['numthreads']}<br />
Total Posts: $stats['numposts']}<br />
Newest Member: {$newestmember}
</span>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<strong><i class="fa fa-registered"></i> Advertise here</strong>
</td>
</tr>
<tr>
<td class="trow1">
TODO</td>
</tr>
</table>
</div>
{$boardstats}
<dl class="forum_legend smalltext">
<dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
<dd>{$lang->new_posts}</dd>
<dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
<dd>{$lang->no_new_posts}</dd>
<dt><span class="forum_status forum_offlock" title="{$lang->forum_locked}"></span></dt>
<dd>{$lang->forum_locked}</dd>
<dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
<br class="clear" />
{$footer}
</body>
</html>
Except now when i try going to my forums (http://forums.boxofdevs.ml) there is either a 503 Service Unavaliable error or just a blank white page....