vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - 'Text to Speech' user posts (https://vborg.vbsupport.ru/showthread.php?t=188839)

Hostboard 08-23-2008 01:02 AM

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

Installed.

TimberFloorAu 08-23-2008 01:16 AM

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

TimberFloorAu 08-23-2008 02:27 AM

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

TimberFloorAu 08-23-2008 03:25 AM

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

blackwolf1962 08-23-2008 04:00 AM

installed thank you works well

GrandHolyKing 08-23-2008 10:17 AM

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.

noj75 08-23-2008 11:52 AM

Quote:

Originally Posted by GrandHolyKing (Post 1605043)
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!

GrandHolyKing 08-23-2008 12:07 PM

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)

C.Birch 08-23-2008 12:10 PM

Quote:

Originally Posted by noj75 (Post 1605082)
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>

C.Birch 08-23-2008 12:11 PM

Quote:

Originally Posted by GrandHolyKing (Post 1605089)
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.


All times are GMT. The time now is 04:20 PM.

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.01163 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete