By prezaeis on
hi guys, i created a custom block with the code below for a user menu, but now everything in the right sidebar is bold!!!!!
any ideas?
<div class=usermenu>
<?php
global $user;
if ($user->uid) {print theme("user_picture",$profileuser);}
else {
print '<img src="/'.variable_get('user_picture_default', '/noavatar.png').'" alt="Default User Picture" />';
}
?>
<?php global $user; ?>
<?php if ($user->uid) : ?>
<span class="login_text"><b>Logged in as: </span> <?php print l($user->name,'user/'.$user->uid); ?> |
<?php print l("logout","logout"); ?>
<?php endif; ?>
<br>
<?php
global $user;
echo '
<ul class="usermenumsg">
<li class="leaf">'.l('Messages ('. (int)_privatemsg_get_new_messages() .')', "privatemsg", array('title' => 'My Messages')).'
<li class="leaf"><a href="">Write message</a></li></ul>';?><br>
Post your own <a href="">Blog</a> | <?php global $user; print l("View your Blog", "blog/" . $user->uid); ?><br>
Upload your own <a href="">Music</a><br>
Upload your own <a href="">Video</a><br>
Post <a href="">Lyrics</a>
</div>
Comments
remove the '<b>' tag / add closing '</b>'
On line 12 you have an opened 'bold' tag, but there is no closing 'bold' tag. I guess you could do with out 'bold' tag and just use CSS to control the presentation of text.
my 2 cents - Lukas
thank u so much cant believe
thank u so much
cant believe it was such a silly little mistake i didnt pick up on
my bad
thanks again