MyBB Central
CLOSED - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Archives (http://www.mybbcentral.com/forum-33.html)
+--- Forum: Mybb 1.4x Series Topics (http://www.mybbcentral.com/forum-26.html)
+---- Forum: Mybb 1.4x Plugins and Hacks (http://www.mybbcentral.com/forum-27.html)
+---- Thread: CLOSED (/thread-1697.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


CLOSED - labrocca - Sep 28, 2008

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:
Code:
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
{$latestthreads}
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:
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>
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:

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.


RE: My Side Boxes - djrzn - Sep 28, 2008

hmm, why i can't download it?
Later edit: I saw that i have to subscribe..


RE: My Side Boxes - labrocca - Sep 28, 2008

I have sent you a PM djrzn about a free subscription deal in trade for some web design. Let me know.


RE: My Side Boxes - avhidesert - Sep 28, 2008

I have installed "side boxes" on my forum, pretty neat. One problem came up with the redirect:
When the side box listing is clicked it returns to the index. Looking at the bar on the bottom of the screen all of the listings go to the ****/forum index page. It doesn't pick up the index address.

Got a suggestion???????


RE: My Side Boxes - labrocca - Sep 28, 2008

Oh you are right. I will fix that. Thanks.


RE: My Side Boxes - CoDPlay3r - Sep 28, 2008

The sidebox on this forum doesn't work. It just points me to the index.

LeX's sidebox had this problem as well but then he fixed it.


RE: My Side Boxes - avhidesert - Sep 28, 2008

(Sep 28, 2008, 11:39 AM)avhidesert Wrote: I have installed "side boxes" on my forum, pretty neat. One problem came up with the redirect:
When the side box listing is clicked it returns to the index. Looking at the bar on the bottom of the screen all of the listings go to the ****/forum index page. It doesn't pick up the index address.

Got a suggestion???????

Can you let me know when you have the fix. I am not as articulate as some of my brethern. Please let me know when and where.
Thanks
Jack


RE: My Side Boxes - labrocca - Sep 28, 2008

Fixed. To update just overwrite the plugin file with the new one. No need to deactivate or anything else. One function had a problem and some edits fixed the issue.


RE: My Side Boxes - avhidesert - Sep 28, 2008

Big Grin
Thank You!!
Looks Nice


RE: My Side Boxes - krhtikos22 - Sep 28, 2008

Thanks a lot