This forum is for assistance with theme development.

phptemplate & banner module

Hope this is the most appropriate place..

Trying to get banner modules working in a phptemplate based theme (box_gray) however it doesn't seem to work. Basically if it's in a block, I should:

return banner_display(5);

For xtemplate, the author provides a template:

http://www.tweakgeek.com/xtemplate.patch

However, I can't figure out how to do it with phptemplate...any tips for someone not knowledgable in PHP?

Best way to start?

What is the best way to start building a custom theme for Drupal? I read in the comments of the theme documentation section that XTemplate is not a good choice- why? It seems a much more logical alternative to the large ammounts of PHP code. Where can I read more?

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?

Pages

Subscribe with RSS Subscribe to RSS - Theme development