Jump to content

Adding New Templates


Guest

Recommended Posts

Hey

I went and tried having both skins uploaded and ran into a small problem

But i fixed it

When you have more than the Classic skin uploaded and you try to change the template you wont see a full change

If you open your: skins/whateverskin/global/index.tpl page and look at the

at the top of the page at about line 10 and 11 you will see this:

;) Heres the fix: Change the code above to this:

<link href="skins/Classic/styleSheets/layout.css" rel="stylesheet" type="text/css" />

<link href="skins/Classic/styleSheets/style.css" rel="stylesheet" type="text/css" />


It says skins/Classic



When you change the template in the admin this will not shnage when you update settings!!!!



So wehn you look at the page its all mest up 
<link href="skins/{STYLES}/styleSheets/layout.css" rel="stylesheet" type="text/css" />

<link href="skins/{STYLES}/styleSheets/style.css" rel="stylesheet" type="text/css" />




Then open your.



index.php page and find this about line 74 - 76:


	$body->assign("SEARCHSTR",$_GET['searchStr']);

	$body->assign("CURRENCY_VER",$currencyVer);

	$body->assign("VAL_ISO",$charsetIso);




Replace with this:


	$body->assign("SEARCHSTR",$_GET['searchStr']);

	$body->assign("CURRENCY_VER",$currencyVer);

	$body->assign("VAL_ISO",$charsetIso);

	$body->assign("STYLES",$config['skinDir']);

and all should work when you add more templates.

Also we need to change the fact the when you do update settings in the admin you dont have to change the permissions on the global.inc.php page every time :P

anyways let me know if you guys have any questions.

wildbill :)

Link to comment
Share on other sites

NICE.. GOOD WORK...

AM NEW IN THIS FORUM... I DONT KOW MUCH PROGRAMING .. I KNOW ONLIY DESIGNING.. I DONT KNOW CSS... CUBECART NEW 3 VERSION IS TEMPLETEBASSED.. BUT ITS .CSS BASSED... LATS OF PEAPLE DONT KNOW .CSS ... SOO IS THERE POSSIBLE .. OR CAN U PUBLISE ANY DESIGN BASSED TEMPLET SYSTEM ... SOO MY TYPE OF PPL , WHO KOW ONLY DESING .. CAN CHANGE CUBECART DESIGN IN THERE PREVIOUS WEBSITE LAYOUT...

PLZZ TRY TO RELISE DESIGN BASED TEMPLET WITH STEP BY STEP INSTRUCTION.. SOO ITS VERY USEFULL 4 US...

THANK YOU...

WAITING 4 REPLY..

(please read care fully... my english is not good)

Link to comment
Share on other sites

hi there

what do u mean by " Please try not to use CAPS.....ty

Mobie " ???

why u r here ?? because u r trying to help new user... am i right ???

and if u know..? then post ur instruction... othere wise dont post that type of message.. its not goood 4 NEW USER..

they dont know thats why they posting there problem..

anyways. i hope u understand what i want to explain..

sorry..

Link to comment
Share on other sites

All he was saying was please do not type in all caps. Seriously, its really hard to read, looks like your "e-yelling", and just frustrating.

Let it go, it was just a word of advice!

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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...