Drupal is up and running but how do I ...?

picture in post that links to node

hi, i was wondering how i could make an image that appears in the teaser post that is linked to the node. so the person can either click the title of the node or the picture in the teaser. im new to all this.. thanks for the help!

No Image settings

There is no image setting in my admin >> settings >> image. How I can configure this? pls help me. I need to create a photo album site.

How do I fix this problem with pages?

Hey, Drupal is working out great for me!

There are a few known bugs on my site, but they are part of the theme and seem broken for everyone I guess :-/

About Me block doesn't display the default pic

Hey guys,

I am using the about me block code from the php snippits page. Works great except one problem I have found is that it does not display the default user picture as it should when there is no user picture uploaded. Instead, it shows a box with a red x (in internet explorer). The default picture appears correctly elsewhere in the site (eg. in comments).

How can I alter the about me block code to show the default user picture when the user has not uploaded their own picture yet?

The origonal about me block code is below:


<?php
if (arg(0)=='blog'){
$uid = arg(1);
$account = user_load(array((is_numeric($uid) ? 'uid' : 'name') => $uid, 'status' => 1));
profile_load_profile(&$account);
echo("

");
if (isset($account->picture)){ // THIS IS WHERE THE CODE NEEDS TO BE ALTERED. THANKS!!
echo("
Only local images are allowed.picture\" height=\"60px\">
");
}
if (isset($account->realname)){
echo("
Name:

$account->realname

");
}
if (isset($account->country)){
echo("
Location:

$account->country



");
}
if (isset($account->biography)){
echo("


$account->biography



");
}

How do I list the feed titles for Aggregator2 feed items?

This is probably trivial for you mySQL mavens, but here's my problem.

I'm aggregating a number of feeds into my site using Aggregator2. I'd like to use a PHP snippet to create a list of the x most recent news feed items tagged with a particular category, listing the title of the post, the title of the feed and possibly the posting date. The result would look something like this:

Where have all the good times gone? From Gina Tangential's blog, posted Monday, Dec. 11 at 8:05 PM

Any suggestions?

Thanks!

Is there a simple way to group nodes by their creation date?

One of the basic features of most blog packages is breaking up lists of posts by the day they were posted on. Instead of listing the post-date on EVERY node teaser, they're displayed like so:

TUESDAY, DECEMBER 13th
> Node 1
> Node 2
> Node 3
MONDAY, DECEMBER 12th
> Node 4
> Node 5
> Node 6

And so on. Quite a few multi-user sites like metafilter.com display things this way, too. Is there a simple way to do this using PHPTemplate theming? I'm sure I'm missing something obvious...

Pages

Subscribe with RSS Subscribe to RSS - Post installation