Xen Notices [Deleted]

Great! Love the alert sound!
I haven't included it in the download, but I'm sure you can find your own.

I tend to get little sound bites like that for my mobile phone as text alert tones. I get them from http://www.zedge.net.

Best $10.00 (15.00 after currency exchange) I ever spent on a 3rd party product for forum software. :cool:

Thank you :D (y)


Sound and Video Notifications. (y)
Video was already possible..


But yes, your suggestion made it in (y)
 
Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent Excellent.

Upgraded to 1.3 without any issues and a smooth updated. Excellent work chris. (y)

Thankyou to Moz (I read somewhere you've been helping) and ragtek for the helping tips. :)
 
Is this notification related? :cautious:

Thanks for the kind words (again :D)

ROFLMAO - myself and a friend were talking on msn who I hadn't chatted with for a long time and he commented about another forum <company> frontpage and how bad it looked. and then he made the following comment which I said to him i have to quote. I nearly choked on my drink when i read it.

edit: I'm going to do more css gradient notifications first and then my next image notification I'm going to try a stab at angry birds notification. :) Inspired by your avatar.
 
ROFLMAO - myself and a friend were talking on msn who I hadn't chatted with for a long time and he commented about another forum <company> frontpage and how bad it looked.

~ SNIP ~
Your comment made me double-check my own (which I want clean and simple).

Needless to say .... While you may not have been talking about my site... It did make me double-check a few things and I discovered how little was viewable to guest (nothing except an announcement).

Fixed.
 
Your comment made me double-check my own (which I want clean and simple).

Needless to say .... While you may not have been talking about my site... It did make me double-check a few things and I discovered how little was viewable to guest (nothing except an announcement).

Fixed.

I didn't want to name them because this thread is like a escape from the other threads. it's nobody's site from here but let's say they like suing.

Back on topic.

Any examples of using the sound option? Does the sound loop or is played once?

there's a vid in the release post that shows you a happy birthday song being played (though I'm unsure if it's set on loop but would imagine after refreshing it would start playing again kev. http://xenforo.com/community/resources/notifications-powered-by-gritter.870/updates
 
The sound is only played once per notification, but it will certainly start playing again when the notification is refreshed.

The sound not looping is by design, but in theory if it was necessary then it could become an option in the next version.

In the meantime, you could configure it yourself to loop:

Here's the code in the GritterNotifications template:

Rich (BB code):
<xen:if is="{$notification.playsound}">before_open: function(){
$('body').append('<audio id="beforeSound" controls="controls" hidden="true" autoplay="true" loop="true"><source src="{$notification.sound}" type="audio/mpeg" /></audio>');
},</xen:if>

I've added the red text, this will make all sounds loop.

Please remember though: This template changes frequently between versions. Any changes you make to it will need to be reverted for future versions or you'll experience errors or lose functionality.

Now, one handy thing is, if you want several audible notifications (strongly suggest only one per page, or have a delay between audible notifications) with different loops, then just like you can use conditionals for many things in XenForo, you can with this too.

If you create a notification and you want its sound to loop, but other notifications to be normal you could do this:

Rich (BB code):
<xen:if is="{$notification.notification_id} == 1">
     <xen:if is="{$notification.playsound}">before_open: function(){
$('body').append('<audio id="beforeSound" controls="controls" hidden="true" autoplay="true" loop="true"><source src="{$notification.sound}" type="audio/mpeg" /></audio>');
},</xen:if>
<xen:else />
 
     <xen:if is="{$notification.playsound}">before_open: function(){
$('body').append('<audio id="beforeSound" controls="controls" hidden="true" autoplay="true" loop="false"><source src="{$notification.sound}" type="audio/mpeg" /></audio>');
},</xen:if>
</xen:if>

Where 1 is the ID of the notification you want to loop.

I haven't tested that, but it should work.
 
Back
Top Bottom