Sep 11, 2008, 02:26 AM
By downloading and using this software you agree to the terms of this license:
http://www.mybbcentral.com/license.php
Plugin Name: My Ad Manager
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1.4
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: None
Plugin File Uploads: 1
Plugin Description: This will create 4 ad zones.
Ad Zones:
1. Headerinlude - This if perfect for inline ad systems like Kontera where you need to add script tags inside head.
2. Top Ad - This is in the header template underneath the navigation bar.
3. Inline Ads - These are ads between posts.
4. Footer Ad - This is in the footer template above the bottom navigation bar.
Each display zone also has a class defined for css control. You will need to alter your theme to add the following classes only if you want to alter them this way.
Zone CSS Classes:
1. Header = headerad{}
2. Inline = inlinead{}
3. Footer = footerad{}
This plugin allows for exemptions by group or forum id for EACH zone.
Installation
1. Upload the file from the zip
root/inc/plugins/my_ad_manager.php
2. Login to your admincp and ACTIVATE the plugin (My Ad Manager) in the plugin manager.
3. You will see a new setting group inside admincp settings called "My Ad Manager".
4. Change the settings to suit your needs. By default all ads are off.
TROUBLESHOOTING
=======================
If ads are not being displayed inline (between posts) try this.
At the very end of both the postbit and posbit_classic template add this:
{$post['inline_ad']}
Also check your settings to make sure everything is enabled. Check that settings.php is writable (chmod 666).
DEMO: http://www.mybbcentral.com
Enjoy.
EDIT: If you run version 1.0 of this plugin uninstall and install version 1.1. There was a problem in display on index. I used a new method and everything seems to work well. Please report bugs in this thread so I can fix them immediately. Also subscribe to this thread if you want updates.
UPDATE: Version 1.1.2 is now released. If you run 1.1.1 or 1.1 then simply overwrite the new file. There is an exemption for the inline ads that doesn't work. It's a one line fix and doesn't require a uninstall or deactivation. Please update.
UPDATE: Version 1.1.3 is released. There seems to be an issue with mybb 1.4.2 and it not recognizing the plugin already installed. This is the fix. To update simply overwrite the plugin file /inc/plugins/my_ad_manager.php to update.
UPDATE: Version 1.1.4 is released. A bug existed where default templates were not edited only custom ones.
UPDATE: Version 1.1.5 is released. Fixed install bug for SID and GID being NULL. Fixed bug where isdefault was "no" instead of "0". If you have this installed already no need to update.
http://www.mybbcentral.com/license.php
Plugin Name: My Ad Manager
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1.4
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: None
Plugin File Uploads: 1
Plugin Description: This will create 4 ad zones.
Ad Zones:
1. Headerinlude - This if perfect for inline ad systems like Kontera where you need to add script tags inside head.
2. Top Ad - This is in the header template underneath the navigation bar.
3. Inline Ads - These are ads between posts.
4. Footer Ad - This is in the footer template above the bottom navigation bar.
Each display zone also has a class defined for css control. You will need to alter your theme to add the following classes only if you want to alter them this way.
Zone CSS Classes:
1. Header = headerad{}
2. Inline = inlinead{}
3. Footer = footerad{}
This plugin allows for exemptions by group or forum id for EACH zone.
Installation
1. Upload the file from the zip
root/inc/plugins/my_ad_manager.php
2. Login to your admincp and ACTIVATE the plugin (My Ad Manager) in the plugin manager.
3. You will see a new setting group inside admincp settings called "My Ad Manager".
4. Change the settings to suit your needs. By default all ads are off.
TROUBLESHOOTING
=======================
If ads are not being displayed inline (between posts) try this.
At the very end of both the postbit and posbit_classic template add this:
{$post['inline_ad']}
Also check your settings to make sure everything is enabled. Check that settings.php is writable (chmod 666).
DEMO: http://www.mybbcentral.com
Enjoy.
EDIT: If you run version 1.0 of this plugin uninstall and install version 1.1. There was a problem in display on index. I used a new method and everything seems to work well. Please report bugs in this thread so I can fix them immediately. Also subscribe to this thread if you want updates.
UPDATE: Version 1.1.2 is now released. If you run 1.1.1 or 1.1 then simply overwrite the new file. There is an exemption for the inline ads that doesn't work. It's a one line fix and doesn't require a uninstall or deactivation. Please update.
UPDATE: Version 1.1.3 is released. There seems to be an issue with mybb 1.4.2 and it not recognizing the plugin already installed. This is the fix. To update simply overwrite the plugin file /inc/plugins/my_ad_manager.php to update.
UPDATE: Version 1.1.4 is released. A bug existed where default templates were not edited only custom ones.
UPDATE: Version 1.1.5 is released. Fixed install bug for SID and GID being NULL. Fixed bug where isdefault was "no" instead of "0". If you have this installed already no need to update.

