Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Sound on PM Message Details »»
Random Sound on PM Message
Version: 1.00, by DjTaz DjTaz is offline
Developer Last Online: Oct 2011 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-18-2006 Last Update: Never Installs: 9
Template Edits
Additional Files  
No support by the author.

What is this ?
This is a little hack that plays random sounds for users that have unread private messages. There are presently 10 sounds.

Modifications ?
1 template modification
1 folder upload (10 sound files)

Some History
I had a similar hack on 3.0.9 and when i went to search for it on 3.5 i discovered there was only one similar hack with only one sound and it used the embedding system which microsoft seem to dislike as it pops up an annoying activex window, so i did some research and came up with this.

What i cant do
I havent looked into making plugins and all that yet, so if someone else wants to go away and do as they wish with this to make it easier for everyone , please feel free, the easier things are for people the better.

ENOUGH OF THIS CHAT, WHAT DO I DO !!
ok,ok, heres what to do :


In the Navbar Template Find :
Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 

2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
below it add :
Code:
<!!-- RANDOM PM SOUNDS FOR UNREAD PM [DJTAZ] --!!>
<if condition="$vbulletin->userinfo[pmunread]>0">
<SCRIPT LANGUAGE="JavaScript">
	var p = 10; 
	var whichSound = Math.round(Math.random()*(p-1));
document.write('<bgsound src="sounds/message'+whichSound+'.wav" autostart="true" loop="0" hidden="true">');
</script>
</if>
<!!-- RANDOM PM SOUNDS FOR UNREAD PM [DJTAZ] --!!>
Save and close the template , upload the sounds folder to your forum root , Click and your done - its simple enough as it stands really.


Support:
I will do my best to support this hack if there are any troubles , though i dont invisage any, but from today , i'll be on holidays for 2 weeks , and i may not have net access. Ill check things after that. Please do not ask for support if you havent clicked INSTALL

AfterThought :
After i did this thread i noticed that the 3.0.9 version was ported by paul and this version has an option to disable PM sounds - you can find it here :https://vborg.vbsupport.ru/showthrea...hlight=pmsound - its an excellent hack if you want that option

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-19-2006, 09:34 AM
NokStar NokStar is offline
 
Join Date: Apr 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Thank you!
Reply With Quote
  #3  
Old 05-19-2006, 06:36 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking good. Thanks!
Reply With Quote
  #4  
Old 05-19-2006, 07:46 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone clicking INSTALL ?
Reply With Quote
  #5  
Old 05-19-2006, 07:50 PM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be tuned on or off by the user though? Handy if lets say they are in work and browsing the Forum.

Cheers.
Reply With Quote
  #6  
Old 05-19-2006, 07:53 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope sorry - but the original hack that got me wanting this back on my boards can be turned off , i just didnt realise it was ported until after i did this up - the link is above to pauls port of the vb3 original hack.

(you can turn volume down if ur in work )
Reply With Quote
  #7  
Old 05-19-2006, 08:59 PM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok mate......one more question.

is it possbile to have it simply play a random wav file instead of ones only named message1.wav, meassge2.wav?

Cheers.
Reply With Quote
  #8  
Old 05-21-2006, 02:50 AM
Amman-DJ.CoM's Avatar
Amman-DJ.CoM Amman-DJ.CoM is offline
 
Join Date: May 2006
Location: Athens
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unfortunetly Didn't Work With Me

Destroied The NavBar Completly
Reply With Quote
  #9  
Old 05-21-2006, 04:19 AM
Dr.Viggy Dr.Viggy is offline
 
Join Date: Apr 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amman-DJ.CoM
unfortunetly Didn't Work With Me

Destroied The NavBar Completly
same here
Reply With Quote
  #10  
Old 05-21-2006, 05:29 AM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amman-DJ.CoM
unfortunetly Didn't Work With Me

Destroied The NavBar Completly

Have u got other hacks on the profiles or the navbar ? What version of vBulletin are you running ?

Have you tried it without the :
<!-- RANDOM PM SOUNDS FOR UNREAD PM [DJTAZ] --!>
at the top and bottom ? (that caused my navbar to go strange the first time for some reason)

Is the hack in the place i said ? and if so,have you tried moving it about a bit - the very end of navbar may also work for you.

Just some suggestions - hopefully some will work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05249 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete