vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Private Message Sound Notification (https://vborg.vbsupport.ru/showthread.php?t=65570)

350Chevy 06-22-2004 08:14 PM

Quote:

Originally Posted by Spacey
is there a way to get this to work as well at the pop up message? Only the sound works when you get a pm on my site now :(


Double check your code. It works perfectly fine with the pop-up window. I have tested this on a few sites with zero hacks installed and on my main site with multiple hacks installed and the pop up message for new PM works perfectly fine. ;)

Make sure you're adding below pmpopup = $pmpopup, and not replacing it. Also make sure profile.php has the 'pmpopup' => INT.

Code:

        globalize($_POST, array('newstyleset' => INT, 'dst' => INT, 'showvbcode' => INT, 'pmpopup' => INT, 'pmsound' => INT, 'umaxposts' => INT, 'prunedays' => INT, 'timezoneoffset', 'startofweek' => INT, 'languageid' => INT, 'threadedmode' => INT, 'invisible' => INT, 'autosubscribe' => INT, 'options', 'modifyavatar'));
More than likely you have another hack installed that may have overwritten a piece of the popup message code or you replaced a line instead of added below. Either way this hack in no way shape or form if applied correctly henders the pmpopup. :)

mackers8923 07-10-2004 01:51 PM

* Installed

However, how would I go about getting the sound to play on my home portal page. Working fine on the forums page but it would be nice to have it playing on both..

I'm running VbPortal 3.0.0 Beta 2 & Vbulletin 3.0.3

350Chevy 07-10-2004 07:12 PM

I've never messed with vBPortal however it should be about the same as vBAdvanced. If your vBPortal calls for the navbar then it should already have the neccessary code to play the sound. If it does not call for the navbar template then you could simply add

Code:

$sound
at the top in your vBPortal template header or index template. You will have to copy the "/sounds" folder and all the wav files in the folder to your vbPortal folder (most likely the root of your website.)

Example: If you have your forum here: /home/www/forums. Your sound folder is here: /home/www/forums/sounds. You will have to copy that folder to /home/www so that you will also have a folder containing all the sounds called /home/www/sounds. That should do the trick. ;)

mackers8923 07-10-2004 08:25 PM

Hey it worked thank you very much, took all of 2 minutes to do.

Me is happy thanks again.....

350Chevy 07-12-2004 05:16 AM

Glad I could help and I'm very happy that you enjoy it.. :)

turbidblue 07-16-2004 11:27 PM

Okay so heres the deal, everything istalled fine, but,

some people can hear it, and others hear nothing...i dont even hear it. none of the members i tested with have it disabled...

i used the re-directing of the wav file from another server, cause my host doesnt allow sound files..

but the problem is (besides ME not hearing it) is that my member who did hear, it opened her windows media player and played the file...she said she got two pop ups, one for the notification of the PM and another that was a blank white page...

any thoughts on these problems???

350Chevy 07-17-2004 03:58 PM

Quote:

Originally Posted by turbidblue
i used the re-directing of the wav file from another server, cause my host doesnt allow sound files..

There in lies the problem. How are you trying to redirect? It's a bit strange that your host doesn't allow .wav files. I think I'd have to have a talk with my host if I were you. ;)

turbidblue 07-17-2004 04:02 PM

Hi,

I am using this redirect code for the wav file, i say wav file cause i am only using one..

$sound = iif($bbuserinfo['pmunread'], '<embed src="http://www.lssix.com/forums/sounds/message'.$srand_snd.'.wav" autostart="true" loop="0" hidden="true"></embed>');

mine looks like this

$sound = iif($bbuserinfo['pmunread'], '<embed src="http://www.washmeclean.com/downloads/sounds/message'.$srand_snd.'.wav" autostart="true" loop="0" hidden="true"></embed>');


any idea?

i am contacting my host to see if i can get 1 wav file to be accepted, to try and solve this :)

350Chevy 07-17-2004 04:15 PM

only one file? That could be it also. When the page loads it maybe looking for the other 9 wav files to play and not playing anything because there's no wav file. But it will play once it finally randomly hits that one wav file..

Since you're only using one wav file, instead of using:


$sound = iif($bbuserinfo['pmunread'], '<embed src="http://www.washmeclean.com/downloads/sounds/message'.$srand_snd.'.wav" autostart="true" loop="0" hidden="true"></embed>');

try using:

$sound = iif($bbuserinfo['pmunread'], '<embed src="http://www.washmeclean.com/downloads/sounds/message1.wav" autostart="true" loop="0" hidden="true"></embed>');

or change message1.wav to the name of the wav file you're using(testing) and see what happens. :)

350Chevy 07-17-2004 04:17 PM

Also, are you sure the file is at http://www.washmeclean.com/downloads.../message1.wav? I could not find a folder on www.washmeclean.com called downloads/sounds?


All times are GMT. The time now is 03:28 AM.

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.01110 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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