PDA

View Full Version : problem with comments (3 languages)


de-ivo
05-18-2007, 12:40 PM
Hi there,

First of all, thanks a lot for this great application! I enjoy especially the possibility to easily create a multi-lingual photo blog. Well, now everything was working great with the index page. But now, as I'm trying to get comments to work in three languages, I'm encountering some trouble:
There seems to be a maximum of two languages possible for the comments page. Has anybody noticed this before or knows about it? And does anybody know how to fix this?

Thanks in advance,
Ivo

P.S. You'll find the photo blog I'm talking about here: http://photo.naepflin.com/blog

Dennis
05-18-2007, 02:03 PM
goto index.php in the root of your site.

Lookup this line (somewhere near line 301):

if ($language_full==$cfgrow['altlangfile'] && file_exists("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html")) $tpl = file_get_contents("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html");


Change this to:


if ( file_exists("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html")) $tpl = file_get_contents("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html");


See if that solves the problem. Please report back here if it does. (I'm pretty sure this will work and yes, you have found a bug. Thanks for that!!)

de-ivo
05-18-2007, 02:27 PM
Great, it does work! Thank you!