1
baraxas
User menu time update and pm popup
  • 2005/10/31 17:21

  • baraxas

  • Just popping in

  • Posts: 12

  • Since: 2005/3/28


I'd like to have a popup when a pm is in inbox. I tried to modify system_block_user.html to include another html file, with a refresh time set via META tag, via iframe:

<tr>
    <
td id="usermenu">
      <
class="menuTop" href="<{$xoops_url}>/user.php"><{$block.lang_youraccount}>a>
      <
a href="<{$xoops_url}>/edituser.php"><{$block.lang_editaccount}>a>
      <
a href="<{$xoops_url}>/notifications.php"><{$block.lang_notifications}>a>
      <
a href="<{$xoops_url}>/user.php?op=logout"><{$block.lang_logout}>a>
      <
iframe src="http://localhost/~franz/xoops/modules/system/templates/blocks/test.html">iframe>
      

      <{if 
$xoops_isadmin}>
        <
a href="<{$xoops_url}>/admin.php"><{$block.lang_adminmenu}>a>
      <{/if}>
    td>
  tr>
table>


Where the other file, test.html, is:

<meta http-equiv="refresh" content="600">

<{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}>


But this doesn't work and in the user menu i find the following:

<{if $block.new_messages 0}>  <{$block.lang_inbox}> (<{$block.new_messages}>)  <{else}>  <{$block.lang_inbox}>  <{/if}>


Where am I gonig wrong?

2
technews
Re: User menu time update and pm popup
  • 2006/1/31 1:22

  • technews

  • Just popping in

  • Posts: 36

  • Since: 2005/3/30


anyone on that?

how do you "access" a block variable e.g. $block.new_message ... outside a block???

3
shank
Re: User menu time update and pm popup
  • 2006/1/31 3:55

  • shank

  • Not too shy to talk

  • Posts: 144

  • Since: 2004/8/17


Check out this thread!

Particularly post # 10
s l s h a n k l e @ b e l l s o u t h . n e t

Login

Who's Online

352 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 352


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