This forum is for assistance with theme development.

Porblems with "Stand Along Login Page" in 5.1

Hi, folk!!! I've one problem ... I want to set A stand alone login page for anonymous user with no action for a that user to take on my site.
The setting
global $user;
if($user->uid == 0){
$vars['template_file'] = 'page-login';//where page-login.tpl.php is my custom login page template
break;
}
return $vars;
at the
function _phptemplate_variables() in template.php file is no working! :(
...
Please, tell me how can i correct use "template_file" for this goal
Thanks advance

New theme

I've set up a new Drupal site and its first content piece is the theme used in the site. I've called it Blocky because, as you'll readily see, it's a bunch of squares. I kind of like its simplicity and hope you like it. It's somewhat easy to change the colors in the CSS file. Maybe in another version I might add some scheme to include several palettes and a means to switch from one to another. For the moment, the theme resides in http://drupalmex.com.

How do I theme a date field?

Yes, I read the docs here http://drupal.org/node/123181 but I can't make any sense of it.

Here is my field: $field_event_date[0]['value']

It contains this: 2007-07-20T00:00:00

I want to make this look pretty in my theme like this:

July 20th, 2007

I tried calling theme_date_display_combination with but got an error about the params.

The function says: theme_date_display_combination($field, $dates, $node = NULL)

Need Help Creating Regions in My Drupal Impact Theme

Ok I've been looking for posts on how to do this and nothing works for me. I'm using the My Drupal Impact theme. One thing to note here also is that the theme has no template.php file. Right now the themes regions that show up are only left sidebar, content, right sidebar, and footer. Header shows up as an option but it's not there. Now I've used the Zen theme before and the greatest thing about that that I really loved was content top and content bottom. I've had too much difficulty due to my lack of knowledge to either; change Zen theme so it wasn't clunky and plain, or add the two regions to my drupal impact theme.

Here is what the page.tpl.php looks like for zen

print $language
" xml:lang=" print $language ">


print $head_title;
print $head;
print $styles;
print $scripts;

/* different ids allow for separate theming of the home page */
print $body_classes; ">

(Q) Problem with background color in CSS/Zen Theme

Ok this little theming/CSS problem has been driving me crazy.

if ($view=="news") ? Syntax question..

Hi, I'm trying to add the following to my page.tml.php file so I can style a specific page with the minimum fuss or code. I would use a new page.template file but I only need to change some CSS styles.

The Idea:

<body<?php if ($view=="news"){ print "class=\"news-page\"";} ?>>

I'd like to check if the view called 'news' is being viewed. I can't find anything in the forums related to this as I don't know what terms to search for.

Thanks,
Marc

Pages

Subscribe with RSS Subscribe to RSS - Theme development