This forum is for assistance with theme development.

Problems when i tried to switch to smarty template!

I'm getting this error anywhere i point to my web site, i even cant login to my admin page to change the default web-site:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /u1/home/my_account/public_html/bac/themes/engines/smarty/SmartyTemplate.class.php on line 35

Is there anyway from myphpadmin to change the default template?!?

overiding functions already defined in phptemplate.engine

Specifically, I wish to redefine phptemplate_comment(). Is there a way I can do this within a theme folder without changing phptemplate.engine?

In the handbook, only overriding themes function not defined in phptemplate.engine is discussed.

Thanks.

Overwriting Drupal.css

I'm trying to develop a theme, I'm using clean slate as the template.
I find that Drupal.CSS is making tables funky colors.
It was the background colors. I copied the lines from drupal.css and put them into the custom style.css and modified them but this doesn't change the site.

Should a style.css in a theme override drupal.css ? If it's supposed to why hasn't it. I'm using Firefox 1.0.
Thanks for any help. I'm still using drupal 4.5.0 I guess upgrading might fix this.

I

Styling static pages with phptemplate

I want to create some static pages for my site - specifically they're things like an "about" page, help pages and the like. Obviously for these, I don't want the title, author links, or indeed anything except the page content.

Unfortunatly it seems that phptemplate doesn't have any templates for a static page (which is just a type of node, correct?) or variables to allow one to conditionally exclude the title, etc for static pages.

Better seperation of module functionality and output?

First off, I wasn't sure where this should go since it affects all modules, the Drupal core (I think), and is related to theming. I ended up sticking it here in themes since it has more to do with the HTML content of modules than anything else.

Has anybody ever looked into better separating modules functionality and the HTML output they produce? I come from using XOOPS for a few sites and one thing I really liked about XOOPS was how easy it was to change the output of a module without really having to touch the code at all.

I'll give you an example that's based on something I'm trying to do on my in-progress site currently. In XOOPS using the template system, I could modify the user login block anyway I wanted to by opening up an html file and adjusting the look. I could change the look and feel of it without having to touch the module code that controlled it. When I try to do this with Drupal I'm left frustrated because within the user.module file isn't even pure HTML to edit and I have to go through core functions to try and get what I'm looking for (unsuccessfully).

Just for reference, what I'm trying to do is add a class attribute to the input tags for username and password so I can customize them individually in my theme's CSS file.

I'm not saying Drupal should be an XOOPS clone or anything like that, I'm plenty aware that "if I like XOOPS better I can go back to it." But the fact is I don't like XOOPS better, I like Drupal and I think Drupal could greatly benefit from a template system similar to XOOPS because it makes customizing module's output VERY simple, or at least a lot simpler than it is now in Drupal.

Help with taxonomy_link generation

hi all,
I'm studying a theme on Drupal 4.5.1 where, for each node, I would like to see links to taxonomy terms grouped by vocabulary.
I try to explain better:

Suppose I have a node (generate by a specific custom module) linked to the following vocabularies: geograqhy, organization.

I would like to print something like:

TITLE

BODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODY
BODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODY
BODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODYBODY

Pages

Subscribe with RSS Subscribe to RSS - Theme development