IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help with charset
EvilHunter
сообщение 16.07.09 - 02:11
Сообщение #1


Newbie
*

Группа: Members
Сообщений: 5
Регистрация: 16.07.09
Пользователь №: 4,865



First I want to THANKS all the team of this great community for making the IPB-Joomla module and FREE... its awesome to have people like you guys smile.gif

So I have little problem, my IPB forum use windows-1251 and when I put the module it show like

D1sc0nn3c7 answered in topic «Ëåâñêè»: Êàê ìîæå äà ñå èçëàãàø ñ òèÿ òåìè  Прочети


DEMO

Thanks, and btw Im from Bulgaria smile.gif so I use cyrilic for my forum and again THANKS
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 16.07.09 - 12:22
Сообщение #2


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



Hi.
Try next: in /modules/mod_last_ipb_gns/mod_last_ipb_gns.php file at line #160 you can see
  return $post;
Add above this line next code:
$post = iconv("windows-1251", "utf-8", $post);

Hope this will help you.


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
EvilHunter
сообщение 16.07.09 - 15:12
Сообщение #3


Newbie
*

Группа: Members
Сообщений: 5
Регистрация: 16.07.09
Пользователь №: 4,865



Thank you for your reply but now it show

«Г‹ГѕГЎГЁГ¬Г ГІГ  ГўГЁ ГЇГҐГ±ГҐГ­ ?»: Àéäå ðåäà êòèðà õ Г­Г  ГўГ±ГЁГ·ГЄГЁ ГўГЁ ìíåíèÿòà , Г§Г  Г¤Г  Г¬Г®Г¦ГҐ ГЁ äà Г±ГҐ ñëóøà ò


sad.gif

Сообщение отредактировал EvilHunter - 16.07.09 - 15:12
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 16.07.09 - 18:24
Сообщение #4


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



Hmmm.. Lets try other case. In the same file find
$ipbdb =& JDatabase::getInstance( $options );
and insert below:
$ipbdb->query("SET NAMES 'cp1251'");
$ipbdb->query('SET CHARACTER SET "cp1251"');

---
I think it is because DB-collation is wrong.


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
EvilHunter
сообщение 16.07.09 - 19:06
Сообщение #5


Newbie
*

Группа: Members
Сообщений: 5
Регистрация: 16.07.09
Пользователь №: 4,865



Sweet, but again error, now the hole site isnt opening sad.gif

Fatal error: Call to a member function getErrorNum() on a non-object in /usr/local/apache2/htdocs/rado/cstrike/new/modules/mod_last_ipb_gns/mod_last_ipb_gns.php on line 186


I wish I had some experience sad.gif

Сообщение отредактировал EvilHunter - 16.07.09 - 19:07
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 16.07.09 - 21:45
Сообщение #6


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



So, revert all changes. And try to change the collation of forums database (if you use 2 different DBs for site and forum).


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
EvilHunter
сообщение 16.07.09 - 22:46
Сообщение #7


Newbie
*

Группа: Members
Сообщений: 5
Регистрация: 16.07.09
Пользователь №: 4,865



hm, what will that mean, you want me to make the forum to use the same DB as joomla or I miss something
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Alecfyz
сообщение 17.07.09 - 09:46
Сообщение #8


Gorsk.net Studio
***

Группа: Admin
Сообщений: 1,852
Регистрация: 24.02.05
Пользователь №: 3



No-no! Keep your DBs as is! But try to change the "collation" of forum DB from "utf-8" to "cp1251_general_ci"


--------------------
Ибу ибу ди - хуэй дао муди - [Шаг за шагом можно достигнуть цели (кит.)]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
EvilHunter
сообщение 22.07.09 - 15:17
Сообщение #9


Newbie
*

Группа: Members
Сообщений: 5
Регистрация: 16.07.09
Пользователь №: 4,865



Isnt there any other way, because the forum is on our hosting rooter and our PHP and MySQL is too old for phpMyAdmin, and its on FreeBSD, I have to tell my brother to make dump sql, to edit the db and than to import it again from the rooter (I dunno anything with Linux). Thanks for the help smile.gif

P.S. Im sure you guys will think for a fix in the future of this problem smile.gif

Сообщение отредактировал EvilHunter - 22.07.09 - 15:18
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 



Lo-Fi Version Time is now: 18.05.12 - 07:19
Рейтинг@Mail.ru Rambler's Top100 Яндекс цитирования