1
JamesSAEP
Where is the User block info?
  • 2005/6/22 16:11

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I'm trying to move the "User Menu" from a block into the top of the theme.html file. I know how to get all the links show up when a user logs in, but I can't figure out how to get the "Inbox" to highlight and put the number of messages next to it.

Anyone know what I'm missing?

Thanks.

2
bluenova
Re: Where is the User block info?

<{if $block.new_messages 0}>
        <
class="highlight" href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}> (<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}>span>)a>
      <{else}>
        <
a href="<{$xoops_url}>/viewpmsg.php"><{$block.lang_inbox}>a>
      <{/if}>


Just taken from the usermenu block??

3
Mithrandir
Re: Where is the User block info?

Wouldn't work on itself. The code for checking whether the user has messages is not in the template, but in the block code (modules/system/system_blocks.php - the userinfo_show() function, I think it is called)

4
JamesSAEP
Re: Where is the User block info?
  • 2005/6/22 16:21

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Thank, this is what I'm looking for. Duh, I should have known where to get this...

5
JamesSAEP
Re: Where is the User block info?
  • 2005/6/22 16:42

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Quote:

Mithrandir wrote:
Wouldn't work on itself. The code for checking whether the user has messages is not in the template, but in the block code (modules/system/system_blocks.php - the userinfo_show() function, I think it is called)


Thanks Mith. With this info, what do I need to get it to work on the theme.html file?

Login

Who's Online

188 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits