Hi C.Birch,
This is a great add-on for any forum which wants to offer
"accessibility" to
visually impaired people.
I have done some
minor improvements to the code you have posted to make it more
usable with different themes/skins:
Instead of:
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>
Use this:
Code:
<a href="javascript:void(0);"
onclick="get_id('post_message_$post[postid]','en','fm');">
<img src="$stylevar[imgdir_button]/speech.png" alt="text to speech" border="0" style="margin-right:0.4em;"/></a>
There are 2 differences here:
1. The path defined is for the
SKIN IN USE, so that the
speech.png button would have to be placed in the themes "buttons" folder: images/theme_name/butons/ this will allow users to
customize the button according to their theme designs.
2. There are no width or height attributes used in the code since this is very restrictive code and button sizes can differ according to forum 'looks'
Hope you find it beneficial,
Thanks once again for this cool mod,
Aku