This forum is for assistance with theme development.

Multiple Theme / Custom Homepage / Theme Switching

Hi! not sure if someone said this before (or if there's an EVEN easier/better way) to switch themes:

This is for Version Drupal 4.5

I wanted several pages to have a diffrent theme so I added something like this to includes/conf.php:

// get the value for q:
// http://www.ngowebsite.org/drupal/?q=node/1
//
$current_dir = $_GET["q"];

New "custom" menus in drupal 4.5

Hello!

The new incarnation of drupal is the best ever...
Unfortunately, I am missing a feature that was present (and very useful) in one of the addoon modules for ptrvious versons:
The custom menus had the ability to stay "open" instead of following open-by-context mode.
Am I missing something or is this 'feature' missing from the core menu module?

Thanx very much for any info.
__
BP Toni

Mission & Avatars in ADC theme

For all ADC theme users (and I guess anyone who uses themes that aren’t the xtemplate / phptemplate based ones) who want to use avatars and Mission statements on their sites, here is what I added to get them working in Drupal 4.5.0: (Warning, this is advice for n00bs such as myself who couldn’t find the answers by searching)

Mission: from Xtemplate (lines 179-182):

if ($_GET["q"] == variable_get("site_frontpage", "node") && theme_get_setting('toggle_mission') && ($mission = theme_get_setting('mission'))) {
    $xtemplate->template->assign("mission", $mission);
    $xtemplate->template->parse("header.mission");
  }

Changed to:

if ($_GET["q"] == variable_get("site_frontpage", "node") && theme_get_setting('toggle_mission') && ($mission = theme_get_setting('mission'))) {
    $output .= theme_get_setting(‘mission’);
  }

And inserted at line 70 in adc.theme, so it appears before the content is called.

For the Styling, I created a class in my css called ‘mission’, and on the settings page where you write the mission I surrounded in with <div class=”mission”></div> (I tried doing this in the theme, but my php isn’t up to scratch)

Avatars / User Pictures

In adc.theme at line 10:

function adc_features() {
  return array('toggle_name', 'toggle_slogan', 'toggle_primary_links');
}

Drupal Site Theme

Hey,

What Drupal theme is this site using?

Hiding node footer in Chameleon theme

I need to be able to hide the name, date and time for a node in the Chameloeon theme. Where can I do this in Drupal 4.4?

Thanks

Bluemarine - CSS Style Switching

Hi,

I have about five different .css files of different colors. I would like to setup 'secondary links' to link to each of different style sheets.

Does anyone know how to do this?

I have searched through these forums, and also tried to look at code, but none of it made sense.

Thanks for your help!

Added Bonus: If you can also change the font size, like here you would be da man!

Regards, th3gh05t

Pages

Subscribe with RSS Subscribe to RSS - Theme development