Sep 28, 2008, 02:26 AM
This thread is closed. To get the latest version go here:
http://www.mybbcentral.com/thread-3658.html
This is it! Your ultimate side box plugin. Took me all day to get it just right for release. This is going to make a lot of people very happy.
License is attached inside extras folder by using this software you agree to the terms of that license.
Plugin Name: My Side Boxes
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: None
Plugin File Uploads: 1
Plugin Description: This will add sideboxes to your forum. You can select right or left side. Edit the template and add custom code. You can also choose to display only on front page or also forum display. All other options are controlled via portal settings.
Installation
1. Upload the file from the zip
root/inc/plugins/my_side_boxes.php
2. Login to your admincp and ACTIVATE the plugin (My Side Boxes) in the plugin manager.
3. Edit the settings under "Portal". You will see 2 addintional new options. One for side position and one for pages display.
4. You can edit the sideboxes template "MySideBox". You will see the following:
One of the greatest things about this plugin is that it requires ZERO TEMPLATE EDITS. Yes that sounds impossible but it's true. There is one extra template added but not one single core mybb template is altered. This will not screw up your forums beyond repair. Simply "deactivate" if you have problems but please contact me if you do.
Each represents the same box you will see in your portal page. You can either use portal settings to turn these on/off, rearrange them to your desire, or add a new box with your own code (possibly an ad?).
I will post HTML code for adding additional boxes for those that aren't able to understand what to do.
DEMO: http://www.mybbcentral.com (front page only here)
Enjoy
Please report to me any bugs asap.
FAQs
Q. How can I add new boxes??
A. In your ACP, go to Templates & Style > Templates > Global Templates > MySideBox. Here you will see the code mentioned above. To add new boxes, add something like the following after the current code:
Then, your new box will look like this:
[attachment=1063]
Edit 'Heading' and 'This is where you can put your content' to whatever you like. You can also add code for ads here if you wish.
EDIT: There is a language conflict with index and a portal box. Here is the fix:
In portal.lang.php find this:
Change it to this:
Now in admincp templates edit "portal_welcome_membertext".
Replace this:
With this:
One last change...in inc/plugins/my_side_boxes.php alter any instance of $lang->new_posts into $lang->new_posts_portal
Updated Nov 19, 2008 v1.1 released
A fix was applied to prevent hidden forum threads displaying inside the latest threads box. To upgrade simple upload the plugin file and overwrite the existing one. That's it.
http://www.mybbcentral.com/thread-3658.html
This is it! Your ultimate side box plugin. Took me all day to get it just right for release. This is going to make a lot of people very happy.
License is attached inside extras folder by using this software you agree to the terms of that license.
Plugin Name: My Side Boxes
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: None
Plugin File Uploads: 1
Plugin Description: This will add sideboxes to your forum. You can select right or left side. Edit the template and add custom code. You can also choose to display only on front page or also forum display. All other options are controlled via portal settings.
Installation
1. Upload the file from the zip
root/inc/plugins/my_side_boxes.php
2. Login to your admincp and ACTIVATE the plugin (My Side Boxes) in the plugin manager.
3. Edit the settings under "Portal". You will see 2 addintional new options. One for side position and one for pages display.
4. You can edit the sideboxes template "MySideBox". You will see the following:
Code:
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}Each represents the same box you will see in your portal page. You can either use portal settings to turn these on/off, rearrange them to your desire, or add a new box with your own code (possibly an ad?).
I will post HTML code for adding additional boxes for those that aren't able to understand what to do.
DEMO: http://www.mybbcentral.com (front page only here)
Enjoy
Please report to me any bugs asap.
FAQs
Q. How can I add new boxes??
A. In your ACP, go to Templates & Style > Templates > Global Templates > MySideBox. Here you will see the code mentioned above. To add new boxes, add something like the following after the current code:
Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Heading</strong></td></tr>
<tr><td class="trow1">
This is where you can put your content.
</td></tr>
</table><br>[attachment=1063]
Edit 'Heading' and 'This is where you can put your content' to whatever you like. You can also add code for ads here if you wish.
EDIT: There is a language conflict with index and a portal box. Here is the fix:
In portal.lang.php find this:
Code:
$l['new_posts'] = "{1} new posts";Change it to this:
Code:
$l['new_posts_portal'] = "{1} new posts";Now in admincp templates edit "portal_welcome_membertext".
Replace this:
Code:
{$lang->new_posts}With this:
Code:
{$lang->new_posts_portal}One last change...in inc/plugins/my_side_boxes.php alter any instance of $lang->new_posts into $lang->new_posts_portal
Updated Nov 19, 2008 v1.1 released
A fix was applied to prevent hidden forum threads displaying inside the latest threads box. To upgrade simple upload the plugin file and overwrite the existing one. That's it.
