How do i add the code for the ads on wordpress???

Status
Not open for further replies.

joandajer

New Member
Messages
198
Reaction score
0
Points
0
how can i put the code:
<?php include('http://staff.x10hosting.com/adCode.php?ad=corporate'); ?>

on worpress?
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Edit the Header in the admin panel and place it at the very top
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Use the Javascript code if you can. The php code does not always work.
 

Colin

Active Member
Messages
1,984
Reaction score
0
Points
36
I see that you have the corporate package so you want to put them in the header file.

this is how I put them in, just above the blog info

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">



<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

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

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title
 

joandajer

New Member
Messages
198
Reaction score
0
Points
0
Thnxs guys...so can someone post the javascript code for the corporate accounts???
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Code:
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
   document.write ("&what=zone:1&target=_blank");
   document.write ("&exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->

</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' border='0' alt=''></a></noscript>
Can also be found at http://forums.x10hosting.com/ads.php
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Same way. Topic SLOVED Closed please reopen by clicking Thread Tools > Open Thread
 
Status
Not open for further replies.
Top