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

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
  #12  
Old 08-22-2008, 06:03 PM
RedeemedWarrior RedeemedWarrior is offline
 
Join Date: Apr 2008
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'll try it out
Reply With Quote
  #13  
Old 08-22-2008, 06:11 PM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed works perfectly.

hope you can something for male and female voice. if the gender of the user is male it will talk to male voice and it it's female user it will talk to female.
Reply With Quote
  #14  
Old 08-22-2008, 06:38 PM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i added it and it works great
Reply With Quote
  #15  
Old 08-22-2008, 08:40 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want a male voice you edit

<a href="javascript:void(0);"
onclick="get_id('post_message_$post[postid]','en','fm');">

to

<a href="javascript:void(0);"
onclick="get_id('post_message_$post[postid]','en','ml');">

male-female on each user could be done using profile Fields where they pick male (ml) or female (fm). I'll sort it out over weekend if i get time.
Reply With Quote
  #16  
Old 08-22-2008, 08:41 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Defkalion View Post
What languages does this work with?
I have only tested english.
Reply With Quote
  #17  
Old 08-22-2008, 08:56 PM
marc2005 marc2005 is offline
 
Join Date: Mar 2007
Location: Deutschland<->Shanghai
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's great!
Reply With Quote
  #18  
Old 08-22-2008, 09:08 PM
BucWiLd's Avatar
BucWiLd BucWiLd is offline
 
Join Date: Jun 2008
Location: pa, usa
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i kinda like the female
Reply With Quote
  #19  
Old 08-22-2008, 09:38 PM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the female is more clear thats why i picked it
Reply With Quote
  #20  
Old 08-23-2008, 12:20 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Defkalion View Post
What languages does this work with?
looks like it works with 6 languages. to change the language, the code you put in postbit and postbitlegacy, alter the:

Code:
'en','fm');">
part. here is what will work so far:

English = en
Spanish = es
Italian = it
Hindi = hi
Portugues = pt
Catala = ca

so if you want spanish, your code should look like:

Code:
 'es','fm');">
thanks for the little addon.

installed.
Reply With Quote
  #21  
Old 08-23-2008, 12:50 AM
pammy pammy is offline
 
Join Date: Oct 2007
Location: New Zealand
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG..I like this TY
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 02:28 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.08405 seconds
  • Memory Usage 2,307KB
  • 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
  • (8)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
  • (3)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