This forum is for assistance with theme development.

Recovering site from a broken theme

I was "auditioning" some themes, and one of them was causing fatal errors bad enough that Drupal would not load. Nothing showed up except a fatal error (at line 179 of theme.inc, with Drupal 4.3.1, if anyone cares)

This leads to a sort of catch-22: I could not load Drupal because of the broken theme. But I could not change the theme because I could not load Drupal. So how can someone recover their site if they've installed a theme that turns out to be broken?

Lock my account settings for themes

How can you prevent all authenticated users to change their theme?

We want to force all users to use the same theme. Is this possible?

Thanx!

Theme translations from other systems

Has anyone had any experience translating themes from other systems? I particularly like Tiki's default SubSilver theme (http://www.opensourcecms.com/tiki/styles/subsilver.css) and the moreneat one. There's some very fine Xoops (& of course the whole PN family) themes as well.

No more comments and submitted by

All right, I've been poking this thing (Drupal) with a stick and thought I'd ask for some direction so I can start digging with more focus. In stories and articles, I would like to NOT display the Submitted By line. All the Themes seem to have this as a standard. What do I need to comment out/look for in the themes to exclude this line?

Thanks,

-sp

Adjusting xTemplate for more control over image.module display

Using xTemplate, I want to take more control of display for the image.module. I copied all functions and settings for "node" within the template files, and created node_image. I created all necessary classes in the CSS file for .node_image, .node_image .title, etc.. Everything works fine, but for some reason the image is missing now. It's as if there is no content passed. Why would this be if I just recreated "node" under "node_image"? Below is a copy of the node function in xTemplate.theme, with a few changes so it will call node_image in xTemplate.xtmpl.



Code from xTemplate.theme:
--------------------------
function node_image($node, $main = 0) {

$this->template->assign(array(
"link" => url("node/view/$node->nid"),
"title" => ucfirst($node->title),
"author" => format_name($node),
"date" => format_date($node->created),
"content" => ($main && $node->teaser) ? $node->teaser : $node->body));

if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
$this->template->assign("taxonomy", $this->links($taxonomy));
}
else {
$this->template->assign("taxonomy", "");
}

if ($links = link_node($node, $main)) {
$this->template->assign("links", $this->links($links));
}
else {
$this->template->assign("links", "");
}

$this->template->parse("node_image");
print $this->template->text("node_image");
$this->template->reset("node_image");
}
------------------------------
I can't show the code from xTemplate.xtmpl because it gets parsed but it is identitical to "BEGIN: node"

thank you.. Any thoughts would be helpful.

Mastering heading

Dear All,

I'm using Drupal 4.3.1, Polder theme and style.module. Currently, I do not use static CSS, but I keep using the default polder theme with activating logo image AND title text. My header is generated like this :

Pages

Subscribe with RSS Subscribe to RSS - Theme development