Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By prettyeyes on
if (@in_array($user->uid, array_keys(buddylist_get_buddies($account->uid))) && user_access('maintain buddy list')) {
print "<a href=\"buddy/delete/".$user->uid."\">remove " .$user->name. " from your buddylist</a>";
}
else {
if ($user->uid != $account->uid && user_access('maintain buddy list')) {
print "<a href=\"buddy/add/".$user->uid."\"> Add me! </a>";
}
}
I want to put images in the place of the "Add me" "Remove me" word links. I'm still a beginner at php, so whenever I would try to put a clickable image there, an erorr comes up. Does anyone know how I can go about doing this?
Thanks.
Comments
I hope it works it's
I hope it works it's untested
a great beginner error is to forget to escate the "
so if you write something like
Hello "You"
on the screen you have to write
for more infos go to http://www.php.net
WOW! It really worked!
WOW! It really worked! Thanks for your help!