The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
'Text to Speech' user posts Details »» | |||||||||||||||||||||||||
With this very easy mod you will be able to add 'Text to Speech' support to your forum posts so users may have a users post read out to them.
To install In your 'postbit' and 'postbit_legacy' templates find: Code:
<!-- controls --> Code:
<a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','en','fm');"> <img src="images/misc/speech.png" alt="" width="123" height="37" border="0" style="margin-right:0.4em;"/></a> In your headinclude template find: Code:
<script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script> Code:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script> Upload the added image to your images/misc/ folder Attachment 85889 UPDATE: To have a smaller pop up window Upload the JS from the zip below to your forums root folder and do the following edit In your headinclude template find: Code:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script> Code:
<script type="text/javascript" src="get_text.js"></script> Show Your Support
|
Comments |
#22
|
||||
|
||||
This is awsome! Just wish I did not have to rely on another sites services/reliability.
Installed. |
#23
|
||||
|
||||
AWESOME MOD !!!
Can we resize the Javascript window, so it just shows the player, and no address bar etc? Also look forward to male/female choices |
#24
|
||||
|
||||
Gday Guys, I have added multi language support for this ( just variation on code )
Code:
<!--added text to speech--> <a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','en','fm');"> <img src="images/misc/speak_en.png" alt="Speak English" width="72" height="22" border="0" style="margin-right:0.4em;"/></a> <a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','es','fm');"> <img src="images/misc/speak_sp.png" alt="Speak Spanish" width="72" height="22" border="0" style="margin-right:0.4em;"/></a> <a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','it','fm');"> <img src="images/misc/speak_it.png" alt="Speak Italian" width="72" height="22" border="0" style="margin-right:0.4em;"/></a> <a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','hi','fm');"> <img src="images/misc/speak_in.png" alt="Speak Indian" width="72" height="22" border="0" style="margin-right:0.4em;"/></a> <!--end text to speech--> |
#25
|
||||
|
||||
just had one of our members post thi issue, im sure her javascript possibly needs updating.
Any suggestions? Quote:
|
#26
|
|||
|
|||
installed thank you works well
|
#27
|
|||
|
|||
Great addition. Is there anyway to prevent it opening a new window every time a post is translated? Such as only opening one window and reusing it when converting a post to speech.
|
#28
|
|||
|
|||
Quote:
I do though agree with the above. Can this be implimented without the use of a new window. Such as a hidden div or with some AJAX? Hope this can be done. Installed! |
#29
|
|||
|
|||
Also, I had to edit your code in order to display a custom button to match in with the forum.
If anyone needs to do the same, change these values to those of your forum buttons (I used the custom english button from TimberFloorAu a few posts up, lovely work by the way) Change the red values to match your own buttons as it resizes a custom image up to those values. Code:
<a href="javascript:void(0);" onclick="get_id('post_message_$post[postid]','en','fm');"> <img src="images/misc/speech.png" alt="" width="123" height="37" border="0" style="margin-right:0.4em;"/></a> Very promising mod, nominated for MOTM but I need to sort the browser issue. Also if using any custom button you or someone else makes, remember to rename it to speech.png (Or change the above code to match your image location) |
#30
|
|||
|
|||
Quote:
Just pulled there JS file and edited it so the popup window is alot smaller. Upload the JS from the zip below to your forums root folder and do the following edit In your headinclude template find: Code:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script> Code:
<script type="text/javascript" src="get_text.js"></script> |
#31
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|