Thứ Năm, 22 tháng 11, 2012

Những vấn đề cho người mới (sự cố 1)

Lỗi:
An exception occurred: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR EWRporta_promotes.promote_date < ?) AND xf_thread.discussion_state = 'v' at line 11 in /home/a8895537/public_html/library/Zend/Db/Statement/Mysqli.php on line 77
Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
Zend_Db_Adapter_Abstract->fetchAll() in EWRporta/Block/RecentNews.php at line 38
EWRporta_Block_RecentNews->getModule() in EWRporta/Model/Blocks.php at line 116
EWRporta_Model_Blocks->getBlockParams() in EWRporta/ViewPublic/Custom.php at line 71
EWRporta_ViewPublic_Custom->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 533
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in /home/a8895537/public_html/index.php at line 13


Cái này nó báo không thấy table nào có tên EWRporta_Block_RecentNews, EWRporta_Model_Blocks, EWRporta_ViewPublic_Custom
Bạn sửa như sau :
vào database tìm cái table nào có tên đầu là : ewrporta_.........sửa thành EWRporta_.......là ok.
VD:ewrporta_Block_RecentNews --> bạn sủa thành cái này: EWRporta_Block_RecentNews , là ok .Cái khác cung như thế .
Hoặc bạn Insert cái table này vào cái database của bạn: dowload .
(Thanks thành viên vnmio trên vietxf.org)
z

Những vấn đề cho người mới P2

Cách Export template:
Appearance -> Styles -> Chọn styles mà bạn muốn export -> export =>Xuất ra 1 file XML
Template hoàn thiện gồm XML + source style.
zzz

Những vấn đề cho người mới

Sửa màu chữ người Post bài:
Thay
<span class="posted"> Bởi <a href="{xen:link members, $news}" class="username">{$news.username}</a>
Bằng
<span class="posted"><font color="#e54b29"> Bởi <a href="{xen:link members, $news}" class="username">{$news.username}</a>

Ảnh hiển thị lớn lên bạn làm như sau
Mở Template RecentNews tìm đoạn code:
<a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
=
<a href="{xen:link threads, $news}"><img src="{xen:link attachments, $news.attach}" style="max-width: ***px;" /></a>

xx


Cài thêm ngôn ngữ bản địa cho xenforo

Tiếng Việt Nam (vietnam)Language Tiếng Việt Xenforo 1.1.2
http://www.mediafire.com/file/i4bu0kz5pybx5pc/language-Tieng-Viet-xenforo-1.1.2.zip
(Thanks xenforo.biz)
Tác giả: VIETXF.ORG
Bản dịch:
Bản dịch này đã được trích từ các bản dịch trước nên khá đầy đủ.
Gần như đã hoàn chỉnh tầm 98%
Ngôn từ dùng trong bản dịch này hay, ngắn gọn, xúc tích và dễ hiểu.
Bản dịch này chỉ dịch phần bên ngoài Forum. Không dịch Admin Control Panel đâu nhé!
Demo: http://Vietxf.org
Tải về http://vietxf.org/attachments/language-tieng-viet-1-1-3-vietxf-rar.1622/
(Thanks vietxf.org)

Tiếng Nga :Tác giả: Romchik®
Ngôn ngữ: tiếng Nga
Phiên bản: 1.1.3
http://vietxf.org/attachments/xenforo_113_rus_xfr_121-zip.1633/

Download các bản Xenforo

Bản gốc tại trang chủ nhà phát hành (phải mua)

Demo | Dùng thử và mua
http://xenforo.com/
Bản giới thiệu từ diễn đàn xenforo Việt:
http://vietxf.org/
Bản giới thiệu từ các địa chỉ khác:
http://xenforo.biz/for@um/forums/xenforo-1-x-x.24/
http://www.mediafire.com/xenforo 

video cài xenforo từ xenforoBiz


Thanks Xenforo.biz

Video cách cài đặt XenForo trên localhost.

Đầu tiên bạn cần phải có bộ cài Appserv phiên bản mới nhất (2.5.10)
http://www.appservnetwork.com/modules.php?name=News&file=article&sid=46
Tiếp theo là bạn download bộ mã nguồn XenForo bản mới nhất hiện tại là 1.1.3
http://vietxf.org/attachments/xenforo-v1-1-3-php-null-vietxf-org-rar.1110/

Sau đây là 2 clip hướng dẫn chi tiết cài đặt:



Thanks ietxf.org