admin
17-10-2009, 10:57 AM
Demo online: http://data.sinhvienit.net
Demo ảnh:
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/12281255754147.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/88041255754160.jpg
Các chức năng mới trong bản này:
+ Sửa lỗi login
+ Chức năng xem lại các file đã upload
+ Chức năng Preview file đã upload
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/13651255754281.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/68951255754296.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/57401255754308.jpg
Hướng dẫn:
Down code về giải nén ra, mở file config.php để cấu hình
/*Data path and file type*/
//------------For Audio File
$path['audio']='audio1';
$file['audio']='mp3,wma';
//-----------For Video File
$path['video']='video1';
$file['video']='flv,wmv';
//-----------For Images File
$path['image']='imgs5';
$file['image']='jpg,jpeg,png,gif,bmp';
//-----------For Orther File
$path['orther']='files3';
$file['orther']='zip,rar,gz,txt,pdf,doc,docx,xml,swf,js';
/*Seting*/
//-----------Max size
$setting['max_size']=8*1024*1024;//Tinh bang byte
//-----------Max size Per 1 User
$setting['max_per_user']=100;//Tinh bang MB
//-----------Upload site
$setting['upload_site']='http://sinhvienit.net/data';
//-----------Tien to cho file
$setting['tiento']='SinhVienIT.Net---';
//-----------Input number (Số thẻ input cho người dùng duyệt tới file upload)
$setting['input_number']=15;
//-----------File number in 1 page (Số file hiển thị trên 1 trang trong phần mỳiille)
$setting['file_per_page']=15;
//----------Number of char for filename in myfile (SỐ ký tự để hiện thị tên file, nhắm tránh vỡ giao diện)
$setting['filename_len']=42;
/*Database of forum*/
$data['host']='localhost';
$data['name']='svit';
$data['user']='root';
$data['pass']='laivt';
$data['prefix']='';
/*data for This Script*/
$data['dataprefix']='data_';
Chú ý đoạn:
$data['prefix']='';
Chính là đoạn sau trong file config.php của forum VBB (thường mặc định mục này để trống nên bạn không cần chỉnh sửa gì tại đây)
$config['Database']['tableprefix'] = '';
Sau khi cấu hình xong thì upload toàn bộ code lên host (Host này phải cùng server chứa forum thì mới dùng member của forum được
Upload xong thì chmod cho các thư mục dc upload là 777
Cụ thể là nếu cấu hình như trên sẽ là các thư mục sau:
upload/audio
upload/video
upload/img
upload/file
Sau khi chmod xong chạy đường dẫn sau: http://yoursite/install.php (http://sinhvienit.net/@forum/links.php?url=http://yoursite/install.php)
Nếu nó báo Trích:
Cập nhật database thành công !
là Ok rùi đó !
http://upload.nhacmoi.info/PHP/data.sinhvienit.net2.0.zip
Demo ảnh:
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/12281255754147.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/88041255754160.jpg
Các chức năng mới trong bản này:
+ Sửa lỗi login
+ Chức năng xem lại các file đã upload
+ Chức năng Preview file đã upload
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/13651255754281.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/68951255754296.jpg
http://img.photo.zing.vn/file_uploads/gallery/sources/2009/10/17/11/57401255754308.jpg
Hướng dẫn:
Down code về giải nén ra, mở file config.php để cấu hình
/*Data path and file type*/
//------------For Audio File
$path['audio']='audio1';
$file['audio']='mp3,wma';
//-----------For Video File
$path['video']='video1';
$file['video']='flv,wmv';
//-----------For Images File
$path['image']='imgs5';
$file['image']='jpg,jpeg,png,gif,bmp';
//-----------For Orther File
$path['orther']='files3';
$file['orther']='zip,rar,gz,txt,pdf,doc,docx,xml,swf,js';
/*Seting*/
//-----------Max size
$setting['max_size']=8*1024*1024;//Tinh bang byte
//-----------Max size Per 1 User
$setting['max_per_user']=100;//Tinh bang MB
//-----------Upload site
$setting['upload_site']='http://sinhvienit.net/data';
//-----------Tien to cho file
$setting['tiento']='SinhVienIT.Net---';
//-----------Input number (Số thẻ input cho người dùng duyệt tới file upload)
$setting['input_number']=15;
//-----------File number in 1 page (Số file hiển thị trên 1 trang trong phần mỳiille)
$setting['file_per_page']=15;
//----------Number of char for filename in myfile (SỐ ký tự để hiện thị tên file, nhắm tránh vỡ giao diện)
$setting['filename_len']=42;
/*Database of forum*/
$data['host']='localhost';
$data['name']='svit';
$data['user']='root';
$data['pass']='laivt';
$data['prefix']='';
/*data for This Script*/
$data['dataprefix']='data_';
Chú ý đoạn:
$data['prefix']='';
Chính là đoạn sau trong file config.php của forum VBB (thường mặc định mục này để trống nên bạn không cần chỉnh sửa gì tại đây)
$config['Database']['tableprefix'] = '';
Sau khi cấu hình xong thì upload toàn bộ code lên host (Host này phải cùng server chứa forum thì mới dùng member của forum được
Upload xong thì chmod cho các thư mục dc upload là 777
Cụ thể là nếu cấu hình như trên sẽ là các thư mục sau:
upload/audio
upload/video
upload/img
upload/file
Sau khi chmod xong chạy đường dẫn sau: http://yoursite/install.php (http://sinhvienit.net/@forum/links.php?url=http://yoursite/install.php)
Nếu nó báo Trích:
Cập nhật database thành công !
là Ok rùi đó !
http://upload.nhacmoi.info/PHP/data.sinhvienit.net2.0.zip