Username:  
Password:     

Post Reply  Post Thread 
How do I add AdBrite to my proxified pages?
mobbs
Junior Member
**



Posts: 2
Joined: Nov 2007
Gender:
Location:
Reputation: 0

Post: #1
How do I add AdBrite to my proxified pages? - Posted At: 11-02-2007 08:14 PM

I'm using PHP Proxy 0.5b2 and wanted to add AdBrite to the default template. Does anyone have any pointers? Thanks Smile

Offline   Report this post to a moderator  
Find all posts by this user Quote this message in a reply
Admin
Administrator
*******



Posts: 20
Joined: Oct 2007
Gender: Undisclosed
Location:
Reputation: 0

Post: #2
RE: How do I add AdBrite to my proxified pages? - Posted At: 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:

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 Smile

This post was last modified: 11-06-2007 03:18 AM by Admin.

Offline   Report this post to a moderator  
Find all posts by this user Quote this message in a reply
Pr0xEh
Junior Member
**



Posts: 17
Joined: Nov 2007
Gender:
Location:
Reputation: 0

Post: #3
RE: How do I add AdBrite to my proxified pages? - Posted At: 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

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.

Offline   Report this post to a moderator  
Find all posts by this user Quote this message in a reply
Supanoth1ng
Junior Member
**



Posts: 10
Joined: Dec 2007
Gender:
Location:
Reputation: 0

Post: #4
RE: How do I add AdBrite to my proxified pages? - Posted At: 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 Smile

This post was last modified: 12-23-2007 03:39 AM by Supanoth1ng.

Offline   Report this post to a moderator  
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Monetizing Proxified Pages Swogalous 7 385 03-15-2008 03:58 AM
Last Post: d0rhk
  Popups on proxified Pages - A complete No No Daniel 2 205 01-09-2008 07:42 AM
Last Post: Daniel

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

Contact Us - MySpace Proxy Forum - Return to Top - Return to Content - Lite (Archive) Mode - RSS Syndication