Setting up External Advertising in BizDir


Aside from it's core function of displaying categorized Business Listings, "BizDir" was also designed to publish display advertising.

In the Config. file for Bizdir there are a small group of settings;


#
$UseExtAds = '
NO'; # external ads, HTML file, for static pages
$ExtAdPos = '
RIGHT'; # [LEFT|RIGHT] position external ads
$ExtAdFile = '
roto.htm'; # name of HTML file with external ad code
#


Setting $UseExtAds to YES causes BizDir to include the HTML found in the file named in $ExtAdFile setting. The HTML will be displayed in the LEFT or RIGHT column (set in $ExtAdPos).


The HTML in the file named $ExtAdFile should not have to <HTML><HEAD><BODY> tags, it need only contain enough HTML (or plain text) to produce the desired advertising.


The HTML may use the SSI include and exec directives and will be properly parsed.


The default setting (using roto.htm ) inserts the following into all Bizdir content pages:

<!-- START: roto.cgi -->
<!--#exec cgi="/cgi-bin/adman/roto.cgi"--><BR>
<!-- END: roto.cgi -->

The file roto.htm contains only those three lines and causes the program to rotate the default (LexiPixel) Display Ad Manager customer's ads. All image, link and alt text is supplied by the Display Ad database.


You are not limited to the default ad rotation, you can create a custom HTML file to display anything in that space.

You really can display just about anything... text, HTML, use CSS, GIF or JPG images, even FLASH, SVG, MPEG/Video..

To start you might want to run a simple text / HTML "This Space for Rent" message...

Example: "This Space for Rent" message

1. Create a file named rentspace.htm which contains:

<div style="border-style:solid; border-width:1px; text-align:center; padding:12px;">
<B>This<BR><BR>Space<BR><BR>For<BR><BR>Rent</B>
</div>

2. FTP the file into the BizDir Manager folder.

3. Change the BizDir Config. setting $ExtAdFile to rentspace.htm

4. Regenerate Site (if running in $MaxStatic mode).


Using Bizdir with Affiliate / Advertising Publishing Networks

If you are a Google Adsense Publisher, Yahoo! Publisher's Network, or choose to display ads served by any other external advertising source, you can simply place the HTML, JavaScript or other valid markup in an external file, and name it as you like. Change the setting for $ExtAdFile to your custom HTML file and Bizdir will start serving those ads.

Example: Google Adsense Publishers

1. Create a file named adsense.htm which contains:

<script type="text/javascript"><!--
google_ad_client = 'pub-
YOUR_PUBLISHER_ID';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
// -->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</s
cript>


*change YOUR_PUBLISHER_ID to your actual publisher ID.

2. FTP the file into the BizDir Manager folder.

3. Change the BizDir Config. setting $ExtAdFile to adsense.htm

4. Regenerate Site (if running in $MaxStatic mode).




You can create an HTML file that contains a combination of text or graphics from multiple sources. You can build a very complex HTML file which references both static and dynamic ad content and using CSS organize, color, set fonts, or otherwise design your advertising area to function and appear as you like.

Example: Combining fixed text ad(s) and rotating display ads

This example demonstrates how to combine a text ad and rotates a single 125x125 display ad from the (LEXIPIXEL) Ad Manager, (using the optional roto125x1.cgi script).

1. Create a file named textroto.htm which contains:


<!-- START: roto125x1.cgi -->
<!--#exec cgi="/cgi-bin/adman/roto125x1.cgi"--><BR>
<!-- END: roto125x1.cgi -->

<div style="
margin:0px;
padding:4px;
width:125px;
height:125px;
border-style:solid:
border-width:1px;
background:#FFE0E0;
font-size: 8px;
">
<b>Your Message Here!</b><br>
Send email to our <a href="mailto:sales@yoursite.xyz">Ad Sales Dept.</a> for details.
</div>


2. FTP the file into the BizDir Manager folder.

3. Change the BizDir Config. setting $ExtAdFile to textroto.htm

4. Regenerate Site (if running in $MaxStatic mode).




Home | Site Map | Links | Email Us

• eCommerce Websites • Shopping Carts • Online Stores •
• Web Design • Photoshop • Logo Design • Custom Programming •
• SEO • SEM • PPC • Display Ads • Solutions! •

Contact: Randy Harris (774) 279-6731
Framingham, MA (USA)

Copyright ©2003-2008 LEXIPIXEL, all rights reserved.
Valid CSS! Valid HTML 4.01! Valid XHTML 1.0!