vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Integration with vBulletin - Sound notification (https://vborg.vbsupport.ru/showthread.php?t=176171)

karim004 04-14-2008 10:00 PM

Sound notification
 
a audible alert [ You've got mail ] will let you know that you have recieved a PM. also Until you open a pm, you are notified each time by a sound that plays once when you load a page.

open template navbar and find :
Quote:

<if condition="$show['notifications']">
add after
Quote:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Soundnotification.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Soundnotification.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
right click and save this file Audible Alert
upload where you want just change the red text {{{ Soundnotification.swf }} with the full link

SwollenCranium 04-15-2008 01:01 AM

"also does not stop"

Wow ... .no thanks.

Rickeo 04-15-2008 01:19 AM

lmao :) nice but yea not stop

youradhere4222 04-15-2008 02:40 AM

I'd definitely install if you made it so that it only made a sound once if they were on and all of a sudden received a private message.

Also, a *ding* would be much more pleasant than the traditional 'AOL welcome'.

Magnumutz 04-15-2008 06:31 AM

Can the flash be modified to say "You've got mail" only once per page load? And this, only after the page finished loading...?

Jasem 04-15-2008 07:28 PM

Thank you very much, :)

J98680Bxxxxx 04-15-2008 08:57 PM

Installed, works fine. Audio playing only once, when the page is loading (and on page change).

Thanks karim004

karim004 04-15-2008 09:30 PM

Quote:

Originally Posted by Magnumutz (Post 1490983)
Can the flash be modified to say "You've got mail" only once per page load? And this, only after the page finished loading...?

Magnumutz the sound plays once when you load a page.untill you read your pm

chrisdaman77 04-15-2008 10:47 PM

Dang you beat me to it. I had this on my board for a while now and was going to put it out this weekend. Although mine only runs one line of code but then again I am simple minded :rolleyes: Nice job.

Magnumutz 04-16-2008 07:16 AM

Quote:

Originally Posted by karim004 (Post 1491584)
Magnumutz the sound plays once when you load a page.untill you read your pm

Ohhh, i thought that it would play like a loop... until you read it :p
Thanks for clearing that out.
Installed :D

avitor 04-18-2008 10:54 AM

where to look for this ?

open template navbar and find :

<if condition="$show['notifications']">
thank

karim004 04-18-2008 11:10 AM

Quote:

Originally Posted by avitor (Post 1493654)
where to look for this ?

open template navbar and find :

<if condition="$show['notifications']">
thank

go to template navbar and Search in Template : welcome
and check the 5 th ln
Quote:

<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['notifications']">

avitor 04-18-2008 11:57 AM

thanks karim004

princeedward 04-25-2008 08:36 AM

i don't know but i guess this mod is not workin' to vB3.6.8 PL2...or is it?...tried to find this to my navbar...but nothing to found...

<if condition="$show['notifications']">

so i add the code below here....

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>


it work or say...even if i don't have a pm messages to read...it played the swf sound to every page refresh...

please advice for any help...

thanks and best regards...

;)

MR.BOSS 04-25-2008 08:56 AM

i dont have this <if condition="$show['notifications']"> in vb 3.7 rc4

princeedward 04-30-2008 06:34 AM

Quote:

Originally Posted by princeedward (Post 1498861)
i don't know but i guess this mod is not workin' to vB3.6.8 PL2...or is it?...tried to find this to my navbar...but nothing to found...

<if condition="$show['notifications']">

so i add the code below here....

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>


it work or say...even if i don't have a pm messages to read...it played the swf sound to every page refresh...

please advice for any help...

thanks and best regards...

;)

BUMP!!!

Keyser S?ze 05-07-2008 05:38 PM

i would definatly go for this if it played just once per new PM

MiahBeSmokin420 05-09-2008 01:39 AM

if you want something more fun for a sound

you should use this

http://StillFallinEntertainment.com/...s/MailMofo.mp3

Take it as you wish it will always be there but do not link to my file or i will just rename it and wont tell yall what the file name is.

So take the file if you want but let me catch one person accually linking it from my site meaning that you did not host it on your server and you are just adding my link to your player then yes i will remove it
and i do watch my file stats very closely so just download it and save it on your server.

Enjoy

Nice Idea By The way

Also if you are going to use the mp3 instead of the flash you will need a different code

that code is:
HTML Code:

<object id="player" height="0" width="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <param name="URL" value="MailMofo.mp3">
    <param name="uiMode" value="full">
    <param name="ShowControls" value="false">
    <param name="ShowStatusBar" value="false">
    <param name="ShowDisplay" value="false">
   
    <embed type="application/x-mplayer2"
        pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
        SRC="MailMofo.mp3"
        name="player"
        width="0"
        height="0"
        AutoStart="1"
        showcontrols="0"
        showstatusbar="0"
        showdisplay="0"
uiMode="full"
visual="1">

    </embed>
</object>


MiahBeSmokin420 05-09-2008 01:42 AM

Quote:

Originally Posted by princeedward (Post 1503062)
BUMP!!!

your problem is because the notification crap was not added until vb 3.7.0 and up

anything less then 3.7.0 will not have the notifications so there for you would not be able to use this

but i could be wrong cause i updated from 3.6.7 to 3.7.0

but i really don't think that the notifications are in there i think its only a 3.7.0 and up thing

DieselMinded 05-09-2008 04:24 AM

Also if you are going to use the mp3 instead of the flash you will need a different code

that code is:
HTML Code:

<object id="player" height="0" width="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <param name="URL" value="MailMofo.mp3">
    <param name="uiMode" value="full">
    <param name="ShowControls" value="false">
    <param name="ShowStatusBar" value="false">
    <param name="ShowDisplay" value="false">
   
    <embed type="application/x-mplayer2"
        pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
        SRC="MailMofo.mp3"
        name="player"
        width="0"
        height="0"
        AutoStart="1"
        showcontrols="0"
        showstatusbar="0"
        showdisplay="0"
uiMode="full"
visual="1">

    </embed>
</object>

[/QUOTE]


Works in FF but not IE

MiahBeSmokin420 05-09-2008 05:48 AM

well ie sucks anyways

but yes it dose work with IE7 i have tested it cause thats the only player that will work with both and have a visulizer (if enabled)

you are probally just missing the windows media player plugins for IE

but anyways who cares about IE ?? Its horriable and should have never been invented

i tell all my members that use IE to get FF

and i even have a message displayed to members who use IE to get FF and give them a dl link lol and its from google adsence

trust me i have been making websites for a few years now with html xhtml and all that crap and vb

personly i can code a site perfectly and look at it in FF and it looks the way its suposed to
but then if you look at it in IE its just jacked up

but anyways back on subject try finding plugins for WMP for IE that should make it work for you

DieselMinded 05-09-2008 01:56 PM

Im with you bro on FF i tell my members all the time , sadly my Analytics says i have double the members using IE than FF so i have to find a happy medium .

And this sound plays needs to only play on forum home as it triggers on everypage

Thread, then again on inbox , then again on the message

it keeps playing 3 times at leaset as the notification doesnt go away when your click on notifications in the nav bar you have to listen to it untill you read all your messages ect..

BLAHHHHHHH !

Find a code that works on IE and FF out the box and only plays once on initial notification and im there dude

MiahBeSmokin420 05-09-2008 06:34 PM

Quote:

Originally Posted by DiesellMinded (Post 1513782)
Im with you bro on FF i tell my members all the time , sadly my Analytics says i have double the members using IE than FF so i have to find a happy medium .

And this sound plays needs to only play on forum home as it triggers on everypage

Thread, then again on inbox , then again on the message

it keeps playing 3 times at leaset as the notification doesnt go away when your click on notifications in the nav bar you have to listen to it untill you read all your messages ect..

BLAHHHHHHH !

Find a code that works on IE and FF out the box and only plays once on initial notification and im there dude



well here is what you need to make it only play on the forum home page

put before the code
<if condition="THIS_SCRIPT === 'index''">

put after the code
</if>


if you want it to play on vb advanced portal as well then use this before the code

<if condition="THIS_SCRIPT === 'index' OR THIS_SCRIPT === 'adv_index'">

but as i said it should work with IE and FF
as i have test it on both and it works
so you probaly just need a windows media player plugin for it to work on IE
most people have that plugin so idk what else to say
thats the only media player that i have found to work on both IE and FF
so thats all i can help you with im sorry

Keyser S?ze 05-13-2008 05:24 PM

yea but question is will that make it only play once

right now, u get a PM the PM popup only comes one time per new PM

T2L 05-15-2008 10:13 AM

I am NEW here - but im keen to test this out - and I require your assistance:
I am unsure of where to place the file within the directory structure on the server

Quote:

{{{ Soundnotification.swf }} with the full link
can you give me an example of 'the full link' (is it a path to the file? ) and location for the actual swf file.
Thank you

joopster 05-15-2008 04:11 PM

i have 3.7 and no instance of the notifications when doing a search. anywhere else to add?

avitor 05-15-2008 07:49 PM

i tr whet karim varsion and is works perfectly on vb 3.7.0
no change nead to code
thanks again

joopster 05-16-2008 01:04 PM

I have 3.7 and not even in the default template do I have that phrase.

ShadowOne 05-16-2008 01:37 PM

Okay i have a fix for everyone :D...

add this

PHP Code:

<if condition="$show['notifications']"

right before this

PHP Code:

<if condition="$show['pmstats']"

then add this

PHP Code:

</if> 

after this

PHP Code:

$vbphrase[private_messages_nav]</phrase></if> 

then add the music code shown.....directly after


PHP Code:

<if condition="$show['notifications']"

Note...this will also make the private message part go away if there are no PM's and it will make the sound on every REFRESH until PM is read...:D

ShadowOne 05-17-2008 02:08 PM

did that work for everybody?

T2L 05-17-2008 10:23 PM

can you give me an example of 'the full link' (is it a path to the file? ) and location for the actual swf file.
Thank you

karim004 05-19-2008 08:12 PM

Quote:

Originally Posted by T2L (Post 1520303)
I am NEW here - but im keen to test this out - and I require your assistance:
I am unsure of where to place the file within the directory structure on the server



can you give me an example of 'the full link' (is it a path to the file? ) and location for the actual swf file.
Thank you

ok here is a easy example if your forum : www.t2l.com/forum / upload the swf file in your forum folder
so the full link = http://www.t2l.com/forum/Soundnotification.swf

revmitchell 05-22-2008 04:07 AM

I installed this and the sound works but I get this above the navbar:


Quote:

You last visited: 7 Hours Ago at 05:28 PM object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
What is the problem

revmitchell 05-25-2008 07:25 PM

Bump

paco58 06-07-2008 09:27 AM

Installed

Someone has the message for pm in Spanish

Thank you advanced

karim004 06-10-2008 10:26 AM

Quote:

Originally Posted by revmitchell (Post 1527554)
I installed this and the sound works but I get this above the navbar:




What is the problem

a missing tag for object ! maybe you forgot a <

PGAmerica 09-14-2008 06:51 PM

I would use this in a heartbeat if there was an option for the user to turn it off.

abouahmed 09-18-2008 10:18 PM

thanks karim

Installed, works fine.

tecnozul 10-16-2008 03:48 AM

is excelent, thanks :)

Alfa1 10-24-2008 01:39 AM

This is excellent!


All times are GMT. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01368 seconds
  • Memory Usage 1,848KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (5)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete