Перевод Опросы общественного мнения в Joomla! использованием Joomfish



A lot of people who run multilingual sites on Joomla! have problem with translating polls.
The problem is related to the MySQL driver. If you switch to MySQLi “with i” it works right out of the box. This is the preferred driver for JoomFish. Alternatively you can change the modules/mod_poll/helper.php file a bit:
in getPollOptions function set

Code:
$query = ‘SELECT p.id, p.text’ .
            ’ FROM #__poll_data as p’ .
            ’ WHERE p.pollid = ‘ . (int) $id .
            ’ AND p.text <> “”‘ .
            ’ ORDER BY p.id’;

And it will be working with no problems at all :)

  • Share/Save/Bookmark

Если вам понравилась эта статья, не забудьте подписаться на мою RSS ленту!

3 Ответы на “Перевод Опросы общественного мнения в Joomla! использованием Joomfish”
Umidjon Posted on May 6, 2010 на 10:36 в

спасибо. It’s work

Murid Posted on August 31, 2010 на 6:35 в

thanks alooooooooooooooooooooooooooot, it was a magic for me

Энтони Posted on August 31, 2010 at 12:41 м.

You are welcome :)

Опубликовать комментарий