ช่วยบอกวิธีลง MOD หน่อยนะครับ

พูดคุย PhpBB ปัญหา การติดตั้ง ปัญหา การลง Mod การแก้ไข หน้าตาบอร์ด การใช้งาน Joomla 1.5 และ CMS คำถาม ควรระบุรุ่นที่ใช้ ในการตั้งคำตามด้วย นะ เช่น php-nuke 8.0 Joomla 1.0 joomla 1.5 และ รายละเอียดของ server OS , php เวอร์ชั่นไหน ฐานข้อมูลอะไร

Moderator: phpbb

Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

ช่วยบอกวิธีลง MOD หน่อยนะครับ

โพสต์ โดย Pedbaa »

อะครับ ตั้งกระทู้ใหม่แล้ว ก็ช่วยสอนด้วยนะครับ
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

ตามที่ให้ลิงค์มา อันนี้นะครับ
http://www.phpbbhacks.com/download/3049
ผมโหลดมาดูแล้ว
Mod ตั้วนี้ที่ให้ มา มันเป็นตัว upgrade น่ะครับ คือ ต้อง ลง ตัวเต็มก่อน แล้ว มา upgrade ด้วย mod ตามลิงนั้น
ผม แนะนำ ให้ หาที่ เว็บ phpbb เลย ครับ
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

หาไม่เจอซะที่อะครับ

mod เล็กๆ เวลาเปิดเข้าไปเจอแต่ txt ตัวเดียวก็มี

แบบที่มี php ส่วนใหญ่เป็น mod ใหญ่ๆอะครับ
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

เลือก มาดู ซักอัน ครับ เล็ก ไฟล์ เป็น txt อย่างเดียวก็ได้
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

http://www.phpbb.com/community/viewtopi ... 5&t=192381

มีชื่อว่า 15 Minute Who is Online MOD

น่าจะเป็น mod ที่บอกได้ว่า 15 นาทีก่อน ใคร Login เข้ามาบ้าง

พอจะได้มั้ยครับ
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

ช่วยตอบด้วยนะครับ
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

ตอบให้ อยู่แล้ว ครับ จากไฟล์ ของ phpbb ที่โหลดมา
ไฟล์ที่เรา ต้อง แก้ คือ
admin/index.php
includes/page_header.php
language/lang_english/lang_main.php
viewonline.php
ทั้งหมด 4 ไฟล์
โดยแก้ไข ไฟล์ต่างๆ ดังนี้
เปิดไฟล์
admin/index.php
หา AND u.user_session_time >= " . ( time() - 300 ) . "
แทนที่ด้วย AND u.user_session_time >= " . ( time() - 900 ) . "
หา AND session_time >= " . ( time() - 300 ) . "
แทนที่ด้วย AND session_time >= " . ( time() - 900 ) . "

includes/page_header.php
หา AND s.session_time >= ".( time() - 300 ) . "
แทนที่ด้วย AND s.session_time >= ".( time() - 900 ) . "

language/lang_english/lang_main.php
หา $lang['Online_explain'] = 'This data is based on users active over the past five minutes';
แทนที่ด้วย $lang['Online_explain'] = 'This data is based on users active over the past fifteen minutes';

viewonline.php
หา AND s.session_time >= ".( time() - 300 ) . "
แทนที่ด้วย AND s.session_time >= ".( time() - 900 ) . "

ปล.ถ้าให้ ภาษาไทยเป็นหน้าหลักของเว็บ ก็ แก้ไขไฟล์ ภาษาไทย คล้ายๆ language/lang_english/lang_main.php นะครับ

##############################################################
## MOD Title: View Online In Last 15 Minutes
## MOD Author: source < [email protected] >
## MOD Description: Extends Who is Online to show last 15 minutes.
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: ~3 Minutes
##
## Files To Edit: admin/index.php
## includes/page_header.php
## language/lang_english/lang_main.php
## viewonline.php
##
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: This mod extends the Who is Online to 15 minutes in the main index,
## the Who is Online page, and the Admin index.
##############################################################
## MOD History:
##
## 2004-04-27 - Version 1.0.1
## - Added lang update & corrected typographical error.
## 2004-04-27 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
admin/index.php

#
#-----[ FIND ]------------------------------------------
#
AND u.user_session_time >= " . ( time() - 300 ) . "

#
#-----[ REPLACE WITH ]------------------------------------------
#
AND u.user_session_time >= " . ( time() - 900 ) . "

#
#-----[ FIND ]------------------------------------------
#
AND session_time >= " . ( time() - 300 ) . "

#
#-----[ REPLACE WITH ]------------------------------------------
#
AND session_time >= " . ( time() - 900 ) . "

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
AND s.session_time >= ".( time() - 300 ) . "

#
#-----[ REPLACE WITH ]------------------------------------------
#
AND s.session_time >= ".( time() - 900 ) . "

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Online_explain'] = 'This data is based on users active over the past five minutes';

#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Online_explain'] = 'This data is based on users active over the past fifteen minutes';

#
#-----[ OPEN ]------------------------------------------
#
viewonline.php

#
#-----[ FIND ]------------------------------------------
#
AND s.session_time >= ".( time() - 300 ) . "

#
#-----[ REPLACE WITH ]------------------------------------------
#
AND s.session_time >= ".( time() - 900 ) . "

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

พอจะเข้าใจแล้วว่า ให้เปิดไฟล์ที่กำหนด
หาคำที่บอกไว้ แล้วเปลี่ยนเป็นคำอื่นตามที่บอก แต่ มีปัญหาใหญ่ครับ

admin/index.php
includes/page_header.php
language/lang_english/lang_main.php
viewonline.php
4 ไฟล์นี้ ผมจะหามันมาจากไหนละครับ เปิดตรงไหนละครับ
ใน Folder มีแค่ 15_Min_Who_is_Online101.txt อันเดียวเองนะครับ

แล้วถ้าทำเสร็จแล้ว จะต้องทำอะไรกับเว็บเราครับ
เพราะที่บอกๆมา มันไม่เชื่อมโยงกับเว็บเลยครับ
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

จาก phpbb ที่ลงไว้ ครับ
ทำแล้ว ก็ save แล้ว upload ไฟล์ที่เราแก้ไปไว้ที่เดิม
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

เอ ยุ่งแล้ว

ผมสมัครสมาชิกของ freeforum ผมไม่เห็นต้องโหลดตัว phpbb มาเลยครับ

งงแล้ว หรือผมต้องไปโหลดอีกครับ งง
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

freeforum แบบ ไหน ครับ ไม่ได้ ติดตั้งใช้เอง หรือ
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

www.freeforums.org ครับ

หรือว่า! แบบนี้ใช้ mod ไม่ได้เหรอครับ

แล้วควรทำอย่ารไรดีครับ
Pedbaa
phpBBThailand Full Member
phpBBThailand Full Member
โพสต์: 42
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย Pedbaa »

ไม่เห็นตอบซะที ช่วยตอบด้วยครับ
bankbonkbank
phpBBThailand Hero Member
phpBBThailand Hero Member
โพสต์: 117
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00

โพสต์ โดย bankbonkbank »

ถ้าเป็น freeforum แบบสมัครแล้วใช้ได้เลยอย่างงี้คงจะ Mods อะไรไม่ได้แล้วล่ะครับ
mindphp
phpBBThailand VIP Members
phpBBThailand VIP Members
โพสต์: 2269
ลงทะเบียนเมื่อ: 01 ม.ค. 1970, 07:00
ติดต่อ:

โพสต์ โดย mindphp »

ช่ายแล้วครับ ท่าน bankbonkbank มันต้องเป็น แบบ ที่เราสามรถแก้โค้ด ได้ น่ะครับ
สร้างไฟล์ pdf online
ท่องเที่ยว http://www.thailandhotelforums.com/" onclick="window.open(this.href);return false;
สอน php http://www.mindphp.com/" onclick="window.open(this.href);return false;
ตอบกลับโพส

ย้อนกลับไปยัง

ผู้ใช้งานขณะนี้

กำลังดูบอร์ดนี้: 16 และ บุคคลทั่วไป 0 ท่าน