Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-20-2004 01:47:43

Steven
Member
Registered: 04-21-2004
Posts: 84

Regarding Multiple Designs For Same Site

I have been scouring the board for the real mc'coy code for enabling me to use different site layouts.  This is achievable by placing some if statements in your ste_exec.pl file.

There is one example of this here;  where  appears to have something that works, with a limitation in categories using the same word in their name.

There other example I've come across;  A fellow member   exposes some code that he worked on himself after discovering a few hints.

The question is, has anyone else implemented the same result with other code, if so, is that code available?  Is there another thread here that I've missed.

I hope someone can shed some light on this subject.

Offline

 

#2 08-20-2004 09:10:42

prescott
Member
Registered: 03-26-2004
Posts: 94

Re: Regarding Multiple Designs For Same Site

The limitation in my example is only there if you want to try and limit your "if" statements. If your categories share the same word, you just have to add more if statements, and made it a more definitive "equal" statement -- for example,

Code:

if ($page_id =~ /^ste_nolay_/) {

&display_print($page_id);

} elsif ($fd_ref = "books") {

&display_print('ste_layout1');

} elsif ($fd_ref = "comicbooks") {

&display_print('ste_layout1');

}

Is there a reason the solutions already presented won't work for your site?


My little attempt with CCP:

Offline

 

#3 08-20-2004 16:48:08

Steven
Member
Registered: 04-21-2004
Posts: 84

Re: Regarding Multiple Designs For Same Site

Thanks Prescott, What I'm trying to establish is which piece of code is the best to use, before I jump into it.

Offline

 

#4 08-21-2004 09:17:34

prescott
Member
Registered: 03-26-2004
Posts: 94

Re: Regarding Multiple Designs For Same Site

Well, of course, *mine* is best.  ;-)

But seriously, this is one of those things that there are several different approaches you can take to solve this, I don't know if you can say which one is "best" or "right", if they all work.


My little attempt with CCP:

Offline

 

#5 01-17-2006 17:37:57

confused
Member
Registered: 05-17-2005
Posts: 92

Re: Regarding Multiple Designs For Same Site

I tried changing site layout making my splash page different to the rest of the site  using the above suggestions, but it didn't seem any different (CCP UK) - will these sript changes work on the UK version?

Offline

 

#6 01-17-2006 17:47:43

dtwg
Member
From: California
Registered: 11-15-2004
Posts: 1339
Website

Re: Regarding Multiple Designs For Same Site

If you post the exact section of modified code you are trying to use, I will take a look and see if I can tell why it isn't working.

You may also consider posting your question in the .

Dave

Offline

 

#7 01-18-2006 03:42:20

ZipSkins
Member
From: United Kingdom
Registered: 01-15-2006
Posts: 822
Website

Re: Regarding Multiple Designs For Same Site

confused,01/17/2006 05:37:57 PM wrote:

I tried changing site layout making my splash page different to the rest of the site  using the above suggestions, but it didn't seem any different (CCP UK) - will these sript changes work on the UK version?

Yes the code works on the UK version, we have it implemented on  - click on the electricals category..

Thanks to Dave (dtwg (aka Batman)) by the way, who helped develop the mod to it's full capabilities and of course Prescott for the orginal mod.


| Professional Quality Customisable Skins for your ClickCartPro Powered Site


-----------------------------
Certified Support Partner

Offline

 

Board footer