Làm sao để Promote bài viết ra Xenporta (Portal)

Thảo luận trong 'General Discussions' bắt đầu bởi tuancanhtg, 4/1/15.

1votes
5/5, 1 vote

  1. tuancanhtg

    tuancanhtg New Member

    Bài viết:
    15
    Likes :
    1
    Mình đang dùng Xenporta 1.6 và gặp trường hợp như sau:
    1. Khi đăng bài, mình Promote, nếu có 1 ảnh đính kèm thì promote bình thường, nhưng khi bài có nhiều ảnh đính kèm thì khi promote thì tất cả ảnh đính kèm sẽ hiện ra portal. Vậy làm sao để khắc phục để chỉ xuất hiện 1 ảnh đính kèm thôi?
    2. Khi điều chỉnh Max Summary Length, hay News Posts Per Page, mình đều bị lỗi là
    Mã:
    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 = ' at line 11 in C:\xampp\htdocs\new\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 227
    XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 71
    XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 586
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
    XenForo_FrontController->run() in C:/xampp/htdocs/new/index.php at line 13
    làm sao để khắc phục? Mình đã gỡ ra và cài lại Xenporta nhiều lần, và sau đó đều bị lỗi tương tự.

    Mong các bạn sớm giúp đỡ mình khắc phục 2 vấn đề trên.
    Cảm ơn các bạn.
     
    Đang tải...
comments powered by Disqus

Chia sẻ trang này

Đang tải...