I am very beginner in Drupal, it realized many nice ideas but as usual there are some small technical problems. I'm going to have flash in the header of my future site, but it seems to be not so trivial. I didn't find any flash containing template. In Joomla they have at least one. My goal is to realize layout similar to this heavy metal site. I am wondering that there is no any tutorial for flash in Drupal. Is Drupal friendly to flash?
I will appreciate any suggestions!
Hello,
I'm working hard to find how to modify ma front page to show nodes (TEASER only in fact) but in my SPECIFIC design.
I want show NEWEST node by different design like left of nodes (older).
Phylosophy is: First node (teaser only) show with bigger letters etc and older nodes (articles) in two columns with different design.
Means I need print node per node with full control (print title, print teaser, print footer (readed, add comment etc.)). Do you able help me? I realy worked hard and no luck.
Hi ... i really miss the maintenance option in Drupal 4.6.x version so I decided to make a little workaround. Maybe someone will find it usefull. It's only few lines of code.
If you are planning to make a fresh Drupal website and you don't want it to be open until it's ready for public you can use this theme.
What is it ?
It's a theme based on PHPTemplate engine so the users join your site and see the message that website is not opened yet, but Admin can login and work on the site.
I've been playing around with the themes on Drupal, and I'd like to try out some text effects that work on all links in the site... Durpal generates most of them though, is there any way without digging through every PHP file to add a new class to all the hyperlinks Drupal generates?
Sorry if this is explained somewhere, but I'm not sure how to look for this.
I want to allow the users to select what they see on the front page based on taxonomy terms. Anyone have a good way of doing this? I'm new to Drupal but I know PHP, SQL, etc.
This theme snippet will supply a gravatar ("Globally Recognized Avatar"; http://gravatar.com/) for anonymous commenters, provided that you require them to leave their contact information in admin/comment/configure. You must also enable user pictures in comments in your theme settings.
Put the following php code snippet at the top of your comment.tpl.php file, assuming you are using phptemplate.
<?php
// Tested with Drupal 4.6
// check to see that comment author was not authenticated user
// and that comment author provided email address
if ((!$comment->uid) && ($comment->mail)) {
// get the maximum allowed user picture dimensions from user.module settings
list($maxwidth, $maxheight) = explode('x', variable_get('user_picture_dimensions', '85x85'));
// set the maximum gravatar size equal to the maximum user picture height from settings
$size = $maxheight;
// build the gravatar image url with md5 hash of comment author email and size limit
$gravatar_uri = "http://www.gravatar.com/avatar.php?gravatar_id=". md5($comment->mail) ."&size=$size";
// get image dimensions of gravatar returned from uri
$im = getimagesize($gravatar_uri);
// an invalid gravatar will return 1x1 gif.
// if a 1x1 gif is returned, don't overwrite $picture
if (($im[0] != 1) && ($im[1] != 1)) {
$alt = $comment->name;
$picture = theme('image', $gravatar_uri, $alt, $alt, '', false);