Banner Manager
Location - Plug-Ins
This Plug-In can be used to create ad rotations inside a site.
By default, zones have been added to the index, bonus, news, favorites, gallery, and model bio pages.
Fields:
- Title is used for internal identification only. This is not shown on the site.
- URL is the URL a user will go to when they click the ad. Note, this does not work for .swf files which have the URL embedded in them already.
- The accompanying text is the text that will be shown under the banner.
- Target lets you specify whether to load the URL in the same window or a new window or top/partner frame if you're using frames.
- Weight controls how often a banner is shown in a rotation. The higher the number, the more often it will show.
- Zones control where the banner is shown. Each zone must match a zone that's present in the template code.
You can assign a banner to show up only in certain places by choosing which categories, sites or models to assign the banner. This will let you serve certain ads to a specific category page or only show certain ads on a specific model's bio and/or gallery page.
Banner PHP Templates:
To edit the look of ads, edit the following templates:
/template_sections/banner.tpl
Banner Smarty Templates:
To edit the look of ads, edit the following templates:
general/showbanner.tpl
general/showtextad.tpl
Adding Zones to PHP Templates:
For ads to show on a page, a zone tag needs to be put into the template.
Add the following tag where you want a banner ad to show: <div class="text_ad">
<?php LoadTemplate("template_sections/banner.tpl", ["zone" => "index_XXX", "allmodels" => 1, "allcats" => "1"]); ?>
</div>
!! Replace 'index_XXX' with the name of the zone you created in the banner admin.
Adding Zones to Smarty templates:
For ads to show on a page, a zone tag needs to be put into the template.
Add the following tag where you want a text ad to show:{include file="$spath/general/showtextad.tpl" zone="XXXXX"}
Add the following tag where you want a banner ad to show:{include file="$spath/general/showbanner.tpl" zone="XXXXX"}
!! Replace XXXXX with the name of the zone.
**If you are using the MegaPass/All Access plugin, please make sure to if you assign the banner to a subsite you must make sure the subsite/area's 'cmsinclude.ini.php' file has a subsite declaration.