KaneR |
05-09-2011 02:39 PM |
Quote:
Originally Posted by Madpoodle
(Post 2193243)
Does it pop back up when you change pages?
|
Yes but you can add a conditional so it only shows up on the index page. If you want to do so...
Find:-
Code:
<vb:if condition="$notifications_total">
Add above:-
Code:
<vb:if condition="THIS_SCRIPT == 'index'">
Find:-
Add below:-
Make sure the code changes are done within the '<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->' tags.
Or you could just replace the code with the following and adjust the text to your liking...
Code:
<!-- Begin TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
<vb:if condition="THIS_SCRIPT == 'index'">
<vb:if condition="$notifications_total">
<script type="text/javascript">
$.jGrowl('{vb:raw notifications_menubits} <br />This box will disappear in 5 seconds.' , { sticky: true, header : 'New Notification(s)' } );
</script>
</vb:if>
</vb:if>
<!-- End TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
|