Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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
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) {
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.
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=""> </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.
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: