Viernes, 12 Marzo 2010
Viviendo Linux
Bienvenido(a), Invitado(a)
Por favor Ingresa o Regístrate.    ¿Perdiste tu contraseña?
bug report and question!
(1 viendo) 1 Invitado
Ir al fondoPublicar nuevo temaPublicar respuesta
TEMA: bug report and question!
#160
Alex

bug report and question! hace 3 Meses  
Hello guys

thanks for the useful plugin! I want to give some bug report. the plugin mess all my content... break some image tags and make the whole text in a hotlink....

i suppose its not so hard for you to fix it!

i attached two screens to be more easy for you!

this is how it should be:
prikachi.com/files/1208984b.png
this is the bad result:
prikachi.com/files/1208985L.png

and the question is... how can i clean the database from the translation which did the plugin?
 
Reporte guardado Reporte guardado
  Reply Quote
#162
medisoft
Moderador
Posts: 163
graph
Usuario fuera de línea Perfil
Re: bug report and question! hace 3 Meses Karma: 2
Hi! which version do you have? can you post the code of both pages, specially the part of the image?
 
Reporte guardado Reporte guardado
 
  Reply Quote
#165
Vol666
Recién llegado
Posts: 10
graphgraph
Usuario fuera de línea Perfil
Re: bug report and question! hace 3 Meses Karma: 0
version: jfgoogletranslator-1.1.zip - 14.54KB

default(bg): url
tr-to-english: url
 
Reporte guardado Reporte guardado
 
última modificación: 11-12-2009 09:35:59 Por Vol666.
  Reply Quote
#166
medisoft
Moderador
Posts: 163
graph
Usuario fuera de línea Perfil
Re: bug report and question! hace 3 Meses Karma: 2
thanks! I think I can fix this, I will post a bugfix here, and if it works, I will make a new sub release
 
Reporte guardado Reporte guardado
 
  Reply Quote
#167
medisoft
Moderador
Posts: 163
graph
Usuario fuera de línea Perfil
Re: bug report and question! hace 3 Meses Karma: 2
can you test this:

edit yourjoomlainstall/plugins/system/jfgoogletranslator.php

in line 550 you should see something like this:
$db->getEscaped(utf8_encode(($narticle->$field)), true),
replace with:
$db->quote(utf8_encode(($narticle->$field))),

and in line 552
$db->getEscaped($jftarticle->$field, true),
replace with:
$db->quote($jftarticle->$field),

and on line 549
VALUES($dstlangid, $jftarticle->id, 'content', '{$field}', '%s', '%s', '%s', NOW(), 63, %d)",
replace with:
VALUES($dstlangid, $jftarticle->id, 'content', '{$field}', %s, '%s', %s, NOW(), 63, %d)",


and tell me if that works
 
Reporte guardado Reporte guardado
 
  Reply Quote
#168
Vol666
Recién llegado
Posts: 10
graphgraph
Usuario fuera de línea Perfil
Re: bug report and question! hace 3 Meses Karma: 0
line 550 - edited
line 552 - was empty
line 549 - was on 547

however after edit:

Parse error: syntax error, unexpected ')' in /home/himmania/himmania.com/public_html/plugins/system/jfgoogletranslator.php on line 551


 
Reporte guardado Reporte guardado
 
última modificación: 12-12-2009 04:53:23 Por Vol666.
  Reply Quote
Ir al inicioPublicar nuevo temaPublicar respuesta