drupalfun.com
Images not seen in Things to do Block (page 118 manual)
Is the code on page 118 for the "Things to do" block correct? For some reason I can not see the png images in my block. Links show though and the spacing is correct. Any idea how to fix.
I copied the code on page 118 of the manual (yes I retyped the ") but it seems that the reference to the sites/all/default/files/icons requires a / before it. I tried that but it did not work.
The input format is php but it seems that the code gets modified when I save the blocks on page 118. Perhaps this is the problem. Can I get an idea of how you are setting up our php input format. thanks.
Thomas
Related Questions
Responses
2. is that the code?
is that the code that your using at your site? because its all messed up... it wont show up anything but a bunch of php failures
3. Welcome to Drupalfun Here are
ok ive tested this code on my website and it works, at least for me just copy and paste, and hope it works
4. It worked!
Mil gracias. Usted esta muy amable.

1. Anyone having problems with Things to Do?
Love the things to do module on drupal fun but reproducing it on test site with code from page 118 is a chore. Anyone having the same issue?
Page 118
What do you want to do
Welcome
Here are a few things you can do right now...
<?php
//get the content profile’s node ID for the user:
global $user;
$myuid= $user->uid;
$node2= content_profile_load(profile, $myuid);
$profileid= $node2->nid;
?>
<?php
//get photo album path:
$node3= content_profile_load(photogallery, $myuid);
//does the user have a photo gallery already?
if (!empty($node3->nid)){
//if yes: display an edit link:
$node3id = $node3->nid;
$photopath='node/'.$node3id.'/edit';}
//if not, display a create link:
else{$photopath='node/add/photogallery';}
?>
<?php
//get video album path:
$node3= content_profile_load(videos, $myuid);
//does the user have a video gallery already?
if (!empty($node3->nid)){
//if yes: display an edit link:
$node3id = $node3->nid;
$videopath='node/'.$node3id.'/edit';
//if not, display a create link:
}else{$videopath='node/add/videos';}
?>
node/<?php print $profileid;?>/edit">
sites/default/files/icons/goranger.png: />
Edit your profile & avatar
<?php print $photopath;?>">
sites/default/files/icons/eos.png" />Add pictures
<?php print $videopath;?>">
sites/default/files/icons/video.gif" />
Add videos
knowledgebase">
sites/default/files/icons/know.png" />
Share your knowing
drupalquestions">
sites/default/files/icons/job.png" />
List of job
drupalquestions">
sites/default/files/icons/support.png" />
Ask a question
drupalshowcases">
sites/default/files/icons/folder.png" />
Show off your sites