Lương Sơn Bạc  
Trang chủ Lương Sơn Bạc  Lương Sơn Diễn Đàn  Nơi Lưu Trữ: Truyện Ngắn, Truyện Dài, Bài Viết, Nhân Vật, Sách Lịch Sử, Sách Dạy Võ Thuật...   Xem hình thành viên và hình các buổi giao lưu LSB   Nơi Lưu Trữ: Cổ Thi VN, Cổ Thi TQ, Thơ Mới & Các Tuyển Tập Thơ
Quay Lại   Lương Sơn Bạc > Chu Tước Đài > Tin Học > Thiết kế web & forum
Thành viên
Mật khẩu
Những câu hỏi thường gặp Danh sách các thành viên LSB  Lương Sơn Thương Quán
Trả lời
 
Tiện ích Chế độ hiển thị
Cũ 11-02-2008   #1
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.462
Tâm trạng:
LSB-Vipno3 đang offline
 
Hỏi đáp thắc mắc về vBulletin Board

Topic để các bạn có hỏi hoặc thắc mắc về cách làm forum vBB .

Lưu ý : Chỉ hỏi đáp thắc mắc về vBB . Nếu spam sẽ phạt thẻ nặng .

Tài sản của LSB-Vipno3
Trả lời kèm theo trích dẫn
Cũ 11-02-2008   #2
Ảnh thế thân của Kid1412_The_Thief
Kid1412_The_Thief
-=[ Lâu La ]=-
Gia nhập: 11-02-2008
Bài viết: 5
Điểm: 1
L$B: 1.469
Kid1412_The_Thief đang offline
 
Bạn ơi cho mình hỏi khi làm xong phần database rồi, đã sửa cái tập tin config.php rồi nhưng vào install thì ko đc tại sao vậy???

Tài sản của Kid1412_The_Thief
Trả lời kèm theo trích dẫn
Cũ 11-02-2008   #3
Ảnh thế thân của LSB-Vipno3
LSB-Vipno3
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 14-02-2007
Bài viết: 2.651
Điểm: 122
L$B: 190.462
Tâm trạng:
LSB-Vipno3 đang offline
 
Trích dẫn:
Bạn ơi cho mình hỏi khi làm xong phần database rồi, đã sửa cái tập tin config.php rồi nhưng vào install thì ko đc tại sao vậy???
Bạn chú ý xem đã sửa đúng chưa nha . Theo câu trên ko thấy bạn nói gì đến upload mục forum lên host nhỉ .

Tài sản của LSB-Vipno3
Trả lời kèm theo trích dẫn
Cũ 10-05-2008   #4
Ảnh thế thân của Phong Bình
Phong Bình
-=[ Lâu La ]=-
Gia nhập: 16-02-2008
Bài viết: 67
Điểm: 1
L$B: 3.876
Tâm trạng:
Phong Bình đang offline
 
Vị huynh đài kia chưa sử dụng được mặc dù đã config là do quyền user với database đó của huynh đài chưa chuẩn ! Người mới làm hay gặp lỗi này !


Chữ ký của Phong Bình

Trả lời kèm theo trích dẫn
Cũ 11-05-2008   #5
Ảnh thế thân của HeoSuaXongDzoLua
HeoSuaXongDzoLua
-=[ Lâu La ]=-
Gia nhập: 11-05-2008
Bài viết: 3
Điểm: 1
L$B: 1.013
HeoSuaXongDzoLua đang offline
 
Em thực hành làm forum theo hướng dẫn của Sổ tay vBulletin 1.2

Khi đến phần
Trích dẫn:
II.1 Bước 1: Tải file lên server
Tạo một thư mục trên server của bạn dùng để chứ file chương trình. Vd, nếu bạn muốn truy cập vào forum thông qua địa chỉ ‘http://www.domain.com/forum’, hãy tạo một thư mục con tên là ‘forum’ trong thư mục ‘public_html’ hoặc ‘www’ của webserver.
Giải nén file chương trình. Mở thư mục 'upload/includes/'. Trong thư mục này bạn sẽ tìm thấy file ‘config.php.new’. Bạn phải đổi tên file này thành ‘config.php’ và mở nó bằng một trình biên soạn PHP (notePad chẳng hạn ^_^ ).

File này có chú thích rất rõ ràng, bạn chỉ cần làm theo hướng dẫn để khai báo các thông số cần thiết cho vB. Trong hầu hết các trường hợp, các thông số bạn cần lưu tâm là:
Tên của database dùng để cài đặt và sử dụng vB:

Trích dẫn:
$config['Database']['dbname'] = 'forum';
User name, password kết nối vào Dabase:

Trích dẫn:
$config['MasterServer']['username'] = 'root';
$config['MasterServer']['password'] = '123456';
Tiếp đầu ngữ cho mỗi table, dành cho trường hợp bạn cài nhiều phiên bản trên cùng một Database, prefix sẽ giúp cho các table không trùng tên:

Trích dẫn:
$config['Database']['tableprefix'] = '';
Email của nhà quản trị website, trong trường hợp vB bị sự cố nào đó trong quá trình hoạt động, thông báo sẽ được gởi đến địa chỉ email này:

Trích dẫn:
$config['Database']['technicalemail'] = '[email protected]';
em đã làm theo yêu cầu nhưng khi
Trích dẫn:
Bật trình duyệt và chạy trình cài đặt bằng cách gõ URL vào thanh địa chỉ của trình duyệt. Vd, nếu bạn tạo thư mục có cấu trúc như bước 1, hãy gõ vào http://www.domain.com/forum/install/install.php, thay ‘domain.com’ bằng địa chỉa website của bạn. hoặc http://localhost/forum/install/install.php (chạy trên localhost)
thì nó ko ra bước tiếp theo . Và báo lỗi như sau :

Trích dẫn:
Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\install\init.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\install\init.php on line 74Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\install\init.php on line 82
Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\install\init.php on line 162

Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\install\init.php on line 174

Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\forum\includes\class_core.php on line 2468

Fatal error: Call to undefined function get_magic_quotes_gpc() in C:\AppServ\www\forum\includes\class_core.php on line 1595
File init.php ( em ko biết cách up lên diễn đàn - hay là box này ko cho up ? - mới gia nhập nên ko rành T_T ) có code sau ( phiên bản vbb_3.7.5 ):
PHP Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.7.0 Beta 5
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2008 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

if (!defined('VB_AREA') AND !defined('THIS_SCRIPT'))
{
    echo 
'VB_AREA or THIS_SCRIPT must be defined to continue';
    exit;
}

if (isset(
$_REQUEST['GLOBALS']) OR isset($_FILES['GLOBALS']))
{
    echo 
'Request tainting attempted.';
    exit;
}

// set the current unix timestamp
define('TIMENOW'time());
define('SAPI_NAME'php_sapi_name());
define('SAFEMODE', (@ini_get('safe_mode') == OR strtolower(@ini_get('safe_mode')) == 'on') ? true false);

// try to force display_errors on
@ini_set('display_errors'true);

// define current directory
if (!defined('CWD'))
{
    
define('CWD', (($getcwd getcwd()) ? $getcwd '.'));
}

// #############################################################################
// fetch the core classes
require_once(CWD '/includes/class_core.php');

// initialize the data registry
$vbulletin =& new vB_Registry();

// parse the configuration ini file
$vbulletin->fetch_config();

if (
CWD == '.')
{
    
// getcwd() failed and so we need to be told the full forum path in config.php
    
if (!empty($vbulletin->config['Misc']['forumpath']))
    {
        
define('DIR'$vbulletin->config['Misc']['forumpath']);
    }
    else
    {
        
trigger_error('<strong>Configuration</strong>: You must insert a value for <strong>forumpath</strong> in config.php'E_USER_ERROR);
    }
}
else
{
    
define('DIR'CWD);
}

// load database class
switch (strtolower($vbulletin->config['Database']['dbtype']))
{
    
// load standard MySQL class
    
case 'mysql':
    case 
'mysql_slave':
    case 
'':
    {
        
$db =& new vB_Database($vbulletin);
        break;
    }

    
// load MySQLi class
    
case 'mysqli':
    case 
'mysqli_slave':
    {
        
$db =& new vB_Database_MySQLi($vbulletin);
        break;
    }

    
// load extended, non MySQL class
    
default:
    {
    
// this is not implemented fully yet
    //    $db = 'vB_Database_' . $vbulletin->config['Database']['dbtype'];
    //    $db =& new $db($vbulletin);
        
die('Fatal error: Database class not found');
    }
}

$db->appshortname 'vBulletin (' VB_AREA ')';

if (!
defined('SKIPDB'))
{
    
// we do not want to use the slave server at all during this process
    // as latency problems may occur
    
$vbulletin->config['SlaveServer']['servername'] = '';
    
// make database connection
    
$db->connect(
        
$vbulletin->config['Database']['dbname'],
        
$vbulletin->config['MasterServer']['servername'],
        
$vbulletin->config['MasterServer']['port'],
        
$vbulletin->config['MasterServer']['username'],
        
$vbulletin->config['MasterServer']['password'],
        
$vbulletin->config['MasterServer']['usepconnect'],
        
$vbulletin->config['SlaveServer']['servername'],
        
$vbulletin->config['SlaveServer']['port'],
        
$vbulletin->config['SlaveServer']['username'],
        
$vbulletin->config['SlaveServer']['password'],
        
$vbulletin->config['SlaveServer']['usepconnect'],
        
$vbulletin->config['Mysqli']['ini_file'],
        
$vbulletin->config['Mysqli']['charset']
    );
    if (!empty(
$vbulletin->config['Database']['force_sql_mode']))
    {
        
$db->force_sql_mode('');
    }

    
// make $db a member of $vbulletin
    
$vbulletin->db =& $db;

    
// #############################################################################
    // fetch options and other data from the datastore

    // grab the MySQL Version once and let every script use it.
    
$mysqlversion $db->query_first("SELECT version() AS version");
    
define('MYSQL_VERSION'$mysqlversion['version']);

    if (
VB_AREA == 'Upgrade')
    {
        
$optionstemp false;

        
$db->hide_errors();
            
$optionstemp $db->query_first("SELECT template FROM template WHERE title = 'options' AND templatesetid = -1");
        
$db->show_errors();

        
// ## Found vB2 Options so use them...
        
if ($optionstemp)
        {
            eval(
$optionstemp['template']);
            
$vbulletin->options =& $vboptions;
            
$vbulletin->versionnumber $templateversion;
        }
        else
        {
            
// we need our datastore table to be updated properly to function
            
$db->hide_errors();
            
$db->query_write("ALTER TABLE " TABLE_PREFIX "datastore ADD unserialize SMALLINT NOT NULL DEFAULT '2'");
            
$db->show_errors();

            
$datastore_class = (!empty($vbulletin->config['Datastore']['class'])) ? $vbulletin->config['Datastore']['class'] : 'vB_Datastore';

            if (
$datastore_class != 'vB_Datastore')
            {
                require_once(
DIR '/includes/class_datastore.php');
            }
            
$vbulletin->datastore =& new $datastore_class($vbulletin$db);
            
$vbulletin->datastore->fetch($specialtemplates);
        }
    }
    else if (
VB_AREA == 'Install')
    { 
// load it up but don't actually call fetch, we need the ability to overwrite fields.
        
$datastore_class = (!empty($vbulletin->config['Datastore']['class'])) ? $vbulletin->config['Datastore']['class'] : 'vB_Datastore';

        if (
$datastore_class != 'vB_Datastore')
        {
            require_once(
DIR '/includes/class_datastore.php');
        }
        
$vbulletin->datastore =& new $datastore_class($vbulletin$db);
    }

    
// ## Load latest bitfields, overwrite datastore versions (if they exist)
    // ## (so latest upgrade script can access any new permissions)
    
require_once(DIR '/includes/class_bitfield_builder.php');
    if (
vB_Bitfield_Builder::build_datastore() !== false)
    {
        
$myobj =& vB_Bitfield_Builder::init();
        require_once(
DIR '/includes/functions.php');
        require_once(
DIR '/includes/functions_misc.php');

        foreach (
array_keys($myobj->datastore) AS $group)
        {
            
$vbulletin->{'bf_' $group} =& $myobj->datastore["$group"];
            foreach (
array_keys($myobj->datastore["$group"]) AS $subgroup)
            {
                
$vbulletin->{'bf_' $group '_' $subgroup} =& $myobj->datastore["$group"]["$subgroup"];
            }
        }
    }
    else
    {
        
trigger_error('Error Building Bitfields'E_USER_ERROR);
    }
}

// setup an empty hook class in case we run some of the main vB code
require_once(DIR '/includes/class_hook.php');
$hookobj =& vBulletinHook::init();
$vbulletin->pluginlist '';

/*======================================================================*\
|| ####################################################################
|| #
|| # CVS: $RCSfile$ - $Revision: 17122 $
|| ####################################################################
\*======================================================================*/
?>
Đại khái là làm theo ebook đến bước đó thì em ko biết cách làm biết và sửa như thế nào T_T . Ebook chỉ thực hành tiếp khi chắc chắn đúng .

Cám ơn đã đọc . Huynh đài nào có kinh nghiệm và có lòng tốt xin add yahoo của em : [email protected] .
Cám ơn lần nữa .

Trả lời kèm theo trích dẫn
Cũ 20-05-2008   #6
Ảnh thế thân của toxicvip
toxicvip
-=[ Lâu La ]=-
Gia nhập: 20-05-2008
Bài viết: 2
Điểm: 1
L$B: 904
toxicvip đang offline
 
Cho em nhờ chút
-Em làm theo sự hướng dẫn của 1 cái video làm 4rum = VBB, nhưng làm đến chỗ sao chép cái thư mục forum thì rất lâu ( có cách nào nhanh hơn không vậy )

Trả lời kèm theo trích dẫn
Cũ 16-08-2008   #7
Ảnh thế thân của detutruong
detutruong
-=[ Lâu La ]=-
Gia nhập: 19-05-2006
Bài viết: 71
Điểm: 1
L$B: 10.577
detutruong đang offline
 
Cpanel Username: fees0_2233963
Cpanel Password: 123456
Your URL: http://ddhoangyen.0fees.net or http://www.ddhoangyen.0fees.net
FTP Server : ftp.0fees.net
FTP Login : fees0_2233963
FTP Password : 123456
MySQL Database Name: fees0_2233963_diendan
MySQL Username : fees0_2233963
MySQL Password : 123456
MySQL Server: SEE THE CPANEL

POP3 Server : mail.0fees.net
POP3 Username : fees0_2233963
POP3 Password : 123456

thông số của hót em là như zay thế trong files bigdump.php em fai dien ra sao

// Database configuration



$db_server = "???????????";

$db_name = "???????????";

$db_username = "???????????";

$db_password = "?????????";





// Other Settings



$filename = "???????????????"; // Specify the dump filename to suppress the file selection dialog


Chữ ký của detutruong

http://cuahangtinhnhan.com - Giữ mãi phút giây hạnh phúc

Trả lời kèm theo trích dẫn
Cũ 16-09-2008   #8
Ảnh thế thân của Hà Sáo
Hà Sáo
-=[ Lương Sơn Anh Hùng ]=-
Gia nhập: 07-02-2004
Bài viết: 1.536
Điểm: 122
L$B: 9.922
Tâm trạng:
Hà Sáo đang offline
 
Vipno3 cho xin cái Code Bộ Gõ của vBB và cả Hướng Dẫn luôn nhá !


Chữ ký của Hà Sáo

Trả lời kèm theo trích dẫn
Cũ 17-09-2008   #9
Ảnh thế thân của MrLuck™
MrLuck™
-=[ Tiên Phong Đầu Lĩnh ]=-
♠ Quậy Phá Bang ♠.
Gia nhập: 15-07-2003
Bài viết: 8.166
Điểm: 1358
L$B: 150.185
Tâm trạng:
MrLuck™ đang offline
 
Trích dẫn:
Nguyên văn gởi bởi Hà Sáo Xem bài viết
Vipno3 cho xin cái Code Bộ Gõ của vBB và cả Hướng Dẫn luôn nhá !
- Vào Admin Control Panel >> Styles & Templates >> Search in Templates >> Chọn Style đang dùng >> Search for Text >> Đánh vào từ khóa: footer >> Double click vào footer >> kéo xuống cuối cùng của Template này và copy đoạn code sau dán vào



Trích dẫn:
<script language="javascript1.2" type="text/javascript" src="him.js"></script>
- Tiếp tục vào VBulletin Options >> Censorship Options >> Edit Options >> Blank Character Stripper >> Xóa hết dãy số và kí tự trong ô này đi.
- Thế là xong phần bộ gõ cho Diễn Đàn rồi đó
+ Nhúng vào Admin Control Panel:
- Tiếp tục upload file him.js vào thư mục clientscript (hoặc chỉ đường dẫn chính xác trong đoạn code bên dưới).
- Open file adminfuntions.php tìm đoạn:



Trích dẫn:
/**
* Prints the page footer, finishes Gzip encoding and terminates execution
*/
function print_cp_footer()
{
Thêm vào bên dưới:



Trích dẫn:
// Begin HIM Editor for Admin Control Panel
echo("<script language='javascript1.2' src=\"../clientscript/him.js\"></script>");
// End HIM Editor for Admin Control Panel
(Chú ý là nếu bạn ko muốn upload file him.js vào thư mục clientscript thì phải chọn đường dẫn chính xác để gọi file him.js ở đây đường dẫn sẽ là: src=\"../him.js\" )
- Save file adminfuntions.php và upload lại lên host.
Kết thúc phần nhúng bộ gõ.
File gửi kèm
Loại File: zip him.zip (8,9 KB, Đã tải về 9 lần)

Tài sản của MrLuck™
Trả lời kèm theo trích dẫn
Trả lời


Quyền sử dụng
Huynh đệ không được phép tạo chủ đề mới
Huynh đệ không có quyền gửi bài trả lời
Huynh đệ không được phép gửi file-gửi-kèm
Huynh đệ không được phép sửa bài của mình

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt
Chuyển nhanh đến:

 
Copyright © 2002 - 2010 Luongsonbac.club
Thiết kế bởi LSB-TongGiang & LSB-NgoDung
Loading

Múi giờ tính theo GMT +7. Hiện giờ là 14:54
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Liên hệ - Lương Sơn Bạc - Lưu trữ  
Page generated in 0,06330 seconds with 16 queries