The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
play a sound when a forum is loaded
is there a way so that i can play a sound whenever a forum is loaded
defining through admin panel which sound file is for the forum or sub forum |
#2
|
|||
|
|||
I would hate hearing a sound every time a page loads, especially if I frequented the forum & browsed/posted alot.
|
#3
|
|||
|
|||
Quote:
i seeking an idea admin cp ll have option to set a sound file for each forum so when a user loads a forum it will see audio and play it --------------- Added [DATE]1400788640[/DATE] at [TIME]1400788640[/TIME] --------------- i have some code like this Code:
<script type="text/javascript" src="src/java.js"></script> <script type="text/javascript"> some JS </script> and have some DIVs to include HTML Code:
<div class="jp-progress"> <div class="jp-seek-bar"> <div class="jp-play-bar"></div> Some Text </div> </div> |
#4
|
||||
|
||||
You're only likely to chase away your own visitors with this
|
#5
|
|||
|
|||
yes
conditions come true false based on purpose if i go to a bar i have to accept there'll be music chill etc and if i don't like that i should not go there |
#6
|
||||
|
||||
Are you okay when your music stops/cganges/reloads, everytime you sip your drink, move slightly, ask the bartender something, pay?
|
#7
|
|||
|
|||
Quote:
i am a teacher i ll not allow non students (of mine) to enter into forum my students know they are visiting to listen Not sure why but i had the same situation on a free board script personally i think public forums are crap a very big WHY for every question that do not fits to marketing seo traffic |
#8
|
||||
|
||||
It is your forum, if you want to kill all of the traffic going to it, that's your choice.
|
#9
|
||||
|
||||
Please don't play sound on your forum. Please. Pretty please.
|
#10
|
|||
|
|||
Although, I completely agree with the other board members on the topic, you cannot make that determination unless you try it yourself. This is just to give you a 'possibility' as you asked -- something you can do yourself. It will not work with most older browsers, with older browsers it will either not display, or not play 'mp3' audio. See Google "HTML5 <audio>" for details ...
Put your "renamed" MP3 files in a directory named "music". For example: "/music/music_XX.mp3". Where "XX" is the "forum ID". Place code before or after the footer variable ({vb:raw footer}) in the "FORUMDISPLAY" template HTML Code:
<!-- HTML5 solution --> <audio controls autoplay id="tbworld_audio" src="{vb:raw vboptions.bburl}/music/music_{vb:raw forumid}.mp3" type="audio/mpeg"></audio> <audio controls autoplay id="tbworld_audio" src="{vb:raw vboptions.bburl}/music/music_{vb:raw forumid}.ogg" type="audio/mpeg"></audio> <!-- Opera Next --> <!-- HTML5 --- Pre-Adjust volume level --> <script> var AudioPlayer = document.getElementById("tbworld_audio"); AudioPlayer.volume = 5.5; <script> <!-- or --> <!-- Embedded Solution --> <embed src="{vb:raw vboptions.bburl}/music/music_{vb:raw forumid}.mp3" type="audio/mpeg" width="120" height="35" autostart="true" loop="false"> This code will play a unique mp3 file given a "unique forum ID". Nothing fancy. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|