-
AuthorPosts
-
deane Friend
deane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
November 22, 2012 at 3:01 pm #182494Hi,
I trying to make the JA Slideshow multilingual with FaLang. When I enter the translations in the description field and save it, there are magic quotes added – which stops the translation from working.
Example:
becomes after saving:
php.ini in root directory has
magic_quotes_gpc = Off
Any idea how to prevent the addition of magic quotes?
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
November 23, 2012 at 6:48 am #473992<em>@deane 347537 wrote:</em><blockquote>
php.ini in root directory has
magic_quotes_gpc = Off
Any idea how to prevent the addition of magic quotes?</blockquote>
Hi Deane,
Turn magic quote off from php.ini then it won’t appear again.
I have checked on your site and don’t see any magic quote is added.
deane Frienddeane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
November 23, 2012 at 3:44 pm #474039Hi Luna Garden,
Thanks for having a look into this issue. Well, did you check the FaLang translation of JA Slideshow and JA Masshead? If you select Language: English and Content Element: Module and then navigate to JA Slideshow you can see the translation of the description field. Something is adding backslashes every time I hit the save button – and it’s not FaLang, since I’ve contacted the author, who also had a look into the issue. Since nothing else is afflicted, my guess is that some Joomlart element is causing the problem.
Any advice?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 24, 2012 at 10:19 am #474111Hi deane,
I found the problem on Falang component on your site. I fixed it
<blockquote>1) Open administrator/components/com_falang/views/translate/tmpl/edit.php file</blockquote>
+ add html_entity_decode
from
<textarea name="refField_<?php echo $field->Name;?>" rows="<?php echo $ta_rows;?>" cols="<?php echo $ta_cols;?>" ><?php echo $translationContent->value; ?></textarea>
change to
<textarea name="refField_<?php echo $field->Name;?>" rows="<?php echo $ta_rows;?>" cols="<?php echo $ta_cols;?>" ><?php echo html_entity_decode($translationContent->value); ?></textarea>
<blockquote>2) Open administrator/components/com_falang/falang.php file</blockquote>
add new this script
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key] = $v;
$process[] = &$process[$key];
} else {
$process[$key] = stripslashes($v);
}
}
}
unset($process);
}
Please check it again and let me know if the issue still persists.Regards,
deane Frienddeane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
November 28, 2012 at 8:49 am #474503Hi,
Thank you so much – seems to work now!
The only problem now is that the actual images of the slideshow don’t change anymore – the animation works but the switch to the next image does not, the same images is reloaded.
Any ideas?
deane Frienddeane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
November 28, 2012 at 2:52 pm #474538Update: I deleted sl-mask.png in the folder …templatesja_ziteimages and the slideshow works now. Is the mask of any relevance?
Unfortunately, now the translated descriptions don’t show up anymore … going in circles.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 29, 2012 at 2:42 am #474641I couldn’t find the problem on your site. Please include screenshot here for further investigation. I will check it.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
deane Frienddeane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
November 29, 2012 at 3:08 pm #474727Hi,
Yes, you’re fix worked as there are no more magic quotes in the translation – at least when I checked the last time, thank you!
Unfortunately, the description next to the animated images in the slideshow does not appear in the English translation although it does in the German original – see screenshots.
Any ideas?
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 30, 2012 at 4:26 am #474777deane Frienddeane
- Join date:
- March 2012
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 26
- Thanks:
- 16
- Thanked:
- 2 times in 1 posts
December 18, 2012 at 7:42 pm #476700Thanks so much Ninja Lead!
1 user says Thank You to deane for this useful post
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 3 voices, and was last updated by deane 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum