Guest Ausgirl Posted October 30, 2006 Share Posted October 30, 2006 Hello, I am a newbie, so I am hoping I am in the right place. I have cc 3.0.11. I am wanting to replace on the home page the informaton box with google adsense. This needs to be explained to me step by step as I am clueless to all this & Im learning how to use my FTP program. Also on the home page in the latest products if I put more than one picture in there they don't line up. They are all over the place and looks untidy. How can I stop this from happening? Your help would be much appreciated. Thank You :o Quote Link to comment Share on other sites More sharing options...
roban Posted October 30, 2006 Share Posted October 30, 2006 For your box just add this code where you want the box to appear in your skins/styleTemplates/global/index.tpl <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> As for the alignment of Latest products please do a search because this has been covered dozens of times. Quote Link to comment Share on other sites More sharing options...
Guest Ausgirl Posted October 30, 2006 Share Posted October 30, 2006 For your box just add this code where you want the box to appear in your skins/styleTemplates/global/index.tpl <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> As for the alignment of Latest products please do a search because this has been covered dozens of times. I do not understand, this is all completely knew to me, (I said I was clueless but I learn quick) I found this file through FTP program as Im assuming this is how it is done but once Ive gotten to skins/styleTemplates/global/index.tpl then what do I do? Where is this and how do I access it? <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> Truely I haven't a clue, please help me in simpleton terms as I really need to learn how these things are done. Thanks Quote Link to comment Share on other sites More sharing options...
roban Posted October 30, 2006 Share Posted October 30, 2006 <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> Is the code you have to copy/paste into your index.tpl. Here's the index.tpl with the code inserted: <!-- BEGIN: body --> <!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> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <title>{META_TITLE}</title> <meta name="description" content="{META_DESC}" /> <meta name="keywords" content="{META_KEYWORDS}" /> <link href="skins/{VAL_SKIN}/styleSheets/layout.css" rel="stylesheet" type="text/css" /> <link href="skins/{VAL_SKIN}/styleSheets/style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="js/jslibrary.js" type="text/javascript"></script> </head> <body> <div id="pageSurround"> <div id="topHeader"> <div id="sessionBox"> <div style="padding: 15px 8px 15px 15px; margin: 0px;"> {SEARCH_FORM} {SESSION} </div> </div> </div> <div id="subSurround"> {CATEGORIES} <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr valign="top"> <td width="175"> {SHOPPING_CART} {INFORMATION} {CURRENCY} <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> {LANGUAGE}</td> <td style="padding: 0px 5px 0px 5px;">{PAGE_CONTENT}</td> <td width="175"> {RANDOM_PROD} {POPULAR_PRODUCTS} {SALE_ITEMS} {MAIL_LIST} </td> </tr> </table> </div> {SITE_DOCS} </div> </body> </html> <!-- END: body --> This puts your new box below the Currency box. You'll have to add your AdSense code from Google Quote Link to comment Share on other sites More sharing options...
Guest Ausgirl Posted October 31, 2006 Share Posted October 31, 2006 <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> Is the code you have to copy/paste into your index.tpl. Here's the index.tpl with the code inserted: <!-- BEGIN: body --> <!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> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <title>{META_TITLE}</title> <meta name="description" content="{META_DESC}" /> <meta name="keywords" content="{META_KEYWORDS}" /> <link href="skins/{VAL_SKIN}/styleSheets/layout.css" rel="stylesheet" type="text/css" /> <link href="skins/{VAL_SKIN}/styleSheets/style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="js/jslibrary.js" type="text/javascript"></script> </head> <body> <div id="pageSurround"> <div id="topHeader"> <div id="sessionBox"> <div style="padding: 15px 8px 15px 15px; margin: 0px;"> {SEARCH_FORM} {SESSION} </div> </div> </div> <div id="subSurround"> {CATEGORIES} <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr valign="top"> <td width="175"> {SHOPPING_CART} {INFORMATION} {CURRENCY} <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> Use the AdSense code you wish to add here <border="0" > </div> <div class="boxFootRight"> </div> {LANGUAGE}</td> <td style="padding: 0px 5px 0px 5px;">{PAGE_CONTENT}</td> <td width="175"> {RANDOM_PROD} {POPULAR_PRODUCTS} {SALE_ITEMS} {MAIL_LIST} </td> </tr> </table> </div> {SITE_DOCS} </div> </body> </html> <!-- END: body --> This puts your new box below the Currency box. You'll have to add your AdSense code from Google I have done this and then clicked save but there is no change, There is something I should be doing but I am not doing, what am I not doing or what am I doing wrong. Probably a stupid question but does this replace the information box because I do not want the information box, I would like to replace it with the google adsense. This is what I have done: <!-- BEGIN: body --> <!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> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <title>{META_TITLE}</title> <meta name="description" content="{META_DESC}" /> <meta name="keywords" content="{META_KEYWORDS}" /> <link href="skins/{VAL_SKIN}/styleSheets/layout.css" rel="stylesheet" type="text/css" /> <link href="skins/{VAL_SKIN}/styleSheets/style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="js/jslibrary.js" type="text/javascript"></script> </head> <body> <div id="pageSurround"> <div id="topHeader"> <div id="sessionBox"> <div style="padding: 15px 8px 15px 15px; margin: 0px;"> {SEARCH_FORM} {SESSION} </div> </div> </div> <div id="subSurround"> {CATEGORIES} <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr valign="top"> <td width="175"> {SHOPPING_CART} {INFORMATION} {CURRENCY} <div class="boxTitleRight">Your head-line</div> <div class="boxContentLeft"> <script type="text/javascript"><!-- google_ad_client = "pub-6514867437265633"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead1.googlesyndication.com/pagead/show_ads.js"> </script> <border="0" > </div> <div class="boxFootRight"></div> {LANGUAGE}</td> <td style="padding: 0px 5px 0px 5px;">{PAGE_CONTENT}</td> <td width="175"> {RANDOM_PROD} {POPULAR_PRODUCTS} {SALE_ITEMS} {MAIL_LIST} </td> </tr> </table> </div> {SITE_DOCS} </div> </body> </html> <!-- END: body --> :unsure: Quote Link to comment Share on other sites More sharing options...
roban Posted October 31, 2006 Share Posted October 31, 2006 To get rid of the information box, just delete {INFORMATION}. How are you uploading your saved index.tpl and where are you uploading it to? Quote Link to comment Share on other sites More sharing options...
Guest Ausgirl Posted October 31, 2006 Share Posted October 31, 2006 To get rid of the information box, just delete {INFORMATION}. How are you uploading your saved index.tpl and where are you uploading it to? You poor thing, You are going to get so frustrated with me, but I dont know how to upload it or where to, (I knew there was something I wasnt doing) Do I do that through FTP or through cPanel? and how do I do it. Quote Link to comment Share on other sites More sharing options...
Guest Ausgirl Posted October 31, 2006 Share Posted October 31, 2006 To get rid of the information box, just delete {INFORMATION}. How are you uploading your saved index.tpl and where are you uploading it to? You poor thing, You are going to get so frustrated with me, but I dont know how to upload it or where to, (I knew there was something I wasnt doing) Do I do that through FTP or through cPanel? and how do I do it. I have just discovered the index.tpl file on my desktop! LOL Do I drag & drop with onto the index.tpl file in my FTP to replace it? (change the permission to 777 before doing so) is that how it works? Quote Link to comment Share on other sites More sharing options...
roban Posted October 31, 2006 Share Posted October 31, 2006 You'd have to upload your new index.tpl by FTP if you can. Make a backup of your old one first. Not necessary to change permissions. Quote Link to comment Share on other sites More sharing options...
Guest Ausgirl Posted October 31, 2006 Share Posted October 31, 2006 You'd have to upload your new index.tpl by FTP if you can. Make a backup of your old one first. Not necessary to change permissions. Yes, I have worked it out, Thank You, Thank You so much for your time & patience. It is very much appreciated Thank You Quote Link to comment Share on other sites More sharing options...
roban Posted October 31, 2006 Share Posted October 31, 2006 You'd have to upload your new index.tpl by FTP if you can. Make a backup of your old one first. Not necessary to change permissions. Yes, I have worked it out, Thank You, Thank You so much for your time & patience. It is very much appreciated Thank You :unsure: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.