var skin = {};
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#33ccff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
Welcome agoexs | Home | Logout | How It Works
Text Links Made Easy
Buy Text LinksSell Text LinksMy AccountBrowse Publishers
Home
INSTALL TEXT LINK AD WIZARD
Step 2 of 3 - Install The Ad Code
Please make sure that you have installed the ad code on your website. With this ad code, any ads will display automatically without any extra manual work. By default, we have added your affiliate link and order links on your website (You will be able to disable this in the next screen if you like).
After you have added the ad code on your website, please click below:
Install In Wordpress powered Blog
Visit your Blog's Administration interface (normally at http://www.yourblog.com/wp-admin )
Go to Design -> Theme Editor -> Select Sidebar (or where you would like the ads to appear)
Copy-and-paste the PHP code, and click "Update"
Important note
This ad slot is set for single page display, so you only need to place the code on your homepage.
Advertisers monitor the visitors that they get from text links by looking at their web analytics reports. To ensure you earn the most income, please place the ad code above the fold the layout of your website; that will allow them to receive clicks.
When you have placed the code in your website and it has been successfully installed, you will receive an email from us and we will start selling and listing your website in our inventory. Thanks for your attention.
view plaincopy to clipboardprint?
<?php
function ask2link_ad_helper($url)
{
$content = '';
$done=false;
if (ini_get('allow_url_fopen') == '1') {
if ($fp = @fopen($url, 'r')) {
while ($line = @fread($fp, 1024)) {
$content .= $line;
$done=true;
}
}
}
if (!$done) {
// get the host name and url path
$parsedUrl = parse_url($url);
$host = $parsedUrl['host'];
if (isset($parsedUrl['path'])) {
$path = $parsedUrl['path'];
}
$timeout = 10;
// connect to the remote server
$fp = @fsockopen($host, '80', $errno, $errstr, $timeout );
if( !$fp ) {
// echo "Cannot retrieve $url";
} else {
// send the necessary headers to get the file
@fputs($fp, "GET $path HTTP/1.0\r\n" .
"Host: $host\r\n\r\n");
// retrieve the response from the remote server
while ( $line = @fread( $fp, 4096 ) ) {
$content .= $line;
}
@fclose( $fp );
// strip the headers
$pos = strpos($content, "\r\n\r\n");
$content = substr($content, $pos + 4);
}
}
// return the file content
return $content;
}
function ask2link_ad($url) {
$h = urlencode($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$content=ask2link_ad_helper($url."?x-h=".$h);
if (!preg_match('/\
COMPANY
About Us
Jobs
Ad Pricing
Our Blog
News
Terms
Contact Us
RESOURCES
Get More Traffic
Make Money From Blog
Guide To SEO And Link Building
SEO Resources
FAQ
TOOLS
Keyword Suggestor
Search Position Tracker
Adword Tracker
Powered By
©2008-2009 Ask2link.com - Buy Link , All rights reserved.
Have a question? Contact Us or call 1-415-366-3855
FEEDBACK