Making phpBB2 working with PHP5製作phpBB2與PHP5

Officially, phpBB 2 (as of this writing, up to version 2.0.17) is not supporting PHP 5.據官方統計, phpBB 2 (如寫本,最多的版本2.0.17 )是不支持PHP 5中。 If you install PHP 5, and use it to run phpBB, you will encounter the following symptoms and errors:如果你安裝了PHP 5中,並用它來運行phpBB ,您會遇到下列症狀和錯誤:

  • You cannot post message - When you want to post new topic or reply to a topic, after writing your message, when you click “Submit”, a blank page or screen or error message is shown with address bar showing posting.php, instead of posting confirmation message.你不能張貼訊息-當您要張貼新的主題或回复一個主題後,撰寫您的郵件,當你點擊“提交” ,一個空白頁或屏幕或錯誤訊息顯示與地址欄中顯示p osting.php,而不是張貼確認郵件。
  • You unable to search - When you want to search by clicking oh “Search”, no search results are been returned, or a black page or screen, or error message is shown.你無法搜索-當你想搜索按一下噢“搜索” ,沒有搜索結果被送回,或黑色網頁或屏幕上,或錯誤訊息顯示。

To enable PHP 5 to work properly with phpBB, some changes to the phpBB source code needs to be done.為了使PHP 5的正常工作與phpBB ,一些變化phpBB源代碼需要做的事情。 Just follow steps as below:只要按照下列步驟如下:

OPEN不限
admin/admin_ug_auth.php管理員/ admin_ug_auth.php

FIND查找
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) )如果( $ forum_access [ $一] [ $ auth_field ] == AUTH_ACL & & isset ( $ change_acl_list [ $ forum_id ] [ $ auth_field ] ) )

REPLACE WITH替換為
if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id]) )如果( $ forum_access [ $一] [ $ auth_field ] == AUTH_ACL & & isset ( $ change_acl_list [ $ forum_id ] ) )

FIND查找
( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [ $ auth_field ] ) & & !空( $ change_acl_list [ $ forum_id ] [ $ auth_field ] ) ) ) | |

REPLACE WITH替換為
( !isset($auth_access[$forum_id][$auth_field]) && empty($change_acl_list[$forum_id][$auth_field]) ) ) || ( ! isset ( $ auth_access [ $ forum_id ] [ $ auth_field ] ) & &空( $ change_acl_list [ $ forum_id ] [ $ auth_field ] ) ) ) | |

Finally, some changes are needed so that functions that get called with functions as parameters are not called ‘by reference’ with functions:最後,有些改變是必要的,以便讓職能與職責要求的參數是不是所謂的'參考'的職能:

OPEN不限
includes/functions_post.php包括/ functions_post.php

FIND查找
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式, & $ post_data , & $訊息, & $元, & $ forum_id , & $ topic_id , & $ post_id , & $ poll_id , & $ topic_type , & $ bbcode_on , & $ html_on , & $ smilies_on , & $ attach_sig , & $ bbcode_uid , & $ post_username , & $ post_subject , & $ post_message , & $ poll_title , & $ poll_options , & $ poll_length )

REPLACE WITH替換為
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length)功能submit_post ( $模式, & $ post_data , & $訊息, & $元, & $ forum_id , & $ topic_id , & $ post_id , & $ poll_id , & $ topic_type , & $ bbcode_on , & $ html_on , & $ smilies_on , & $ attach_sig , & $ bbcode_uid , $ post_username , $ post_subject , $ post_message , $ poll_title , & $ poll_options , & $ poll_length )

OPEN不限
includes/functions_search.php包括/ functions_search.php

FIND查找
function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式, & $條目, & $ stopword_list , & $ synonym_list )

REPLACE WITH替換為
function clean_words($mode, $entry, &$stopword_list, &$synonym_list)功能clean_words ( $模式, $條目, & $ stopword_list , & $ synonym_list )

FIND查找
function split_words(&$entry, $mode = ‘post’)功能split_words ( & $進入, $模式= '後' )

REPLACE WITH替換為
function split_words($entry, $mode = ‘post’)功能split_words ( $入境, $模式= '後' )

For the above, the changes involved are some parameters have been stripped off the “&” sign.對於上述情況,涉及改變一些參數已經被剝奪了“ & ”的跡象。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明:這是一台機器翻譯網頁這是“原樣”提供,無保修。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和貢獻或獲得技術支持和幫助 My Digital Life Forums 我的數字生活論壇 .



7 Responses to “Making phpBB2 working with PHP5” 7日響應“讓phpBB2與PHP5 ”

  1. Alan艾倫
    July 25th, 2006 03:15 06年7月25號03:15
    1

    It doesn’t work.它不工作。 Shame.羞恥。

  2. KenMarshall
    April 17th, 2007 16:03 2007年4月17日16:03
    2

    I think, that is interesting for all.我認為,這是有趣的。

  3. Test測試
    August 31st, 2007 07:26 2007年8月31日7時26分
    3

    Hello

    G’night G'night

  4. acghjwolhqa
    September 28th, 2007 02:40 07年9月28日2時40分
    4

    Amerikanische Firma „ACG Logistics“ sucht nach Mitarbeiter in Europa fuer die Arbeit im Logistikbereich. Amerikanische事務所“ ACG物流”專sucht班上在歐洲研究所死於勞動免疫Logistikbereich 。 Interessanter Job mit guter Verdienstmoeglichkeit.美國麻省理工學院Interessanter工作guter Verdienstmoeglichkeit 。

    [b]Schicken Sie bitte Ihre Bewerbung an並[ b ] Schicken你bitte一個Ihre Bewerbung info@acglogistics.biz [/b] [ / B ]中

  5. free poker download free poker免費撲克撲克免費下載
    November 15th, 2007 22:28 2007年11月十五日22:28
    5

    download poker gratuito… 下載撲克gratuito ...

    Ogni software Poker casino poker…奧格尼軟件撲克賭場撲克...

  6. rk公園
    December 3rd, 2007 21:28 07年12月3日21:28
    6 6日

    try this for working phpbb2 with php5試試這個工作phpbb2與php5
    extension.inc
    $HTTP_GET_VARS=$_GET; $ HTTP_GET_VARS = $ _GET ;
    $HTTP_POST_VARS=$_POST; $ HTTP_POST_VARS =的$ _POST ;
    $HTTP_COOKIE_VARS=$_COOKIE; $ HTTP_COOKIE_VARS = $ _COOKIE ;
    that’s all… works now fine with php5這是所有現在的作品...罰款與php5

  7. spycrasher
    July 15th, 2008 19:18 08年7月15號19:18
    7 7日

    Hi everybody嗨大家

    Just trapped on a little tool to slice website images.只要被困在一些工具,切片網站的圖片。
    Quick in preparing ready html from simple single-image site design.快速準備隨時從簡單的HTML單一形象的網站設計。
    Program is rather crappy and cheap (especially comparing to similar function in PhotoShop).計劃是相當糟糕和廉價的(尤其是比較類似功能的軟件) 。
    But there is a trick!但有一個帽子戲法! Just look what books come as a bonus:只要看看什麼書是一個好處:

    Search Engine Optimization: An Hour a Day搜索引擎優化:一小時一天
    Web Design in a Nutshell, 3rd Edition網頁設計手冊,第3版
    Webmaster in a Nutshell, 3rd Edition網站管理員果殼中的,第3版
    etc…等...

    I wonder how $270 priced books can be sold for just 20 dollars…我不知道如何定價270美元的書籍可以出售的只有20美元...
    Anyway here’s link:反正這裡的鏈接: http://www.sliceimage.com/

    Hope these books will help you as well.希望這些書籍將幫助您。

    Regards,關心,
    Mark馬克

Leave a Reply留下一個回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “刪除日期時間= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱沒有評論


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字詞的文章

phpbb2 php5 phpbb2 php5 - - tvants porn tvants色情 - - porn on tv ants 色情電視螞蟻 - - phpbb blank page submit phpbb空白頁提交 - - how to get phpbb2 working 如何讓phpbb2工作 - - phpbb php5 phpbb php5 - - phpbb converter extension.inc source phpbb轉換extension.inc來源 - - php5和phpbb2 php5和phpbb2 - - phpbb submit blank screen phpbb提交黑屏 - - php5 phpbb2 php5 phpbb2 - - phpBB and php5 phpBB和php5 - - phpbb for php5 phpbb的php5 - - phpbb 2 php5 phpbb第2 php5 - - porn servers on tvants 色情服務器tvants - -