This is an example use of the PHP code, both options, and javascript code to insert the eBay Auction Ad Blocks
into a page on your site.
The PHP code will render the ad block much faster!
We have set up a directory called /php which holds an example use of the PHP code on this domain,
but in a directory up the tree from the root. Take a look.
You should have 2 files in your root folder that display examples as well.
RootexampleAdBlock.php
RootexampleAdBlock.html
Let me explain why there are 2 Options for PHP inserts. First, view the file (exampleAdBlock.php) in a text editor
so you can see the 2 PHP options.
PHP Option 1 is for use on this domain ( www.budgetlettingsdirect.com ) only!
This option is easier to edit and look at because it lays the variables out on individual lines.
Example Option 1 code:
<? // PHP insert code option 1
$format = "180x150";
$campaignid = "1";
$category = "";
$seller_ID = "";
$bordercolor = "000000";
$BGcolor = "FFFFFF";
$headcolor = "3281FF";
$textcolor = "000000";
$linkcolor = "FFFFFF";
$opentype = "Y";
$keywords = "iPhone";
include("../MyAds/ads/do_funct.php");
require_once("../MyAds/ads/do_ebay.php");
$auction = new auction();
$auction->saprclo = "5";//set min price
$auction->saprchi = "500";// set max price
$auction->frpp = "$listnum";
$auction->buildit($keywords, $category);
include("../MyAds/ads/do_head.php");
echo $auction->html;
include("../MyAds/ads/do_foot.php");
?>
PHP Option 2 can be used on any website, including this one. The
variables are in string format and are harder to work with and less forgiving
when edited wrong. If you are not experienced with coding, use the Build Code function
in the login area for each tag you wish to create.
Example Option 2 code:
Please refer to the README.txt file for more details.
Want to see how to turn your website into an eBay store?
Yes, Auction Ad Blocks can make your site look like a store for virtually any product
or product category.
Example Links:
Apple iPod
DVD Movies
Computers
Or put a product Search function on your site.
Enter a keyword to view products :
Make sure that you have the search.php in the folder where the search will take place.
Login Now! ( username is Admin and the password is what
you entered in the 'install.php' script.)