This forum is for assistance with theme development.

Digg Style Link Portal (Which template to start with)

I'm thinking about creating a fun little link portal and I've been browsing through the Theme's for about an hour trying to decide on which template to attempt to modify.

If you were creating a Site like Digg (http://www.digg.com ) , which template would you go with?

The Site is basically 100% teasers, with the exception of a Forum, and blocks.

1. Which template would you modify for this project? I'm leaning towards Zen

Overwrite $content output

I'm trying to figure out how I can design my own story template. I've created my own node-story.tpl.php and I am using print $content;. Problem is I'm not sure how to control the way Drupal renders the layout. I know I can design my own layout by using $node->title, $node-body and using the individual variables of the node laid out in my template for the story node, however I want to use $content because of the paging module. It seems by using $content the paging module works and inserts the paging, however if I pull out the individual node variables I would have to write the paging myself by accessing the node->pages array and code it myself.

Sp I began playing with this code snippet in my template.php -

function _phptemplate_variables($hook, $vars = array()) {
global $user;

switch ($hook) {
case 'page':
//titles are now ignored by specific node type when they are anomalous in the design
$vars['breadcrumb_title'] = $vars['title'];
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if (in_array($node->type, array('page', 'story')) && $user->uid != 1) {

// code would go here to modify $vars['content']

}
}
break;
}

return $vars;
}

Theme breakdown

Hi, I'm the webmaster from youngbodymind.com. I encountered theme issues with various different themes. When I post a content (e.g., storylink), the right hand side column disappeared (squeezed down to the bottom), leaving the right hand side blank. I removed "div" tag. Sometimes it helped to recover. However, today it happened again. There were no div tags in the posts. Also, it looks great in firefox, but bad in internet explorer.


I'd appreciate it very much if someone can help.


Illegal field attribute in subforum overview

On the page of a Drupal subforum like this one you'll find in the sourcecode a field-attribute that is no part of the XHTML standard (and as far as I know any standard at all):

<thead><tr><th field="">&nbsp;</th>

I haven't been able to find the template function responsible for this part of code. I was hoping someone over here could point me in the right direction.

customising of user registration page

1) I have a list of states created by the views modules from custom profile fields (http://mywebsite.com/?q=location/users/va), the list in question is only visible by registered users. Thus when a non-member tries to access that page they are redirected to "?q=user/register".
Instead of getting the generic "?q=user/register" page, I would like the non-member to get a custom registration page that has:

If (not logged in) redirect to <front>?

Hi, I'm trying to redirect users to the of my Drupal site if they aren't logged in on a specific node.

I've been playing with this code in template.php but I can't get it to work.

Pages

Subscribe with RSS Subscribe to RSS - Theme development