Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
'Text to Speech' user posts Details »»
'Text to Speech' user posts
Version: 1.01, by C.Birch C.Birch is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.2 Rating:
Released: 08-21-2008 Last Update: 08-22-2008 Installs: 66
Template Edits
Re-useable Code Translations  
No support by the author.

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 -->
Add below:
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>
Add above:
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>
To

Code:
<script type="text/javascript" src="get_text.js"></script>
Thats all, A demo can be found at http://www.yourlsl.com/forums/

Show Your Support

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

Comments
  #22  
Old 08-23-2008, 01:02 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awsome! Just wish I did not have to rely on another sites services/reliability.

Installed.
Reply With Quote
  #23  
Old 08-23-2008, 01:16 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 08-23-2008, 02:27 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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-->
New images attached
Reply With Quote
  #25  
Old 08-23-2008, 03:25 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just had one of our members post thi issue, im sure her javascript possibly needs updating.

Any suggestions?

Quote:
A pop up window comes up fine, but then the post I'm looking at refreshes and I get a message saying that my browser can't display that page - operation aborted and then the post disappears
Reply With Quote
  #26  
Old 08-23-2008, 04:00 AM
blackwolf1962 blackwolf1962 is offline
 
Join Date: Sep 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thank you works well
Reply With Quote
  #27  
Old 08-23-2008, 10:17 AM
GrandHolyKing GrandHolyKing is offline
 
Join Date: Nov 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 08-23-2008, 11:52 AM
noj75 noj75 is offline
 
Join Date: Nov 2004
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrandHolyKing View Post
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.
Great work. Nominated for MOTM.

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!
Reply With Quote
  #29  
Old 08-23-2008, 12:07 PM
GrandHolyKing GrandHolyKing is offline
 
Join Date: Nov 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
In my case the values were changed to 61 and 21 respectively.

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)
Reply With Quote
  #30  
Old 08-23-2008, 12:10 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by noj75 View Post
Great work. Nominated for MOTM.

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!
I'm sure someone will work that part out.

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>
To

Code:
<script type="text/javascript" src="get_text.js"></script>
Reply With Quote
  #31  
Old 08-23-2008, 12:11 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrandHolyKing View Post
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>
In my case the values were changed to 61 and 21 respectively.

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)
width="123" height="37" can be removed from the code, but its always better to have it in there.
Reply With Quote
Reply

Thread Tools

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 11:23 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.04798 seconds
  • Memory Usage 2,313KB
  • 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
  • (11)bbcode_code
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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