promotion image of download ymail app
Promoted
Anonymous
Anonymous asked in 電腦與網際網路電腦網路 · 1 decade ago

裝phpBB2外掛的問題

Hide Mod

Files to modify : (click on the filenames below...)

1 - posting.php

2 - viewtopic.php

3 - search.php

4 - topic_review.php // in the \"/includes\" directory

5 - bbcode.php // in the \"/includes\" directory

6 - bbcode.tpl // in the Templates/{Used template}/ directory

7 - posting_body.tpl // in the Templates/{Used template}/ directory

請問有人知道要怎麼安裝嗎?有的地方的意思不解?可以的話麻煩完整一點,我才剛開始架phpbb2而已. = =\"

Update 2:

外掛的

2 Answers

Rating
  • 1 decade ago
    Favorite Answer

    他的意思是說,有七個檔案要你去修改

    1、打開posting.php

    找到下列文字:

    if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )

    {

    $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);

    }

    if( $bbcode_on )

    {

    $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);

    }

    ------------------------------------------------------------------------------------------------------------

    把上面文字取代成:

    $valid = FALSE;

    if( $userdata['session_logged_in'] ) {

    $sql = "SELECT p.poster_id, p.topic_id

    FROM " . POSTS_TABLE . " p

    WHERE p.topic_id = $topic_id

    AND p.poster_id = " . $userdata['user_id'];

    $resultat = $db->sql_query($sql);

    $valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}

    if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )

    {

    $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);

    $user_sig = bbencode_third_pass($user_sig, $userdata['user_sig_bbcode_uid'], $valid);

    }

    if( $bbcode_on )

    {

    $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);

    $preview_message = bbencode_third_pass($preview_message, $bbcode_uid, $valid);

    }

    -------------------------------------------------------------------------------------------------------------

    再找到下列文字:

    if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 )

    {

    $subject = 'Re: ' . $subject;

    }

    --------------------------------------------------------------------------------------------------------------

    在上面的文字下面,加上這些文字:

    if( !$userdata['session_logged_in'] ) {$message = hide_in_quote($message);}

    else { $sql = "SELECT p.poster_id, p.topic_id

    FROM " . POSTS_TABLE . " p

    WHERE p.topic_id = $topic_id

    AND p.poster_id = " . $userdata['user_id'];

    $resultat = $db->sql_query($sql);

    if(!$db->sql_numrows($resultat)) {$message = hide_in_quote($message);}

    }

    --------------------------------------------------------------------------------------------------------------

    以此類推!

    <4 - topic_review.php // in the "/includes" directory 表示到includes的資料夾裡面找topic_review.php這個檔案來修改

    6 - bbcode.tpl // in the Templates/{Used template}/ directory 表示到Templates的資料夾

    然後看你安裝的風格是什麼,比如預設的是subSilver,所以就是到Templates/subSilver/bbcode.tpl 把檔案抓出來修改!

    Find---找出

    Replace by ---取代

    Add Below ---加在下面

    Add the lines in heavy type (bold text)---把粗體字的加進去

    *Before* this text ---在文字區塊前面

    Add this functions ---加上這個函式

    Find in function "bbencode_first_pass"---找到bbencode_first_pass這個函式

    • Commenter avatarLogin to reply the answers
  • 1 decade ago

    您可以到竹貓星球

    看有無相關教學

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.