CubeCart

Status
Not open for further replies.

Colin

New Member
Messages
1,984
Reaction score
0
Points
0
I'm sorry could you give a little more information. Like what cubecart is exactly?
 

cky2k1016

Member
Messages
70
Reaction score
0
Points
6
I tried, can you help me and tell me what file. I tried to edit the index.php file but its php and I don't know where to paste the ad code. Thanks.
 

Colin

New Member
Messages
1,984
Reaction score
0
Points
0
Ok, can you tell us all of the template files cubecart uses? Does it have header.tpl, footer.tpl etc etc or something similar. Also what package do you have?
 

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
Colin, I'll help him, also he has coporate

I am about to download the file and tell you what to edit to get it working

ok, here is what i have so far

Start Mod
=========================
Add Ads to CubeCart Version .5
Files to edit: 1 per skin
File Name index.tpl
=========================
Open: skins/SKIN_NAME_HERE/styleTemplates/global
Find This:
Code:
<div id="pageSurround">
	<div id="topHeader">
		<div>{SEARCH_FORM}</div>
		<div>{SESSION}</div>
	</div>
Replace with:
Code:
<div id="pageSurround">
	<div id="topHeader">
		<div>{SEARCH_FORM}</div>
		<div>{SESSION}</div>
	</div>
<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&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>
Save file and upload.
=========================

Repeat as nessary for each skin

note: the reason the mod is in version .5 is because i didn't test it. Please test it and tell me if it works or not.

If you don't want to put the ad there, just make sure where ever you place it, it is above the browser cut off line
 
Last edited:

cky2k1016

Member
Messages
70
Reaction score
0
Points
6
Thanks a lot. There is one problem. If you view my site it shows up. But when I click a different catogorey on the store it shows google ads instead. Is that ok? I didn't put those ads there. So I don't know if they are part of the x10 ads. Thanks.
-Nick
 

Chris S

Retired
Messages
2,055
Reaction score
1
Points
38
i believe that they are, there is a mixture of "banners" in the banner rotator script that i gave you.
 
Status
Not open for further replies.
Top