11-02-2007, 08:14 PM
11-05-2007, 11:48 PM
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:
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:
Code:
. '<br /><hr />';
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
Code:
<div style="text-align:center;">
and this after it:
Code:
</div>
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
Code:
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
to become,
Code:
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:
Code:
... 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 
11-17-2007, 06:44 AM
I think this might work, not sure though.
Also keep in mind I haven't used PHProxy before, but it should work.
Be sure to make a backup of your index.php before touching any of the codes!
Alright, after you made the backup file, open up index.php and place this code directly under <?php
Also keep in mind I haven't used PHProxy before, but it should work.
Be sure to make a backup of your index.php before touching any of the codes!
Alright, after you made the backup file, open up index.php and place this code directly under <?php
Code:
if (isset($_GET['q'])) {
?>
<!-- PLACE ADVERTISEMENT CODE HERE -->
<?php
}
I used something similar to my Zelune Powered proxy, the only different is the $_GET variable.
12-20-2007, 05:05 AM
That code should work fine.. If you really want I can help out as I am an experienced web designer. PM Me 
