<div>Hi,</div> <div> I created a block with the code that doesn't seem to be working but seems to give me the correct link anyway. I had a site of mine that was missing the link to my account. I could hard code in my own link and one for each user but that doesn't work, no one wants to see links to all the other users. So, I created a block that has a link that is of the form</div> <div>drupalpath/user/ where drupalinstall is the full path to my drupal installation.</div> <div>This gives the user page for whomever is logged in. When I'm logged in it goes to</div> <div>user/1/</div> <div>when I log in another user that I created it goes to the other users page, e.g.</div> <div>user/2/</div> <div>I was using the variable $userid which seems to get thrown away in my code or is this working? Is there a different variable I might want to use besides $userid</div> <div>Here's the code, which I hope will be obvious about
where
the error might be.</div> <div><?php<BR>$output = ''; // single quotes<BR>$output .= '<a href='; <BR>$output .= '"user/'; // single quote with double quotes inside.<BR>$output .= $userid; // no quotes as I"m getting the $userid variable<BR>$output .= '">Account/Profile details</a>';<BR>return $output;<BR>?></div> <div> </div> <div>If it just needs /user/ for the full path to any users account listing, then I don't need the php.</div> <div>Thanks,</div> <div>Bruce</div><BR><BR>++++++++++++++++++++++++++++++++++++++++++++++++++++<br>Bruce Whealton - Webmaster/Designer/publisher/Writer<br>http://trianglewebservices.com/<br>Word Salad Poetry Magazine - join us online at:<br>http://wordsalad.net/<br>Street Exposure - Street Newspaper<br>http://wordsalad.net/StreetExposure/<br>++++++++++++++++++++++++++++++++++++++++++++++++++++<p>
                <hr size=1> Yahoo! Mail<br>
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=38867/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.