หน้า 1 จากทั้งหมด 1

[MOD] Recent topics

โพสต์แล้ว: 13/05/2014 3:11 pm
โดย thatsawan
13-5-2557 15-00-14.png
13-5-2557 15-00-14.png (127.39 KiB) Viewed 5427 times
รายละเอียด:: แสดงหัวข้อที่มีการโพสล่าสุด
พัฒนาโดย :: 5hocK
Version ::3.0.12
ดาวน์โหลดได้ที่ ::https://www.mindphp.com/download/files/54-53-recent-topics-1-0-6-zip.html
ไฟล์ที่ใช้ในการติดตั้ง ::
index.php,
adm/style/acp_forums.html,
includes/acp/acp_forums.php,
styles/prosilver/template/index_body.html
วิธีการติดตั้ง
เปิดไฟล์ =>index.php
ค้นหา ::

โค้ด: เลือกทั้งหมด

// Output page      
เติมก่อน::

โค้ด: เลือกทั้งหมด

if ($config['rt_index'])
{
    if (!function_exists('display_recent_topics'))
    {
        include($phpbb_root_path . 'includes/functions_recenttopics.' . $phpEx);
    }
    display_recent_topics($config['rt_number'], $config['rt_page_number'], $config['rt_anti_topics'], 'recent_topics', request_var('f', 0), true, $config['rt_parents']);
    }
เปิดไฟล์ =>adm/style/acp_forums.html
ค้นหา ::

โค้ด: เลือกทั้งหมด

        <dl>
            <dt><label for="topics_per_page">{L_FORUM_TOPICS_PAGE}:</label><br /><span>{L_FORUM_TOPICS_PAGE_EXPLAIN}</span></dt>
            <dd><input type="text" id="topics_per_page" name="topics_per_page" value="{TOPICS_PER_PAGE}" size="4" maxlength="4" /></dd>
        </dl>
เติมท้าย::

โค้ด: เลือกทั้งหมด

        <dl>
            <dt><label for="forum_recent_topics">{L_RECENT_TOPICS_LIST}:</label><br /><span>{L_RECENT_TOPICS_LIST_EXPLAIN}</span></dt>
            <dd><label><input type="radio" class="radio" name="forum_recent_topics" value="1"<!-- IF RECENT_TOPICS --> id="forum_recent_topics" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
                <label><input type="radio" class="radio" name="forum_recent_topics" value="0"<!-- IF not RECENT_TOPICS --> id="forum_recent_topics" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
        </dl>
เปิดไฟล์ =>includes/acp/acp_forums.php
ค้นหา ::

โค้ด: เลือกทั้งหมด

$user->add_lang('acp/forums');
ต่อท้าย::

โค้ด: เลือกทั้งหมด

$user->add_lang('mods/info_acp_recenttopics');
ค้นหา ::

โค้ด: เลือกทั้งหมด

'forum_topics_per_page'    => request_var('topics_per_page', 0),
ต่อท้าย::

โค้ด: เลือกทั้งหมด

'forum_recent_topics'    => request_var('forum_recent_topics', 1),
ค้นหา ::

โค้ด: เลือกทั้งหมด

'forum_topics_per_page'    => 0,
ต่อท้าย::

โค้ด: เลือกทั้งหมด

'forum_recent_topics'    => 1,
ค้นหา ::

โค้ด: เลือกทั้งหมด

'TOPICS_PER_PAGE'            => $forum_data['forum_topics_per_page'],
ต่อท้าย::

โค้ด: เลือกทั้งหมด

'RECENT_TOPICS'                => $forum_data['forum_recent_topics'],
เปิดไฟล์ =>styles/prosilver/template/index_body.html
ค้นหา ::

โค้ด: เลือกทั้งหมด

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
เติมก่อน::

โค้ด: เลือกทั้งหมด

<!-- IF RECENT_TOPICS_DISPLAY --><!-- INCLUDE recent_topics_body.html --><!-- ENDIF -->
***จากนั้นให้ทำการ คัดลอกไฟล์ทั้งหมดที่มี ในโฟลเดอร์ root ไปวาง เเล้วทำการ เปิด Browser :: /install/index.php***
การแสดงผลการติดตั้ง ในส่วนของ Admin
13-5-2557 15-12-39.png
13-5-2557 15-12-39.png (103.15 KiB) Viewed 5427 times

Re: [MOD] Recent topics

โพสต์แล้ว: 12/06/2017 10:38 am
โดย phoenixsky
รบกวนหน่อยครับ หาไฟล์ index.php ไม่เจอครับ มือใหม่มากๆ รบกวนผู้รู้ช่วยเเนะนำด้วยครับ
version phpbb 3.0.12
ขอบคุณครับ

Re: [MOD] Recent topics

โพสต์แล้ว: 12/06/2017 4:24 pm
โดย mindphp
แนะนำให้อัพเกรดเป็น 3.1, 3.2 ก่อน แล้วทุกอย่างจะง่ายขึ้นเป็นกอง