Quote:
Originally Posted by FF|Skyrider
For those who prefer not that the messages are being displayed while reading your PM list or while reading a PM, use this code:
Code:
<vb:if condition="THIS_SCRIPT != 'private'"><!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
<vb:if condition="$notifications_total">
<script type="text/javascript">
$.jGrowl('{vb:raw notifications_menubits} <br />Debes ver tus notificaciones para que este mensaje desaparezca.' , { sticky: true, header : 'Aviso del foro' } );
</script>
</vb:if>
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) --></vb:if>
I've only added
Code:
<vb:if condition="THIS_SCRIPT != 'private'"></vb:if>
To prevent the pop-up being shown while in private.php (the PM list & messages).. If there is something wrong with this code, please let me know.. I never actually used this before and it works fine for me.
Would be great if a modification is being made of this. So an option can be set to use the advanced (this one) pop-up or the original. Also would be nice if you can actually close the pop-up and won't appear again until you get a new PM.
|
Can anyone tell me how to add the member profile page to this as well?
Code:
<vb:if condition="THIS_SCRIPT != 'private'"></vb:if>
(member.php page)
Update: I don't know if there was a better way to add this to the first line or not, but I just added
Code:
<vb:if condition="THIS_SCRIPT!='member'">
after the first one above and closed it in the same place and that seemed to work just fine.