drupalfun.com
Block Link Button to Profile: Image tag text displays instead of the image
Submitted by rohandavies on Fri, 03/27/2009 - 15:34
Status:
Open Question:
Hi,
I'm having an issue with adding a button to the sidebar that links to the user profiles. Instead of the image displaying I get the image source text as a link. The link works correctly, but obviously the image should be displaying. For example, I get:
The first thing I saw was the the img src doesn't include the site base path. That seems significant, but I can't connect the dots!
Any pointers?
Thanks!


1. SOLVED! Missing Drupal 5 notes in book
Got to the bottom of this one.
The problem is that the drupal function to create a link ( l() ) has changed it's input requirements from version to version. The Drupal 5 version, which I am using (and probably should have noted in my original question), has different syntax requirements to 6. See this link for the requirements and solution:
http://api.drupal.org/api/function/l/5
I ended up putting four NULL's into my function call and changing the array('html'=> true) to $html=TRUE. Now works a treat!
Perhaps a note is needed in the book, Dorien, to help future users?