| Re: PM module: MessageBox (or sound) on new PM? |
| by ChronicTom on 2011/3/27 15:23:18 I realize this is old and all, but in following it, it only shows the notification when I go to my inbox, not across the whole site... anyone know why? [EDIT] forget it, it was the location that I pasted the code into the header.php Putting it right before // Sets cache time works |
| Re: PM module: MessageBox (or sound) on new PM? |
| by Mithrandir on 2005/8/14 21:30:24 I have some ideas for the navbar, but since that is a theme-specific element, I don't see how it could be implemented in the core. One could perhaps set e.g. the center-left blocks to be in the navbar and just assume that they would use the same structure as the navbar expects (through some custom templates for the blocks placed in the center-left block area) In the PM module, we will probably add some blocks with this kind of information (hi {uname} you have {x} messages in your inbox) and other stuff/stats... |
| Re: PM module: MessageBox (or sound) on new PM? |
| by Zarei on 2005/8/14 21:19:36 Sorry, should have been more clear. (a bit ot) If you're adding this mithrandir are you also adding admincontrol over the navbar menu (adding new menus/menuitems)? I was thinking of releasing my hack as a module but if you're doing it I won't bother. |
| Re: PM module: MessageBox (or sound) on new PM? |
| by Mithrandir on 2005/8/14 21:08:14 Could probably be done with some javascript. le="color: #000000"><?php <{if $xoops_isuser && $HaveMsg == 1}> <script type="text/javascript"> if (confirm("Hello <{$xoops_uname}>, you have <{$MsgCount}> messages in your Inbox, do you want to go to the Inbox?") ) { location.href="<{$xoops_url}>/modules/pm/viewpmsg.php"; } </script> <{/if}> (not at all certain that this will work - I'm no javascript wizard) |
| Re: PM module: MessageBox (or sound) on new PM? |
| by wildo on 2005/8/14 20:55:43 Thank you. This works great and is for sure a good option, but what I really meant was a windows MessageBox, which will show when there are new messages in the Inbox. User has to press OK to continue, and will be redirected to his Inbox. I've seen this hack for earlier versions ... |