Please Help me with the AD code!

Status
Not open for further replies.

yushengg

New Member
Messages
9
Reaction score
0
Points
0
I took 2 hours or more to find the way of making the AD code worked.But i haven't got the right way yet.
Wordpress is on my site.And i would like to put the AD(advanced) in the footer.php which is in my theme folder.
HTML:
<hr style="display:none"/>

<div id="footer">

<?php

echo "Text Link(Advanced)<br><br>\n";

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";

?>
    <small class="footer_content">

        <a href="<?php bloginfo('rss2_url'); ?>"><img alt="<?php _e('rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_blog.gif"/></a>
        <a href="<?php bloginfo('comments_rss2_url'); ?>"><img alt="<?php _e('Comments rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_<?php _e('comments',TEMPLATE_DOMAIN); ?>.gif"/></a>
        <a href="http://validator.w3.org/check?uri=referer"><img alt="<?php _e('valid xhtml 1.1',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/valid_xhtml11_80x15_2.png"/></a>
        <a href="http://www.jide.fr"><img alt="<?php _e('design by jide',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/micro_jide.png"/></a>
        <a href="http://wordpress.org/"><img alt="<?php _e('powered by',TEMPLATE_DOMAIN); ?> Wordpress" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_wordpress_80x15_2.png"/></a>
        <a href="http://www.mozilla.com/firefox"><img alt="<?php _e('get firefox',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_firefox_80x15.png"/></a>
    </small>
    
</div>

</div> <!--- end of the <div id="page"> (from header.php) -->

</body>
</html>
<?php wp_footer(); ?>
it just appears "Text Link(Advanced)".it looks like that the javascipt code dosen't work!
what should i do now?

please help me ! i don't want my account suspended.

thanks to all
 

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
do you have to echo it in php

if you want to use php the use the php include

PHP:
include ('http://staff.x10hosting.com/adCode.php?ad=advanced');
 

yushengg

New Member
Messages
9
Reaction score
0
Points
0
yes. i want to echo it in php

and i just put it into footer.php like this.but it still not working.
HTML:
<hr style="display:none"/>

<div id="footer">

<?PHP include ('http://staff.x10hosting.com/adCode.php?ad=advanced'); ?> 
    
<small class="footer_content">

        <a href="<?php bloginfo('rss2_url'); ?>"><img alt="<?php _e('rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_blog.gif"/></a>
        <a href="<?php bloginfo('comments_rss2_url'); ?>"><img alt="<?php _e('Comments rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_<?php _e('comments',TEMPLATE_DOMAIN); ?>.gif"/></a>
        <a href="http://validator.w3.org/check?uri=referer"><img alt="<?php _e('valid xhtml 1.1',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/valid_xhtml11_80x15_2.png"/></a>
        <a href="http://www.jide.fr"><img alt="<?php _e('design by jide',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/micro_jide.png"/></a>
        <a href="http://wordpress.org/"><img alt="<?php _e('powered by',TEMPLATE_DOMAIN); ?> Wordpress" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_wordpress_80x15_2.png"/></a>
        <a href="http://www.mozilla.com/firefox"><img alt="<?php _e('get firefox',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_firefox_80x15.png"/></a>
    </small>
    
</div>

</div> <!--- end of the <div id="page"> (from header.php) -->

</body>
</html>
<?php wp_footer(); ?>

the content of footer.php is the code above.and i haven't learned PHP.
please help me
thanks a lot!
 
Last edited:

dharmil

New Member
Messages
1,656
Reaction score
0
Points
0
this should work:

<hr style="display:none"/>

<div id="footer">

<?php include ('http://staff.x10hosting.com/adCode.php?ad=advanced'); ?>

<small class="footer_content">

<a href="<?php bloginfo('rss2_url'); ?>"><img alt="<?php _e('rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_blog.gif"/></a>
<a href="<?php bloginfo('comments_rss2_url'); ?>"><img alt="<?php _e('Comments rss',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss_<?php _e('comments',TEMPLATE_DOMAIN); ?>.gif"/></a>
<a href="http://validator.w3.org/check?uri=referer"><img alt="<?php _e('valid xhtml 1.1',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/valid_xhtml11_80x15_2.png"/></a>
<a href="http://www.jide.fr"><img alt="<?php _e('design by jide',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/micro_jide.png"/></a>
<a href="http://wordpress.org/"><img alt="<?php _e('powered by',TEMPLATE_DOMAIN); ?> Wordpress" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_wordpress_80x15_2.png"/></a>
<a href="http://www.mozilla.com/firefox"><img alt="<?php _e('get firefox',TEMPLATE_DOMAIN); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/get_firefox_80x15.png"/></a>
</small>

</div>

</div> <!--- end of the <div id="page"> (from header.php) -->

</body>
</html>
<?php wp_footer(); ?>
 
Last edited:

yushengg

New Member
Messages
9
Reaction score
0
Points
0
Oh,I saw "*-*Free File Sharing*-*
adlog.php

" on my site!
My browser filtered it!(the mod of firefox:X-browser)When I use IE to open it,I saw *-*Free File Sharing*-*
adlog.php
.
:dunno::dunno::dunno::dunno:
 
Last edited:
Status
Not open for further replies.
Top