Hi,
These instructions are for PHProxy v0.5b2.
Go through the motions to get you AdBrite code.
Then, go to the directory where your proxy script is installed. Make a copy of the untouched index.php file and call it something like index.php.untouched. This will allow you to instantly go back to the way you were if you mess up.
Next, open up the index.php file in a text editor. Search for this line:
In the vanilla v0.5b2 release it is on line 1147.
You should place your AdBrite ad code inside the closing single qute mark on that line.
I usually add a blank line, then paste in my AdBrite code.
I also usually add this before my AdBrite code
<div style="text-align:center;">
and this after it:
To ensure the AdBrite ads/banners are horizontally centered.
Finally, and most importantly, you need to escape the single quotes within the AdBrite code otherwise they will halt the code execution and your proxy will not work. So, these four lines should be changed
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
to become,
var AdBrite_Title_Color = \'0000FF\';
var AdBrite_Text_Color = \'000000\';
var AdBrite_Background_Color = \'FFFFFF\';
var AdBrite_Border_Color = \'FFFFFF\';
So, your altered block of script should look something like:
... page</a>]'
. '<br /><hr />
<div style="text-align:center;">
<!-- Begin: AdBrite -->
<script type="text/javascript">
var AdBrite_Title_Color = \'0000FF\';
var AdBrite_Text_Color = \'000000\';
var AdBrite_Background_Color = \'FFFFFF\';
var AdBrite_Border_Color = \'FFFFFF\';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=xxxxxx&zs=xxxxxxxxxxxx" type="text
/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxxxxx&afsid=1"><img src="http://files.adb
rite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#FFFFFF" alt="Your Ad Here" width="14" height
="90" border="0" /></a></span>
<!-- End: AdBrite -->
</div>
';
foreach ...
Hope this helps a little