'Text to Speech' user posts
<div id="moddesc">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:
<div style="margin: 5px 10px;"> <div class="smallfont" style="margin-bottom: 2px;">
PHP Code:
Code: <!-- controls -->
Add below:
<div style="margin: 5px 10px;"> <div class="smallfont" style="margin-bottom: 2px;">
PHP Code:
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:
<div style="margin: 5px 10px;"> <div class="smallfont" style="margin-bottom: 2px;">
PHP Code:
Code: <script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
Add above:
<div style="margin: 5px 10px;"> <div class="smallfont" style="margin-bottom: 2px;">
PHP Code:
Code: <script type="text/javascript" src="http://vozme.com/get_text.js"></script>
--------------------------------------
Upload the added image to your images/misc/ folder
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:
<div style="margin: 5px 10px;"> <div class="smallfont" style="margin-bottom: 2px;">Code:
PHP Code:
<script type="text/javascript" src="http://vozme.com/get_text.js"></script>
To
<div style="margin: 5px 10px;">
PHP Code:
Code: <script type="text/javascript" src="get_text.js"></script>
Thats all, A demo can be found at
http://www.yourlsl.com/forums/
Download Now