Put ads on wordpress

zhizhaqy

New Member
Messages
64
Reaction score
0
Points
0
I seacrhed a lot of tutorial to put x10hosing ads in wordpress but i didn't find it.

can anyone help me to resolve my problem?
 

motogawa

Member
Messages
306
Reaction score
0
Points
16
zhizhaqy said:
I seacrhed a lot of tutorial to put x10hosing ads in wordpress but i didn't find it.

can anyone help me to resolve my problem?

You want to put up php ads correct ?
 

zhizhaqy

New Member
Messages
64
Reaction score
0
Points
0
yes

in advance plan i have to put text link in my web. i have put a link but only x10hosting.com with link back


we have to put link back to x10hosting in every pages . so i try to put in header or at footer i have try to put this but nothing happens.


please help me

sorry my english bad

motogawa said:
You want to put up php ads correct ?
 

motogawa

Member
Messages
306
Reaction score
0
Points
16
x10 requires all ads to be placed at the top of the page so if you go into header.php or theme.php find this

PHP:
<?

or it can be this

PHP:
<?php

so now then insert this code but before the <?php or <?

PHP:
<?
echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:3&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a915c788' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>\n";
echo "\n";
echo "\n";
?>
 
Last edited:

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36
with x10 advanced the ads can be anywhere on the site. Use the code provided by motogawa and place it in a file called sidebar.php..

here is what you should do..

in that file find..

Code:
<?php get_links_list(); ?>

Now below that place
Code:
<li><h2><?php _e('x10 Ads'); ?></h2>

what the above code will do it will create a header called x10 Ads.. It will be like the header called catergories..

Now place the code provided by motogawa after the above code..
 
Top