1
Hi, I have a serius issue with XLanguage, and its driving me crazy.
I programmed my own module to publish news in the homepage.
I created a simple editor to write the news and add a photo to the text.
It seems I can use Xlanguage without problem, I mean, I can write the new in two languages and its displayed without problem in the homepage.
But whenever I wanna edit this new, the texts is changed and pieces of code from the Xlanguage module are inserted, for example:
"Conscientes de la situación en la que nos encontramos, las instituciones estatales y autonómicas dedicadas a la promoción exterior se han comprometido, en un acuerdo alcanzado en el pleno del Consejo Interterritorial de Internacionalización (CII), a elaborar un Plan Integrado de Apoyo a las Exportaciones. El objetivo es el de coordinar y aprovechar d ipts/tiny_mce/themes/advanced/langs/en.js" type="text/javascript"> e la manera más efectiva sus actuaciones y garantizar que la salida al exterior de las empresas españolas sea una de las palancas que impulsen la recuperación económica."I really dont know how to solve it, and ithis is not the only problem this module is causing me. Im suffering the most weird experiences in my life as a programmer, for example, using a counter inside a loop whose value changes from 1 to 4 just after reading an array with the [en] [/en] brackets.
This is the code:
$sumador=1;
echo $query;
while($myrow = $xoopsDB->fetchArray($query) ) {
echo ' | '.$myrow['title'].' | Bloque de pagina principal | .$myrow['bid']. '">Editar | |
';
//echo ' | '.$myrow['name'].' | Bloque de pagina principal | Editar | |
';
$hay = 1;
$sumador= $sumador+1;
So the instruction that reads from $myrow['title'] increments
sumador from 1 to 4.
Its completly crazy I know, but it happens, and it happens only if that strings contains language brackets.
HELP!