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!
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?
");
if (isset($account->picture)){ // THIS IS WHERE THE CODE NEEDS TO BE ALTERED. THANKS!!
echo(" picture\" height=\"60px\">
");
}
if (isset($account->realname)){
echo(" Name:
$account->realname
");
}
if (isset($account->country)){
echo(" Location:
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
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:
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...