Guest rohloff Posted April 12, 2007 Share Posted April 12, 2007 hi i wanna do something similiar to what you see on this page: http://www.pixmania.co.uk/uk/uk/it-product...html?itag=12300 see them 5 square boxes down the right side, new cat, epson , fujitsu etc...how do i do this in cc..do i mjus import an image as an image then link it to the relevent product? im a bit unsure as theres also an "image button" thing on my editor...wats the difference? Does anythin need to be coded? any help greatly appreciated, sorry if it sound simple to some of you but we arent all clever thanks in advance jon Quote Link to comment Share on other sites More sharing options...
Guest rohloff Posted April 13, 2007 Share Posted April 13, 2007 NO Replies yet?? am i correct in thinking that i need a box? is that the term used in cc for the kinda thing i wanna do? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 14, 2007 Share Posted April 14, 2007 you can do this certinly within a box [talking from killer perspective] - but can be used on other skins. If you can get hold of google adsense in a box, then that is really a template in creating boxes ect. For pictures only - im not sure on that. basically you need to backup, edit and upload the following files: THIS IS A GENERAL WAY OF ADDING BOXES IN WHICH *CAN* BE DONE SLIGHTLY DIFFERENTLY and THIS IS ADAPTED FROM GOOGLE ADSENSE IN A BOX BY Robix. Create 'WhateverIWanttoCallIt.inc.php [ADVERT.inc.php for now] <?php if(!isset($config)){ echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>"; exit; } $box_content = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/boxes/advert.tpl"); $box_content->assign("LANG_ADVERT_TITLE",$lang['front']['boxes']['advert']); $box_content->parse("advert"); $box_content = $box_content->text("advert"); ?> Create 'advert.tpl' <!-- BEGIN: advert --> <div class="boxTitleLeft">{LANG_ADVERT_TITLE}</div> <div class="boxContentLeft"> <center> Replace this line with any code you might like ie your <a href="balh"><img>blah.jpg</img></a> [if im wrong - im tired!] </center> </div><div class="boxFootLeft"> </div> <!-- END: advert --> Modify index.tpl in your skin styletemplates/global folder. Add {ADVERT} to the preferred location. ie: <div class="colRight"> {SHOPPING_CART} {POPULAR_PRODUCTS} {SALE_ITEMS} {ADVERT} </div> Modify lang.inc.php in your language directory. look for $lang['front']['boxes'] = array( and insert tefollowing line [This will be the title of the boxif you wanted a title eg Advertisement etc]: 'advert' => "Your text here:", Modify STORE/ROOT /index.php Find include("includes/boxes/language.inc.php"); $body->assign("LANGUAGE",$box_content); and Include: include("includes/boxes/advert.inc.php"); $body->assign("ADVERT",$box_content); a 125*125 image can fit into the box. That should do you, or you can hard code it to your skin/index.php so its always there. a example is on me Webby CMC Mods - does this get included in the FAQs sticky */* Quote Link to comment Share on other sites More sharing options...
Guest jamie750 Posted April 16, 2007 Share Posted April 16, 2007 thank you, ill try that and see how i get on 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.