Jump to content

how do you put thse images in as links?


Guest rohloff

Recommended Posts

Guest rohloff

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

Link to comment
Share on other sites

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 :w00t: */*

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...