and add a link to "my account," how do i do this?

thanks in advance.

Comments

Magnity’s picture

Title: quick question: modify lg block to add "welcome !username!" » Modify logged-in block: add "welcome !username!" & link to "my account"
Status: Active » Needs review
StatusFileSize
new634 bytes
new662 bytes

I have created patches to sort out adding a link to "My Account".
1 - By adding an additional link between the username and the logout link
2 - By converting the username into a link to the "My Account" page

Personally I think the 1st option is much easier on the eye, and also much more self explanatory to users, and would like to see this as part of the module if possible.

Please post comments!

bbeyer’s picture

Issue tags: +theming

You can just override these in your template.php.

hunmonk’s picture

Status: Needs review » Closed (works as designed)

correct, any adjustments should be made at the theming level, i'm not changing the default theming of the block.

lejon’s picture

can you explain where in the theme template you should change this, along with the syntax?

hunmonk’s picture

you need to override theme_lt_loggedinblock() in your theme. check the drupal.org handbook or google for instructions on how to override a theme.

Keith’s picture

Version: 7.x-1.x-dev » 6.x-1.9

Would someone clear up my confusion? I'm using Drupal-6.x-20 and observe this behavior:

When the user logs in, the block disappears, apparently because its content is empty. The name of the method (theme_lt_loggedinblock()) suggests that the content should appear after the user logs in. The code in function logintoboggan_block() seems to confirm this:

...
          if ($user->uid) {
            $block['content'] =  theme('lt_loggedinblock');
          }
...
hunmonk’s picture

the block should only appear for logged in users.

Keith’s picture

But in my application it does not show up for logged-in users, as it is supposed to. Can anyone explain?