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.
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
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,
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?
Offline
Thanks Prescott, What I'm trying to establish is which piece of code is the best to use, before I jump into it.
Offline
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.
Offline
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
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
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.
Offline