1
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">
<a 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}>
<a 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?