| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
Posted: Sat Jan 13, 2007 2:21 pm Post subject: mobile phone mod |
|
|
I installed this mod http://www.phpbb.com/phpBB/viewtopic.php?t=304949 on my testsite and it works great.
Installation is very easy - you copy a folder to your forum folder and edit two files:
| Code: | Step 5:
OPEN
"http://www.yoursite.com/forum/includes/bbcode.php"
FIND
global $template;
$tpl_filename = $template->make_filename('bbcode.tpl');
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
REPLACE WITH
global $template, $bbcode_tpl_file;
if ( !isset($bbcode_tpl_file) )
{
$bbcode_tpl_file = "bbcode.tpl";
}
$tpl_filename = $template->make_filename($bbcode_tpl_file);
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));
Step 6:
OPEN
"http://www.yoursite.com/forum/common.php"
FIND
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
REPLACE WITH
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && !defined("MOPHPBB") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
} |
However on my real forum I get a blank screen.
They adress the blank screen issue in their faq:
| Quote: | Q: What should I do if I want to use other language than English?
A: By default, MOPHPBB only provides English language interface. If you want use other language, for example Simplified Chinese, you should make a copy of the "lang_english.php" file in "mo/lang" directory, rename it as "lang_chinese_simplified.php", and translate every string in this file into Chinese.
One thing you should take care, for Simplified Chinese, besides translating the string into Chinese, you should also convert the string into UTF-8 format -- my mobile phone and PC WAP/xHTML simulator does not accept gb2312 character set directly, it accepts UTF-8 format of gb2312. I do not know if this step is necessary for other language, because I can not read other language than Chinese and English.
If UTF-8 format is necessary for your language, it would be a great help if you can find a UTF-8 compliance phpBB of your language, so phpBB and MOPHPBB can work on the same language -- UTF-8 format of your language -- when they read to/write from database. Otherwise, you will have to convert either phpBB or MOPHPBB to UTF-8 format by yourself.
If you want to share your conversion experience, or language file(s) with others, please let me know. Thanks in advance.
Q: What should I do when I get a blank page on MOPHPBB interfaces?
A: It happens when your forum default language is not English. See the above question/answer for detailed solution. |
Hovever I have tried it - also using english for guests and I still get a blank screen on my real forum.
My testsite and "real" site are very much alike - only difference is mods. My real forum is modded so the problem must lie there...Can any of you from the code see where the problem might bee? - could it be modrewrite?
EDIT: Found another mod which works sort of: http://www.phpbb.com/phpBB/viewtopic.php?t=148148
Its a browse only mod. I can show pages like tihis:
-http://www.mysite/mobil/topics.php?Id=18&
but not like this:
-http://www.mystite/mobil/topics.php?Id=18&start=15 (where my cell phonse says web no server access) - it works allright on the web... |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |