Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Advance Index Ads
#1
This user has been denied support. This user has been denied support.
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:

   

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.
Reply
#2
Approved Smile
Reply
#3
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.
Reply
#4
This user has been denied support. This user has been denied support.
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
Reply
#5
can i change footer index adds to something else

[Image: ScreenShot017_zps2519cab3.png]
Reply
#6
This user has been denied support. This user has been denied support.
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.
Reply
#7
Thats would be a great,Thanks
Reply
#8
on the next release can you add option to show it global
Reply
#9
This user has been denied support. This user has been denied support.
Well, that defeats the purpose of this plugin.
Reply
#10
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)