Ad codes

Status
Not open for further replies.

covie

New Member
Messages
20
Reaction score
0
Points
0
Could anyone tell me the where to put the ad codes for php?
 
Last edited:

nicholas

New Member
Messages
772
Reaction score
0
Points
0
Can you tell us what script are you using to build your site and what is your site url?
 

covie

New Member
Messages
20
Reaction score
0
Points
0
I am using PHPbb and my site url is jw4i.x10hosting.com (the forums are under /forums). I am using the x10 advanced plan.
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
covie said:
I am using PHPbb and my site url is jw4i.x10hosting.com (the forums are under /forums). I am using the x10 advanced plan.

Actually there are alot of threads regarding putting ads on phpbb. Next time do a search in the support forum first. Anyway you can go to template/theme/overall_header.tpl to put the ads.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Ok then all you should have to do is find the file called "overall_header.tpl" and insert the ad code at the very top of that file. Save the file, exit out of your file manager. and you should be good to go. :) Hope that helps.
 

covie

New Member
Messages
20
Reaction score
0
Points
0
I assume this is the ad code for php:
PHP:
<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:2&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=a4f0eec1' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a4f0eec1' border='0' alt=''></a></noscript>
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
covie said:
P.s how can i insert the ad codes into a .cgi script?

There might be a way to do this, but why would you want to ? Just asking.:eek:riginal:
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
I`m not to sure about .cgi scripts but there should be away to put them in. If you put them in the "overall_header.tpl" file, they will show up on every page. That is all you should have to do.
 

covie

New Member
Messages
20
Reaction score
0
Points
0
Is it ok if I don't put the ad cdes in for the .cgi scripts? After all, I am not an expert, so I won't know anyway.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
The ads have to show up on every page so the end user doesn`t have to scroll to see them. If you put it in the file I said it will show up on every page, if you do it right. Why are you trying to put ads in cgi ?
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
If only you can access it and it will not be shown to the public AT ALL, then there shouldn`t have to be ads put on it. Even placing the ads in "overall_header.tpl" only puts the ads on the pages the viewing public can see they will not show up in the admin panel. So it should be ok.
 
Status
Not open for further replies.
Top