MyBB Community Forums

Full Version: Advance Index Ads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Author: Pratik Unadkat.
Author site: -
License: Mentioned below.
Description: This plugin gives unique ads system for your forum in footer on index.

The plugin also allows you to exempt/bypass certain usergroups which cannot see these ads.

Installation instructions:

1. Unzip the archive.
2. Upload indads.php inside the inc/plugins/ folder which we just extracted now to (root)./inc/plugins directory of your website's server.
3. Go to ACP > Plugins and activate it.
4. Next, proceed to ACP > Settings > Configuration and find advance ads on index settings and configure settings.
5. Done, enjoy.

Preview:

[attachment=27171]

License:

Anyone who have downloaded this, the below but not limited to rules applies to them:

1. Not distributed under GNU/GPL.
2. You may modify the codes or plugin for your personal use but cannot claim it to be own or remodify and sell or reproduce under any cirumstances.
3. Free to edit for personal use but not allowed to distribute the plugin by modifying any codes.


Download:

From mods site: http://mods.mybb.com/view/advance-index-ads

Support shall be provided in this thread.
Approved Smile
A small suggestion;
Change this code;
        if(in_array($mybb->user['usergroup'], $indadsgid))
        {
            return $index;
        }
	  else if ($mybb->usergroup['usergroup'] != $indadsgid)
		{
			eval("\$indads = \"".$templates->get('indads')."\";");
		}
to this;
        if(!in_array($mybb->user['usergroup'], $indadsgid))
        {
			eval("\$indads = \"".$templates->get('indads')."\";");
	}

Since there is no need to check in elseif() statement. Also you're using comma separated group ids but aren't using in_array in the elseif() check.

Also there would be no need to add $db as global object since its of no use here.
Thanks Yaldaram, I wrote this plugin long time ago when I just started caching up on coding plugins for MyBB. I will correct them ASAP after dinner. Smile
can i change footer index adds to something else

[Image: ScreenShot017_zps2519cab3.png]
Sure. This plugin creates a global template so you can edit easily as per your liking.

Proceed to Themes & Style > Templates > Global templates, open a template named 'indads' and edit it as per your liking.

In future version of this plugin, I will update it in a manner so that you will be able to add unlimited slots/ads via ACP.
Thats would be a great,Thanks
on the next release can you add option to show it global
Well, that defeats the purpose of this plugin.
I can't get this to work. I inserted a html link into the first ad position (none in the others), and nothing shows up.

Would appreciate any help.
Pages: 1 2 3