ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์CMS & Free Script[SMF] ใครทำให้กระทู้ล่าสุดแสดงอยู่ข้างบนบอร์ดแบบไทยเสียวได้บ้างครับ
หน้า: [1] 2   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: [SMF] ใครทำให้กระทู้ล่าสุดแสดงอยู่ข้างบนบอร์ดแบบไทยเสียวได้บ้างครับ  (อ่าน 3841 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« เมื่อ: 15 มีนาคม 2010, 10:51:17 »

สวัสดีครับผมทำบอร์ด SMF อยู่ครับ อยากให้กระทู้ล่าสุดมันโชว์แบบไทยเสียว ก็เลยไปหาวิธีมาหลาย ๆ อย่าง พยายามทำอยู่นาน ก็ไม่ได้ครับ

ไม่ทราบใครพอจะทำเป็นบ้างมั๊ยครับ ช่วยสอนผมหน่อยสิ หรือจะเอารหัสเข้าไปทำให้ผมเลย ก็จะยินดีมากเลยครับ

ขอบคุณมากเลยนะครับ  wanwan017



บอร์ดผมอยู่ที่ forums.photoshopdd.com ครับ

บอร์ดเงียบ ๆ  Tongue
บันทึกการเข้า

t_doyoumv
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 62
ออฟไลน์ ออฟไลน์

กระทู้: 3,311



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 15 มีนาคม 2010, 10:53:46 »

ใช่ๆเราก็หาอยู๋ตั้งนานแต่ไม่เจอแล้วอ่าส์ รอดูๆ
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 15 มีนาคม 2010, 11:04:31 »

ใช่ๆเราก็หาอยู๋ตั้งนานแต่ไม่เจอแล้วอ่าส์ รอดูๆ
โอ๊ววววววว  พวกเดียวกัน ที่จริงผมเจอกระทู้ที่เค้าสอนนะครับ แต่ทำตามแล้ว มันไม่เกิดน่ะครับ เลยแปลกใจมากกกกกกก
 wanwan012

บันทึกการเข้า

ponddeja
ก๊วนเสียว
*

พลังน้ำใจ: 18
ออฟไลน์ ออฟไลน์

กระทู้: 246



ดูรายละเอียด
« ตอบ #3 เมื่อ: 15 มีนาคม 2010, 11:06:15 »

อยากทำได้บ้างเหมือนกันง่ะครับ

ใช้ smf 2.0 rc 2 ง่ะคับ ใครทำได้บ้างเนะนำหน่อยครับ อิอิ  wanwan019
บันทึกการเข้า
boy1000
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 53
ออฟไลน์ ออฟไลน์

กระทู้: 1,328



ดูรายละเอียด
« ตอบ #4 เมื่อ: 15 มีนาคม 2010, 11:20:27 »

http://www.justusers.net/forum/index.php?topic=483.0
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #5 เมื่อ: 15 มีนาคม 2010, 11:28:07 »

วิธีนี้ยังไม่เคยครับ  ขอลองดูก่อน แล้วจะเอาผลมาบอกครับ
บันทึกการเข้า

@StarexVIP
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 866
ออฟไลน์ ออฟไลน์

กระทู้: 3,885



ดูรายละเอียด เว็บไซต์
« ตอบ #6 เมื่อ: 15 มีนาคม 2010, 11:30:00 »

ใช้ mod ตัวนี้ครับ

โค๊ด:
http://custom.simplemachines.org/mods/index.php?mod=1081
wanwan002
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #7 เมื่อ: 15 มีนาคม 2010, 11:44:32 »

เช็คยังไงครับ ว่าเราใช้ smf เวอร์ชั่นไหนอยู่


ขอบคุณมากนะครับ
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #8 เมื่อ: 15 มีนาคม 2010, 13:34:33 »



ทำแล้วขึ้นแบบนี้ครับ

อ้างถึง
Parse error: syntax error, unexpected '<' in /home/monkeydig/domains/photoshopdd.com/public_html/forums/index.php on line 362



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

อ้างถึง
ใช้ mod ตัวนี้ครับ

โค๊ด:
อ้างถึง


ส่วนอันนี้ตอนติดตั้ง มันบอกว่าผิดพลาด ไม่สามารถติดตั้งได้ครับ

แง๊.............  wanwan031



ใครก็ได้ทำให้ด้วยยยย
« แก้ไขครั้งสุดท้าย: 15 มีนาคม 2010, 13:39:03 โดย vava » บันทึกการเข้า

auzone
ก๊วนเสียว
*

พลังน้ำใจ: 10
ออฟไลน์ ออฟไลน์

กระทู้: 319



ดูรายละเอียด เว็บไซต์
« ตอบ #9 เมื่อ: 15 มีนาคม 2010, 13:39:18 »

บรรทัดที่ 362 ครับน่าจะเขียน syntax ผิดครับ อยากช่วยแต่มองไม่เห็น code อะคับ
บันทึกการเข้า

ห้ามก๊อป (copy) แบบเว็บกันนะครับ เจอทีไรใจแทบสลาย....
ใส่ลิ้งค์ได้ยังหว่า : ใครเลี้ยง หนูแฮมสเตอร์ เม่นแคระ กระต่าย หรือ หนูแกสบี้ บ้าง เม่นแคระ
รับซื้อเว็บเกี่ยวกับ สัตว์เลี้ยง | ท่องเที่ยว
vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #10 เมื่อ: 15 มีนาคม 2010, 13:54:40 »

บรรทัดที่ 362 ครับน่าจะเขียน syntax ผิดครับ อยากช่วยแต่มองไม่เห็น code อะคับ


จะแทรก iframe ลงตรงไหนดีครับ

โค๊ดที่จะแทรก
โค๊ด:
<iframe marginwidth="0" marginheight="0" src="../forums/showtopics.php" name="board" frameborder="0" width="100%" height="200" scrolling="0" ></iframe>


หน้า index.php
โค๊ด:
<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 2.0 RC2                                         *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2009 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

&#39;action-in-url&#39; => array(&#39;Source-File.php&#39;, &#39;FunctionToCall&#39;),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = &#39;SMF 2.0 RC2&#39;;

// Get everything started up...
define(&#39;SMF&#39;, 1);
if (function_exists(&#39;set_magic_quotes_runtime&#39;))
@set_magic_quotes_runtime(0);
error_reporting(defined(&#39;E_STRICT&#39;) ? E_ALL | E_STRICT : E_ALL);
$time_start microtime();

// This makes it so headers can be sent!
ob_start();

// Do some cleaning, just in case.
foreach (array(&#39;db_character_set&#39;, &#39;cachedir&#39;) as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . &#39;/Settings.php&#39;);

// Make absolutely sure the cache directory is defined.
if ((empty($cachedir) || !file_exists($cachedir)) && file_exists($boarddir . &#39;/cache&#39;))
$cachedir $boarddir . &#39;/cache&#39;;

// And important includes.
require_once($sourcedir . &#39;/QueryString.php&#39;);
require_once($sourcedir . &#39;/Subs.php&#39;);
require_once($sourcedir . &#39;/Errors.php&#39;);
require_once($sourcedir . &#39;/Load.php&#39;);
require_once($sourcedir . &#39;/Security.php&#39;);

// Using an pre-PHP5 version?
if (@version_compare(PHP_VERSION, &#39;5&#39;) == -1)
require_once($sourcedir . &#39;/Subs-Compat.php&#39;);

// If $maintenance is set specifically to 2, then we&#39;re upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();

// Create a variable to store some SMF specific functions in.
$smcFunc = array();

// Initate the database connection and define some database functions to use.
loadDatabase();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator.
if (empty($modSettings[&#39;rand_seed&#39;]) || mt_rand(1, 250) == 69)
smf_seed_generator();

// Before we get carried away, are we doing a scheduled task? If so save CPU cycles by jumping out!
if (isset($_GET[&#39;scheduled&#39;]))
{
require_once($sourcedir . &#39;/ScheduledTasks.php&#39;);
AutoTask();
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings[&#39;enableCompressedOutput&#39;]) && !headers_sent())
{
// If zlib is being used, turn off output compression.
if (@ini_get(&#39;zlib.output_compression&#39;) == &#39;1&#39; || @ini_get(&#39;output_handler&#39;) == &#39;ob_gzhandler&#39; || @version_compare(PHP_VERSION, &#39;4.2.0&#39;) == -1)
$modSettings[&#39;enableCompressedOutput&#39;] = &#39;0&#39;;
else
{
ob_end_clean();
ob_start(&#39;ob_gzhandler&#39;);
}
}

// Register an error handler.
set_error_handler(&#39;error_handler&#39;);

// Start the session. (assuming it hasn&#39;t already been.)
loadSession();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn&#39;t work in practice as much as it should.
if (isset($_REQUEST[&#39;wap&#39;]) || isset($_REQUEST[&#39;wap2&#39;]) || isset($_REQUEST[&#39;imode&#39;]))
unset($_SESSION[&#39;nowap&#39;]);
elseif (isset($_REQUEST[&#39;nowap&#39;]))
$_SESSION[&#39;nowap&#39;] = true;
elseif (!isset($_SESSION[&#39;nowap&#39;]))
{
if (isset($_SERVER[&#39;HTTP_ACCEPT&#39;]) && strpos($_SERVER[&#39;HTTP_ACCEPT&#39;], &#39;application/vnd.wap.xhtml xml&#39;) !== false)
$_REQUEST[&#39;wap2&#39;] = 1;
elseif (isset($_SERVER[&#39;HTTP_ACCEPT&#39;]) && strpos($_SERVER[&#39;HTTP_ACCEPT&#39;], &#39;text/vnd.wap.wml&#39;) !== false)
{
if (strpos($_SERVER[&#39;HTTP_USER_AGENT&#39;], &#39;DoCoMo/&#39;) !== false || strpos($_SERVER[&#39;HTTP_USER_AGENT&#39;], &#39;portalmmm/&#39;) !== false)
$_REQUEST[&#39;imode&#39;] = 1;
else
$_REQUEST[&#39;wap&#39;] = 1;
}
}

if (!
defined(&#39;WIRELESS&#39;))
define(&#39;WIRELESS&#39;, isset($_REQUEST[&#39;wap&#39;]) || isset($_REQUEST[&#39;wap2&#39;]) || isset($_REQUEST[&#39;imode&#39;]));


// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define(&#39;WIRELESS_PROTOCOL&#39;, isset($_REQUEST[&#39;wap&#39;]) ? &#39;wap&#39; : (isset($_REQUEST[&#39;wap2&#39;]) ? &#39;wap2&#39; : (isset($_REQUEST[&#39;imode&#39;]) ? &#39;imode&#39; : &#39;&#39;)));

// Some cellphones can&#39;t handle output compression...
$modSettings[&#39;enableCompressedOutput&#39;] = &#39;0&#39;;
// !!! Do we want these hard coded?
$modSettings[&#39;defaultMaxMessages&#39;] = 5;
$modSettings[&#39;defaultMaxTopics&#39;] = 9;

// Wireless protocol header.
if (WIRELESS_PROTOCOL == &#39;wap&#39;)
header(&#39;Content-Type: text/vnd.wap.wml&#39;);
}

// Restore post data if we are revalidating OpenID.
if (isset($_GET[&#39;openid_restore_post&#39;]) && !empty($_SESSION[&#39;openid&#39;][&#39;saved_data&#39;][$_GET[&#39;openid_restore_post&#39;]][&#39;post&#39;]) && empty($_POST))
{
$_POST $_SESSION[&#39;openid&#39;][&#39;saved_data&#39;][$_GET[&#39;openid_restore_post&#39;]][&#39;post&#39;];
unset($_SESSION[&#39;openid&#39;][&#39;saved_data&#39;][$_GET[&#39;openid_restore_post&#39;]]);
}

// What function shall we execute? (done like this for memory&#39;s sake.)
call_user_func(smf_main());

// Call obExit specially; we&#39;re coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
global $modSettings$settings$user_info$board$topic$board_info$maintenance$sourcedir;

// Special case: session keep-alive, output a transparent pixel.
if (isset($_GET[&#39;action&#39;]) && $_GET[&#39;action&#39;] == &#39;keepalive&#39;)
{
header(&#39;Content-Type: image/gif&#39;);
die("x47x49x46x38x39x61x01x00x01x00x80x00x00x00x00x00x00x00x00x21xF9x04x01x00x00x00x00x2Cx00x00x00x00x01x00x01x00x00x02x02x44x01x00x3B");
}

// Load the user&#39;s cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board&#39;s information.
loadBoard();

// Load the current user&#39;s permissions.
loadPermissions();

// Attachments don&#39;t require the entire theme to be loaded.
if (isset($_REQUEST[&#39;action&#39;]) && $_REQUEST[&#39;action&#39;] == &#39;dlattach&#39; && (!empty($modSettings[&#39;allow_guestAccess&#39;]) && $user_info[&#39;is_guest&#39;]))
detectBrowser();
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
else
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// If we are in a topic and don&#39;t have permission to approve it then duck out now.
if (!empty($topic) && empty($board_info[&#39;cur_topic_approved&#39;]) && !allowedTo(&#39;approve_posts&#39;) && ($user_info[&#39;id&#39;] != $board_info[&#39;cur_topic_starter&#39;] || $user_info[&#39;is_guest&#39;]))
fatal_lang_error(&#39;not_a_topic&#39;, false);

// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST[&#39;action&#39;]) || !in_array($_REQUEST[&#39;action&#39;], array(&#39;dlattach&#39;, &#39;jsoption&#39;, &#39;.xml&#39;, &#39;xmlhttp&#39;, &#39;verificationcode&#39;)))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings[&#39;hitStats&#39;]))
trackStats(array(&#39;hits&#39; => &#39; &#39;));
}

// Is the forum in maintenance mode? (doesn&#39;t apply to administrators.)
if (!empty($maintenance) && !allowedTo(&#39;admin_forum&#39;))
{
// You can only login.... otherwise, you&#39;re getting the "maintenance mode" display.
if (isset($_REQUEST[&#39;action&#39;]) && ($_REQUEST[&#39;action&#39;] == &#39;login2&#39; || $_REQUEST[&#39;action&#39;] == &#39;logout&#39;))
{
require_once($sourcedir . &#39;/LogInOut.php&#39;);
return $_REQUEST[&#39;action&#39;] == &#39;login2&#39; ? &#39;Login2&#39; : &#39;Logout&#39;;
}
// Don&#39;t even try it, sonny.
else
{
require_once($sourcedir . &#39;/Subs-Auth.php&#39;);
return &#39;InMaintenance&#39;;
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings[&#39;allow_guestAccess&#39;]) && $user_info[&#39;is_guest&#39;] && (!isset($_REQUEST[&#39;action&#39;]) || !in_array($_REQUEST[&#39;action&#39;], array(&#39;coppa&#39;, &#39;login&#39;, &#39;login2&#39;, &#39;register&#39;, &#39;register2&#39;, &#39;reminder&#39;, &#39;activate&#39;, &#39;help&#39;, &#39;smstats&#39;, &#39;mailq&#39;, &#39;verificationcode&#39;, &#39;openidreturn&#39;,))))
{
require_once($sourcedir . &#39;/Subs-Auth.php&#39;);
return &#39;KickGuest&#39;;
}
elseif (empty($_REQUEST[&#39;action&#39;]))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . &#39;/BoardIndex.php&#39;);
return &#39;BoardIndex&#39;;
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . &#39;/MessageIndex.php&#39;);
return &#39;MessageIndex&#39;;
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . &#39;/Display.php&#39;);
return &#39;Display&#39;;
}
}

// Here&#39;s the monstrous $_REQUEST[&#39;action&#39;] array - $_REQUEST[&#39;action&#39;] => array($file, $function).
$actionArray = array(
&#39;activate&#39; => array(&#39;Register.php&#39;, &#39;Activate&#39;),
&#39;admin&#39; => array(&#39;Admin.php&#39;, &#39;AdminMain&#39;),
&#39;announce&#39; => array(&#39;Post.php&#39;, &#39;AnnounceTopic&#39;),
&#39;attachapprove&#39; => array(&#39;ManageAttachments.php&#39;, &#39;ApproveAttach&#39;),
&#39;buddy&#39; => array(&#39;Subs-Members.php&#39;, &#39;BuddyListToggle&#39;),
&#39;calendar&#39; => array(&#39;Calendar.php&#39;, &#39;CalendarMain&#39;),
&#39;clock&#39; => array(&#39;Calendar.php&#39;, &#39;clock&#39;),
&#39;collapse&#39; => array(&#39;BoardIndex.php&#39;, &#39;CollapseCategory&#39;),
&#39;coppa&#39; => array(&#39;Register.php&#39;, &#39;CoppaForm&#39;),
&#39;credits&#39; => array(&#39;Who.php&#39;, &#39;Credits&#39;),
&#39;deletemsg&#39; => array(&#39;RemoveTopic.php&#39;, &#39;DeleteMessage&#39;),
&#39;display&#39; => array(&#39;Display.php&#39;, &#39;Display&#39;),
&#39;dlattach&#39; => array(&#39;Display.php&#39;, &#39;Download&#39;),
&#39;editpoll&#39; => array(&#39;Poll.php&#39;, &#39;EditPoll&#39;),
&#39;editpoll2&#39; => array(&#39;Poll.php&#39;, &#39;EditPoll2&#39;),
&#39;emailuser&#39; => array(&#39;SendTopic.php&#39;, &#39;EmailUser&#39;),
&#39;findmember&#39; => array(&#39;Subs-Auth.php&#39;, &#39;JSMembers&#39;),
&#39;groups&#39; => array(&#39;Groups.php&#39;, &#39;Groups&#39;),
&#39;help&#39; => array(&#39;Help.php&#39;, &#39;ShowHelp&#39;),
&#39;helpadmin&#39; => array(&#39;Help.php&#39;, &#39;ShowAdminHelp&#39;),
&#39;im&#39; => array(&#39;PersonalMessage.php&#39;, &#39;MessageMain&#39;),
&#39;jseditor&#39; => array(&#39;Subs-Editor.php&#39;, &#39;EditorMain&#39;),
&#39;jsmodify&#39; => array(&#39;Post.php&#39;, &#39;JavaScriptModify&#39;),
&#39;jsoption&#39; => array(&#39;Themes.php&#39;, &#39;SetJavaScript&#39;),
&#39;lock&#39; => array(&#39;LockTopic.php&#39;, &#39;LockTopic&#39;),
&#39;lockvoting&#39; => array(&#39;Poll.php&#39;, &#39;LockVoting&#39;),
&#39;login&#39; => array(&#39;LogInOut.php&#39;, &#39;Login&#39;),
&#39;login2&#39; => array(&#39;LogInOut.php&#39;, &#39;Login2&#39;),
&#39;logout&#39; => array(&#39;LogInOut.php&#39;, &#39;Logout&#39;),
&#39;markasread&#39; => array(&#39;Subs-Boards.php&#39;, &#39;MarkRead&#39;),
&#39;mergetopics&#39; => array(&#39;SplitTopics.php&#39;, &#39;MergeTopics&#39;),
&#39;mlist&#39; => array(&#39;Memberlist.php&#39;, &#39;Memberlist&#39;),
&#39;moderate&#39; => array(&#39;ModerationCenter.php&#39;, &#39;ModerationMain&#39;),
&#39;modifycat&#39; => array(&#39;ManageBoards.php&#39;, &#39;ModifyCat&#39;),
&#39;modifykarma&#39; => array(&#39;Karma.php&#39;, &#39;ModifyKarma&#39;),
&#39;movetopic&#39; => array(&#39;MoveTopic.php&#39;, &#39;MoveTopic&#39;),
&#39;movetopic2&#39; => array(&#39;MoveTopic.php&#39;, &#39;MoveTopic2&#39;),
&#39;notify&#39; => array(&#39;Notify.php&#39;, &#39;Notify&#39;),
&#39;notifyboard&#39; => array(&#39;Notify.php&#39;, &#39;BoardNotify&#39;),
&#39;openidreturn&#39; => array(&#39;Subs-OpenID.php&#39;, &#39;smf_openID_return&#39;),
&#39;pm&#39; => array(&#39;PersonalMessage.php&#39;, &#39;MessageMain&#39;),
&#39;post&#39; => array(&#39;Post.php&#39;, &#39;Post&#39;),
&#39;post2&#39; => array(&#39;Post.php&#39;, &#39;Post2&#39;),
&#39;printpage&#39; => array(&#39;Printpage.php&#39;, &#39;PrintTopic&#39;),
&#39;profile&#39; => array(&#39;Profile.php&#39;, &#39;ModifyProfile&#39;),
&#39;quotefast&#39; => array(&#39;Post.php&#39;, &#39;QuoteFast&#39;),
&#39;quickmod&#39; => array(&#39;MessageIndex.php&#39;, &#39;QuickModeration&#39;),
&#39;quickmod2&#39; => array(&#39;Display.php&#39;, &#39;QuickInTopicModeration&#39;),
&#39;recent&#39; => array(&#39;Recent.php&#39;, &#39;RecentPosts&#39;),
&#39;register&#39; => array(&#39;Register.php&#39;, &#39;Register&#39;),
&#39;register2&#39; => array(&#39;Register.php&#39;, &#39;Register2&#39;),
&#39;reminder&#39; => array(&#39;Reminder.php&#39;, &#39;RemindMe&#39;),
&#39;removepoll&#39; => array(&#39;Poll.php&#39;, &#39;RemovePoll&#39;),
&#39;removetopic2&#39; => array(&#39;RemoveTopic.php&#39;, &#39;RemoveTopic2&#39;),
&#39;reporttm&#39; => array(&#39;SendTopic.php&#39;, &#39;ReportToModerator&#39;),
&#39;requestmembers&#39; => array(&#39;Subs-Auth.php&#39;, &#39;RequestMembers&#39;),
&#39;restoretopic&#39; => array(&#39;RemoveTopic.php&#39;, &#39;RestoreTopic&#39;),
&#39;search&#39; => array(&#39;Search.php&#39;, &#39;PlushSearch1&#39;),
&#39;search2&#39; => array(&#39;Search.php&#39;, &#39;PlushSearch2&#39;),
&#39;sendtopic&#39; => array(&#39;SendTopic.php&#39;, &#39;EmailUser&#39;),
&#39;smstats&#39; => array(&#39;Stats.php&#39;, &#39;SMStats&#39;),
&#39;suggest&#39; => array(&#39;Subs-Editor.php&#39;, &#39;AutoSuggestHandler&#39;),
&#39;spellcheck&#39; => array(&#39;Subs-Post.php&#39;, &#39;SpellCheck&#39;),
&#39;splittopics&#39; => array(&#39;SplitTopics.php&#39;, &#39;SplitTopics&#39;),
&#39;stats&#39; => array(&#39;Stats.php&#39;, &#39;DisplayStats&#39;),
&#39;sticky&#39; => array(&#39;LockTopic.php&#39;, &#39;Sticky&#39;),
&#39;theme&#39; => array(&#39;Themes.php&#39;, &#39;ThemesMain&#39;),
&#39;trackip&#39; => array(&#39;Profile-View.php&#39;, &#39;trackIP&#39;),
&#39;about:mozilla&#39; => array(&#39;Karma.php&#39;, &#39;BookOfUnknown&#39;),
&#39;about:unknown&#39; => array(&#39;Karma.php&#39;, &#39;BookOfUnknown&#39;),
&#39;unread&#39; => array(&#39;Recent.php&#39;, &#39;UnreadTopics&#39;),
&#39;unreadreplies&#39; => array(&#39;Recent.php&#39;, &#39;UnreadTopics&#39;),
&#39;verificationcode&#39; => array(&#39;Register.php&#39;, &#39;VerificationCode&#39;),
&#39;viewprofile&#39; => array(&#39;Profile.php&#39;, &#39;ModifyProfile&#39;),
&#39;vote&#39; => array(&#39;Poll.php&#39;, &#39;Vote&#39;),
&#39;viewquery&#39; => array(&#39;ViewQuery.php&#39;, &#39;ViewQuery&#39;),
&#39;viewsmfile&#39; => array(&#39;Admin.php&#39;, &#39;DisplayAdminFile&#39;),
&#39;who&#39; => array(&#39;Who.php&#39;, &#39;Who&#39;),
&#39;.xml&#39; => array(&#39;News.php&#39;, &#39;ShowXmlFeed&#39;),
&#39;xmlhttp&#39; => array(&#39;Xml.php&#39;, &#39;XMLhttpMain&#39;),
);

// Get the function and file to include - if it&#39;s not there, do the board index.
if (!isset($_REQUEST[&#39;action&#39;]) || !isset($actionArray[$_REQUEST[&#39;action&#39;]]))
{
// Catch the action with the theme?
if (!empty($settings[&#39;catch_action&#39;]))
{
require_once($sourcedir . &#39;/Themes.php&#39;);
return &#39;WrapAction&#39;;
}

// Fall through to the board index then...
require_once($sourcedir . &#39;/BoardIndex.php&#39;);
return &#39;BoardIndex&#39;;
}

// Otherwise, it was set - so let&#39;s go to that action.
require_once($sourcedir . &#39;/&#39; . $actionArray[$_REQUEST[&#39;action&#39;]][0]);
return $actionArray[$_REQUEST[&#39;action&#39;]][1];
}
?>

บันทึกการเข้า

dj mixkajay
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 159
ออฟไลน์ ออฟไลน์

กระทู้: 1,766



ดูรายละเอียด เว็บไซต์
« ตอบ #11 เมื่อ: 15 มีนาคม 2010, 14:29:22 »

ทำตามวิธีนี้ ไม่ง่ายกว่าหรอ ผมก็ทำอยู่ นานแล้ว ใช้ได้ปกติ

http://www.thaiesaan.com/board/index.php?topic=214.0

ผลลัพธ์ เวบผมเอง

http://www.dj-sr.com/bbs/
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #12 เมื่อ: 15 มีนาคม 2010, 14:30:34 »

ทำตามวิธีนี้ ไม่ง่ายกว่าหรอ ผมก็ทำอยู่ นานแล้ว ใช้ได้ปกติ

http://www.thaiesaan.com/board/index.php?topic=214.0


ทำแล้วครับ ไม่มีอะไรเปลี่ยนแปลงเลย งงจริง ๆ ครับ ของผม RC2 นะครับ
« แก้ไขครั้งสุดท้าย: 15 มีนาคม 2010, 14:38:44 โดย vava » บันทึกการเข้า

auzone
ก๊วนเสียว
*

พลังน้ำใจ: 10
ออฟไลน์ ออฟไลน์

กระทู้: 319



ดูรายละเอียด เว็บไซต์
« ตอบ #13 เมื่อ: 15 มีนาคม 2010, 14:40:13 »

ถ้าเป็นผมจะเพิ่มใน BoardIndex.template.php ครับบนๆหนะครับ ส่วนนั้นคือส่วนบนของบอร์ดในหน้าแรกครับ ไม่ใช่หน้า index.php ครับ
แต่ตรงส่วนนี้พอดีที่เครื่องไม่มี code smf อิอิ ลองดูคับ

ครับ ^^
บันทึกการเข้า

ห้ามก๊อป (copy) แบบเว็บกันนะครับ เจอทีไรใจแทบสลาย....
ใส่ลิ้งค์ได้ยังหว่า : ใครเลี้ยง หนูแฮมสเตอร์ เม่นแคระ กระต่าย หรือ หนูแกสบี้ บ้าง เม่นแคระ
รับซื้อเว็บเกี่ยวกับ สัตว์เลี้ยง | ท่องเที่ยว
dj mixkajay
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 159
ออฟไลน์ ออฟไลน์

กระทู้: 1,766



ดูรายละเอียด เว็บไซต์
« ตอบ #14 เมื่อ: 15 มีนาคม 2010, 14:45:42 »

ของผม 1.1 นะ

ในส่วนของ BoardIndex.template.php ของ default ไม่ใช่ในธีมปัจจุบันนะ

require("/home/ยูสเซอร์/domains/โดเมน/public_html/บอร์ด/SSI.php");


ต้องเป็นแบบนี้นะ
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #15 เมื่อ: 15 มีนาคม 2010, 14:48:32 »

ของผม 1.1 นะ

ในส่วนของ BoardIndex.template.php ของ default ไม่ใช่ในธีมปัจจุบันนะ

require("/home/ยูสเซอร์/domains/โดเมน/public_html/บอร์ด/SSI.php");


ต้องเป็นแบบนี้นะ
ของผมเป็นแบบนี้ครับ ในตีม default ครับ

require("/home/monkeydig/domains/photoshopdd.com/public_html/forums/SSI.php");
บันทึกการเข้า

vava
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 532
ออฟไลน์ ออฟไลน์

กระทู้: 4,896



ดูรายละเอียด เว็บไซต์
« ตอบ #16 เมื่อ: 15 มีนาคม 2010, 14:49:32 »

ถ้าเป็นผมจะเพิ่มใน BoardIndex.template.php ครับบนๆหนะครับ ส่วนนั้นคือส่วนบนของบอร์ดในหน้าแรกครับ ไม่ใช่หน้า index.php ครับ
แต่ตรงส่วนนี้พอดีที่เครื่องไม่มี code smf อิอิ ลองดูคับ

ครับ ^^
ครับผม งั้นขอลองแล้วกัน ^^


ขอบคุณมากครับ
บันทึกการเข้า

auzone
ก๊วนเสียว
*

พลังน้ำใจ: 10
ออฟไลน์ ออฟไลน์

กระทู้: 319



ดูรายละเอียด เว็บไซต์
« ตอบ #17 เมื่อ: 15 มีนาคม 2010, 14:53:57 »


ผลลัพธ์ เวบผมเอง

http://www.dj-sr.com/bbs/



สมาชิก ออนไลน์ เยอะมากกกกคับ
บันทึกการเข้า

ห้ามก๊อป (copy) แบบเว็บกันนะครับ เจอทีไรใจแทบสลาย....
ใส่ลิ้งค์ได้ยังหว่า : ใครเลี้ยง หนูแฮมสเตอร์ เม่นแคระ กระต่าย หรือ หนูแกสบี้ บ้าง เม่นแคระ
รับซื้อเว็บเกี่ยวกับ สัตว์เลี้ยง | ท่องเที่ยว
dj mixkajay
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 159
ออฟไลน์ ออฟไลน์

กระทู้: 1,766



ดูรายละเอียด เว็บไซต์
« ตอบ #18 เมื่อ: 15 มีนาคม 2010, 14:55:08 »

ของผม 1.1 นะ

ในส่วนของ BoardIndex.template.php ของ default ไม่ใช่ในธีมปัจจุบันนะ

require("/home/ยูสเซอร์/domains/โดเมน/public_html/บอร์ด/SSI.php");


ต้องเป็นแบบนี้นะ
ของผมเป็นแบบนี้ครับ ในตีม default ครับ

require("/home/monkeydig/domains/photoshopdd.com/public_html/forums/SSI.php");

งั้นลองไปในธีมปัจจุบัน BoardIndex.template.php

require("SSI.php");


ผมก็ลืม ทำมาเป็นปีละ -*-
บันทึกการเข้า

dj mixkajay
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 159
ออฟไลน์ ออฟไลน์

กระทู้: 1,766



ดูรายละเอียด เว็บไซต์
« ตอบ #19 เมื่อ: 15 มีนาคม 2010, 14:58:00 »


ผลลัพธ์ เวบผมเอง

http://www.dj-sr.com/bbs/



สมาชิก ออนไลน์ เยอะมากกกกคับ


มันหลอกตา ครับ ผมตั้ง Log 1 วัน  จิตวิทยาทำให้บอร์ด เหมือนมีคนอยู่เยอะ คนเข้ามาจะได้ไม่เหงา
บันทึกการเข้า

หน้า: [1] 2   ขึ้นบน
พิมพ์