SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Wednesday, July 7, 2010

How to put ads on the proxified pages?



A lot of proxy webmaster or proxy owner usually didn’t know how to put ads on the proxified pages. By putting ads on the proxified pages, you can increase or maximized proxy sites potensial.  Here are some simple guide on how to put ads on the proxified pages, according proxy script. We are going to put ads in the top, like adbrite, widgetbucks, etc (PS: do not put adsense in the proxified pages).
PHProxy
Open the “index.php” file with any text editor that you prefer. then scroll down to the very bottom and find the following line:
$_url_form .= ‘</form></div>’;
Now simply place the advertising code between </form> and </div>. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).
CGIproxy
You need to open the file “nph-proxy.cgi” with any text editor that you prefer. Then scroll down to a little past the middle and find the following lines:
$table_close
</center>
</form>
EOF
Now place the advertising code between </form> and EOF. If you scroll a bit farther you should see the same set of lines. Place the advertising code there too. Note: You do not need to replace any ‘ (single quotation marks) for CGIproxy.
Glype
Open the “templates/framedForm.inc.php” file with any text editor that you prefer. then scroll down to the very bottom and find the following line:
$formHTML = <<<OUT
change to :
$formHTML = <<<OUT
<div><!– adcode here –></div>
Now just put your adcode in the <div> and </div> tag. that’s all for glype script
Zelune
To place ads on top of proxified pages in Zelune proxy script, you need to open the file “index.php” with any text editor that you prefer. Then scroll down to a little past the middle and find the following lines:
$string = $this->mass_replace($to_replace, $string);
return $string;
Now place the following code between the lines $string = $this->mass_replace($to_replace, $string); and return $string;:
$adcode = ”;
$string = preg_replace(‘#\<\s*body(.*?)\>#si’, “$0\n$adcode” , $string, 1);
Now place your advertising code between the ‘ (single quotation marks) in $adcode = ”;. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).
BBlocked
To place ads on top of proxified pages in BBlocked script, open the file “includes/template.php” with any text editor that you prefer. Scroll down to the end and find the following line:
print($output);
Now place the following code above the line print($output);:
$adcode = ”;
$output = preg_replace(‘#\</\s*body(.*?)\>#si’, “$0\n$adcode” , $output, 1);
Now place your advertising code between the ‘ (single quotation marks) in $adcode = ”;. Note: If the advertising code has any ‘ (single quotation marks) you will need to replace them with \’ (backslash single quotation marks).

No comments:

Post a Comment