Welcome to Geeklog, Anonymous Friday, April 18 2025 @ 01:09 pm EDT
Geeklog Forums
Advanced theme question
Status: offline
frisco3
Forum User
Junior
Registered: 02/06/04
Posts: 23
Location:Burlington Vermont

I have 2 separate, but related questions:
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
I am asking because I want the users of my website to be able to choose between 2 themes for most of the site, but I also want to set up a specific page on the site with an entirely different color scheme. The site is acttour.com and I would like there to be a page for acttour.com/thunderroad.php (does not yet exist) that is specifically for the Thunder Road race track with Thunder Road colors (orange and green). Can this be done?
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
I am asking because I want the users of my website to be able to choose between 2 themes for most of the site, but I also want to set up a specific page on the site with an entirely different color scheme. The site is acttour.com and I would like there to be a page for acttour.com/thunderroad.php (does not yet exist) that is specifically for the Thunder Road race track with Thunder Road colors (orange and green). Can this be done?
14
12
Quote
Status: offline
vinny
Site Admin
Admin
Registered: 06/24/02
Posts: 352
Location:Colorado, USA
Quote by frisco3:
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
1) No, but I imagine it would be possible to hack something together that would fit what you need.
2) Same answer as above, but a bit more difficult.
As a possible (not tested) solution to 1) you can design thunderroad.php as follows:
Text Formatted Code
<?php
require_once('/path/to/lib-common.php');
$_CONF['theme'] = 'name_of_alt_theme';
$ret = COM_siteHeader();
$ret .= "You stuff here";
$ret .= COM_siteFooter();
echo $ret;
?>
As I said 2) would take a bit more work (including possible changes to template.class.php).
-Vinny
8
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
All times are EDT. The time is now 01:09 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content