Page 1 of 1

Mod Vozme_BBCode_Mod_0_1_0

Posted: 25 Jul 2010, 22:59
by Lucky
Vozme_BBCode_Mod_0_1_0
License: GPL3.0
Autor: Lucky
Requirement: phpBB 3.0.7PL1 | PortalXl 5.0 Premod & Plain


Mod BBCode to insert your own text and listen, you can choose male or female voice, code bbcode USER_LANG provides the variable so that it automatically set the user language, besides adding BBCode is provided 's adding a new definition of language in the directory language / en / common.php.

Installing BBCode in ACP / Contents / BBCode / Add New BBCode

BBCode:

Code: Select all

[vozme={SIMPLETEXT1}]{SIMPLETEXT2}[/vozme]
HTML:

Code: Select all

<table style='margin:0;width:450px;min-height:100px;border:1px dashed #740000;'>
  <tr>
    <td align='middle' bgcolor='#3333FF' valign='center' width='1%'><br />
       <FONT color='#ffffff' size='+7'><b>! </b></font><br /></td>
    <td valign='top' cellpadding="5" style='background:#FFFFFF' ><div id="{SIMPLETEXT1}">{SIMPLETEXT1}
</div></td>
  </tr>
</table>

<script type="text/javascript" src="http://vozme.com/get_text.js"></script>
<button style="background-color:white; 
 background-image:
 url(http://vozme.com/img/megaphone40x40w.gif); 
 background-position: left center; 
 background-repeat:no-repeat; 
 height: 48px; font-size:70%; 
 padding:4px 4px 4px 44px;" 
 onclick="get_id('{SIMPLETEXT1}','{L_USER_LANG}','{SIMPLETEXT2}');">
{L_VOZME_BUTTON}</button>
<br><br></br>
Helpline:

Code: Select all

[vozme={your text}]{male voice=ml - female voice=fm}[/vozme]

Language changes

Open file language/en/common.php

Search:

Code: Select all

?>
Add before:

Code: Select all

// Mod_Vozme BBCode

$lang = array_merge($lang, array(
	'VOZME_BUTTON'			=> '<strong>Listen to the text.</strong><br>The popup must be enabled!</br>',

));

Demo:

My board

Example:

Code: Select all

[vozme=autore della mod Lucky]ml[/vozme]