ezAds - a Mod for Build a Niche Stores


ezAds

a BANS Mod by:

Start a Niche

The ezAds mod makes it simple to place eBay ads on your content pages. No more wasted time going to ePN to create a widget for each article targeting the product you are writing about. ezAds automatically creates a flash widget at the bottom (or wherever you place the code) of your content pages you choose.

How to install and setup ezAds

Step 1: Upload the ezAds.php file into your web root (www, public_html, etc).

Step 2 (optional): Modify the ezAds.php file to match the layout and look of your BANS store (image 1). There are options in the file for width, height, colors, font, ePN country, etc to modify it to fit your site. If you don’t feel comfortable changing them you can contact us for help.

Customizing ezAds

Image 1 - Customizing ezAds

Step 3: Add the ezAds code to your template. The code to add is:

<?php

$lads = $front->getPageArea(”left_ads”,$checkFile,”id”);

if (strstr($lads,”<!–ezAds–>”)){include(”ezAds.php”); }

$rads = $front->getPageArea(”right_ads”,$checkFile,”id”);

if (strstr($rads,”<!–ezAds–>”)){include(”ezAds.php”); }

?>

I usually add this at top of the footer.php file (image 2). This specifies where the ad will be shown so you can play around with it. =)

Inserting the code into the template

Image 2 - Adding the ezAds code to your template file

Step 4: The ezAds mod uses the page’s Meta Keywords area to pull items from eBay to show in the ad. If you want to display Round Yellow Widgets in the ad put round yellow widgets in the page’s keywords (Image 3). Don’t worry, the search engines don’t really use the meta keywords section for anything anymore so it’s basically a defunct item.

Setting the keywords for the ad

Image 3 - Specifying your items.

Step 5: On the content pages you want the ads to show up you need to add <!–ezAds–> to the page’s Left or Right ads box (Image 4). Don’t worry this is commented out so it doesn’t show up on your page.

Calling the page to display the ezAds mod

Image 4 - Calling the ezAds mod

That is all there is to it. It may sound like a lot but once you do it the first time the next ones come very easy. Hope you enjoy this mod as much as we do and all the other goodies we have crammed into this month’s newsletter.

Thanks,

Daniel & Rich