Still i cant get the corporate ad goin

Status
Not open for further replies.

titanemc

New Member
Messages
34
Reaction score
0
Points
0
http://www.titan-emc.x10hosting.com/index.html

i had to strip down the site to try to get the ad working heres the exact script im using barebone.

<html>
<head>
<title>TITAN-EMC - Electronic Counter Measure Systems</title>



<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> <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 ("&amp;what=zone:1&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>







</html>
 

Parth

Banned
Messages
194
Reaction score
0
Points
0
Neither can I.

I can do the PHP code on the regular index file for the news update. (not forum or nuke)
That index is a page I made. On forums and such it does not work.
 

Lindsey

New Member
Messages
208
Reaction score
0
Points
0
titanemc said:
hmmm should i maybe convert my index file to php?


I have had some probs with my adverts as well, maybe I can help you all out a little if you describe a couple of things for me....

first of all, I see that you're using phpBB for your forums, and I'm assuming that you're using phpNuke cms for your site... is this correct?

if so, I believe that phpnuke is rather similar to joomla (which is what I use) in that there is a module (maybe under a different term) in the administration backend that is a banner client and allows you to enter the configs for a banner.

Either, way, joomla also has a module/component in the administration backend that was designed for this purpose. I could NEVER use it.

What I did is a workaround. It is working brilliantly on my site ( NHFD) and it sometimes works on my forums, but that's because it doesn't always load, though thankfully has been lately.

I went to my site's template directory in my file manager. I could also do this in my administration backend, so whichever you are most comfortable with.

I edited the index.php file. My banner client is basically called mosBanners and the function to load it was called mosLoadBanners. Where that function was entered in the index.php, I replaced it with the script to the adverts. I used the javascript version and it is working great. You can check it out yourself on my site and also see the forums, which I have wrapped into NHFD.

Now my forums may be wrapped, but they are using a copy of my template. So it's 2 different templates that are basically the exact same. It's just easier than managing all the modules to display every on my site except in the forums, so I removed the mosLoad modules that I didn't need on the forums. However, this is the same basic concept. Where it said mosLoadBanners in my forum's template/index.php file, I again replaced it with the advert script.

Let me know if you need more help. I may not be the best source to help you out, but I will try my best cuz I know how frustrating it is to need it and not get it. :D anyway, good luck!
 

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
Thanks for your post Lindsey :)

This is quite a common problem we have here, It is because all the ad code gets put on to one line. All you need to do is space the code out, I have included copies of the ad code that won't be put on to one line.

x10Corporate Banner
Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> 
<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 ("&amp;what=zone:1&amp;target=_blank"); 
    document.write ("&amp;exclude=" + document.phpAds_used); 
    if (document.referrer) document.write ("&amp;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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>

x10Advanced Text Link
Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> 
<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 ("&amp;what=zone:3&amp;target=_blank"); 
    document.write ("&amp;exclude=" + document.phpAds_used); 
    if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); 
    document.write ("'><" + "/script>"); 
//--> 
</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>
 

Lindsey

New Member
Messages
208
Reaction score
0
Points
0
Richard said:
Thanks for your post Lindsey :)

This is quite a common problem we have here, It is because all the ad code gets put on to one line. All you need to do is space the code out, I have included copies of the ad code that won't be put on to one line.

x10Corporate Banner
Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> 
<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 ("&amp;what=zone:1&amp;target=_blank"); 
    document.write ("&amp;exclude=" + document.phpAds_used); 
    if (document.referrer) document.write ("&amp;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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>

x10Advanced Text Link
Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> 
<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 ("&amp;what=zone:3&amp;target=_blank"); 
    document.write ("&amp;exclude=" + document.phpAds_used); 
    if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); 
    document.write ("'><" + "/script>"); 
//--> 
</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>


oh, thanks for adding that, I forgot about that, because I downloaded the zip. That was one of my issues at first, then when I first entered the code, I didn't remove the part that displays the text for the corporate banner and forgot to take out the text link for the advanced advert... thankfully it's all configured now and I hope everyone else gets it all straightened out too :D
 

Parth

Banned
Messages
194
Reaction score
0
Points
0
Well the code that Richard just gave us doesn't seem to help a lot with IPB and vBulletin.
 

titanemc

New Member
Messages
34
Reaction score
0
Points
0
Lindsey said:
titanemc said:
hmmm should i maybe convert my index file to php?


I have had some probs with my adverts as well, maybe I can help you all out a little if you describe a couple of things for me....

first of all, I see that you're using phpBB for your forums, and I'm assuming that you're using phpNuke cms for your site... is this correct?

if so, I believe that phpnuke is rather similar to joomla (which is what I use) in that there is a module (maybe under a different term) in the administration backend that is a banner client and allows you to enter the configs for a banner.

Either, way, joomla also has a module/component in the administration backend that was designed for this purpose. I could NEVER use it.

What I did is a workaround. It is working brilliantly on my site ( NHFD) and it sometimes works on my forums, but that's because it doesn't always load, though thankfully has been lately.

I went to my site's template directory in my file manager. I could also do this in my administration backend, so whichever you are most comfortable with.

I edited the index.php file. My banner client is basically called mosBanners and the function to load it was called mosLoadBanners. Where that function was entered in the index.php, I replaced it with the script to the adverts. I used the javascript version and it is working great. You can check it out yourself on my site and also see the forums, which I have wrapped into NHFD.

Now my forums may be wrapped, but they are using a copy of my template. So it's 2 different templates that are basically the exact same. It's just easier than managing all the modules to display every on my site except in the forums, so I removed the mosLoad modules that I didn't need on the forums. However, this is the same basic concept. Where it said mosLoadBanners in my forum's template/index.php file, I again replaced it with the advert script.

Let me know if you need more help. I may not be the best source to help you out, but I will try my best cuz I know how frustrating it is to need it and not get it. :D anyway, good luck!


well no,... im just using straight forward html that I wrote

thanks for any help that you guys can give
 
Status
Not open for further replies.
Top