Welcome to Geeklog, Anonymous Saturday, December 03 2022 @ 01:57 pm EST

Geeklog Forums

Advanced theme question


Status: offline

frisco3

Forum User
Junior
Registered: 02/06/04
Posts: 23
Location:Burlington Vermont
confused
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?
 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) 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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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)

There's a hack that may help here (search for "chameleon"), or maybe the technique described here would be enough.

bye, Dirk
 Quote

Status: offline

frisco3

Forum User
Junior
Registered: 02/06/04
Posts: 23
Location:Burlington Vermont
thanks for the input #1Dirk. I'll give something a try and let you know in a few days.
 Quote

All times are EST. The time is now 01:57 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