Ok, so I wanted to change the header image based on path or prefereably content type. But ok.
So I found this great post - http://drupal.org/node/104601#comment-1071795. Some really older posts there.
I tried some scripts in my page.tpl.php and found one that seemed to work well and do what i wanted.
I have since realised that it is giving errors after thinking it worked perfectly. This is based on the busy theme.
Here are the errors:
•Notice: Undefined variable: node in include() (line 34 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
•Notice: Trying to get property of non-object in include() (line 34 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
•Notice: Undefined variable: node in include() (line 36 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
•Notice: Trying to get property of non-object in include() (line 36 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
•Notice: Undefined variable: node in include() (line 38 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
•Notice: Trying to get property of non-object in include() (line 38 of /home/forefron/public_html/sites/all/themes/busy/templates/page.tpl.php).
Hi!
I use Aggregator module to import rss feeds to my page. Everything works all right. The question is: can I use the field that comes in the rss xml? I need to categorize the feeds using that field and I don't know how to do it. Maybe I'm missing something in that module..
Please anyone could help me?
Cheers!
Hi,
I'm using drupal 7.4 and the Bartik theme.
My problem is, that the username in the "submitted by" area is shortened to 14 characters followed by "...".
And I want to display the whole username.
I know where to change code, to change my theme:
inside my template.php I have added the following to bartik_preprocess_node:
Please help me in creating this form just visit the image. As you can see the image so please help me out that should I use any suitable module or it can be happen with the code, if code then just gimme some idea.
/**
* Fetches a user object based on an external authentication source.
*
* @param string $authname
* The external authentication username.
*
* @return
* A fully-loaded user object if the user is found or FALSE if not found.
*/
function user_external_load($authname) {
$uid = db_query("SELECT uid FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchField();
if ($uid) {
return user_load($uid);
}
else {
return FALSE;
}
}
I am brand new to Drupal. I installed 7.4 and have it working. So far I love the software. Everything is quite sensible. I have one challenge and am hoping someone can point me in the right direction.