Ad Manager Forum 1.2

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,827
Được Like
12,687
Mô tả:

Dễ dàng quản lý script quảng cáo và để chúng hiển thị trong forum list và forum view.

(Ví dụ về quảng cáo)

pic001.jpg

(Ví dụ về quảng cáo đáp ứng)

pic002.jpg

(Ví dụ về User Group Permissions)

pic003.jpg

Các tính năng:
  • Quảng cáo được hiển thị trong forum list và forum view.
  • Quảng cáo được hiển thị trên và dưới.
  • Hiển thị đáp ứng.
  • User Group Permissions xác định nhóm người dùng sẽ thấy được các quảng cáo.
Cài đặt:
  1. Tải xuống admanagerforum_v1.2.zip và giải nén ra.
  2. Từ Admin Control Panel của bạn, hãy vào trang Install Add-on.
  3. Upload file addon-AdManagerForum_v1.2.xml.
  4. Nhấn vào nút Install Add-on.
Permissions:

Thiết lập User Group Permissions để xác định các thành viên sẽ nhìn thấy quảng cáo.

Chỉnh sửa Template:

Liên kết mã script của bạn cần được bổ sung vào template sau:

andy_admanagerforum

Hiển thị nhiều hơn so với một script:

Để hiển thị nhiều hơn một script một cách ngẫu nhiên, sử dụng code sau đây:
Mã:
<xen:set var="$banners.1">
add script here
</xen:set>

<xen:set var="$banners.2">
add script here
</xen:set>

{xen:raw '$banners.{xen:calc '({$serverTime} % 2) + 1'}'}


Nguồn: xenforo.com​
 

Đính kèm

  • admanagerforum_v1.2.zip
    1.8 KB · Lượt xem: 36

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
Đã cài add-on mà ko tháy chỗ thêm ads là sao vậy b
 
  • Like
Reactions: THB

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,827
Được Like
12,687
Đã cài add-on mà ko tháy chỗ thêm ads là sao vậy b
Chỉnh sửa Template:

Liên kết mã script của bạn cần được bổ sung vào template sau:

andy_admanagerforum

Hiển thị nhiều hơn so với một script:

Để hiển thị nhiều hơn một script một cách ngẫu nhiên, sử dụng code sau đây:
Mã:
<xen:set var="$banners.1">
add script here
</xen:set>

<xen:set var="$banners.2">
add script here
</xen:set>

{xen:raw '$banners.{xen:calc '({$serverTime} % 2) + 1'}'}

bạn đã làm bước này chưa, bạn có thể qua đây để tham khảo thêm nha: http://vnxf.vn/threads/cac-hook-dat-ads-quang-cao-tren-xenforo.71.html
 

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
Tks a. Đã làm được
 
  • Like
Reactions: THB

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
Sửa lần cuối:

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
e cài trên localhost thì đc mà đưa lên hosting add xml thì bị lỗi này
Mã:
Server Error

Mysqli prepare error: Table 'u467747400_4r.xf_brivium_modern_statistic' doesn't exist

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 XenForo/Model.php at line 219
XenForo_Model->fetchAllKeyed() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 20
Brivium_ModernStatistic_Model_ModernStatistic->getActiveModernStatistics() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 58
Brivium_ModernStatistic_Model_ModernStatistic->getAllModernStatisticsForCache() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 71
Brivium_ModernStatistic_Model_ModernStatistic->rebuildModernStatisticCache() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 97
Brivium_ModernStatistic_Model_ModernStatistic->rebuildModernStatisticCaches() in Brivium/ModernStatistic/Installer.php at line 77
Brivium_ModernStatistic_Installer->_postInstall() in Brivium/BriviumHelper/1000327/Installer.php at line 119
Brivium_BriviumHelper_Installer->installAddOn() in Brivium/ModernStatistic/Installer.php at line 12
Brivium_ModernStatistic_Installer::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/u467747400/public_html/admin.php at line 13
 
  • Like
Reactions: THB

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,827
Được Like
12,687
e cài trên localhost thì đc mà đưa lên hosting add xml thì bị lỗi này
Mã:
Server Error

Mysqli prepare error: Table 'u467747400_4r.xf_brivium_modern_statistic' doesn't exist

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 XenForo/Model.php at line 219
XenForo_Model->fetchAllKeyed() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 20
Brivium_ModernStatistic_Model_ModernStatistic->getActiveModernStatistics() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 58
Brivium_ModernStatistic_Model_ModernStatistic->getAllModernStatisticsForCache() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 71
Brivium_ModernStatistic_Model_ModernStatistic->rebuildModernStatisticCache() in Brivium/ModernStatistic/Model/ModernStatistic.php at line 97
Brivium_ModernStatistic_Model_ModernStatistic->rebuildModernStatisticCaches() in Brivium/ModernStatistic/Installer.php at line 77
Brivium_ModernStatistic_Installer->_postInstall() in Brivium/BriviumHelper/1000327/Installer.php at line 119
Brivium_BriviumHelper_Installer->installAddOn() in Brivium/ModernStatistic/Installer.php at line 12
Brivium_ModernStatistic_Installer::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/u467747400/public_html/admin.php at line 13
bạn xem thử upload lên đúng chỗ chưa nha.
 

THB

Founder
Thành viên BQT
Tham gia
25/02/2015
Bài viết
6,651
Được Like
3,939
@shynn có đôi lúc addon cài trên host luôn nha bạn. xem hướng dẫn kèm theo khi tải addon về.
Thay vì mình add tìm đường dẫn tới xml trên máy tính bạn chỉ đường dẫn tới host rồi cài luôn.
chúc thành công
 

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
bạn xem thử upload lên đúng chỗ chưa nha.
e up đúng ổ rồi mà vẫn k đc

@shynn có đôi lúc addon cài trên host luôn nha bạn. xem hướng dẫn kèm theo khi tải addon về.
Thay vì mình add tìm đường dẫn tới xml trên máy tính bạn chỉ đường dẫn tới host rồi cài luôn.
chúc thành công
Cài giống như xenporta đó hả a
 
  • Like
Reactions: THB

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,827
Được Like
12,687
e up đúng ổ rồi mà vẫn k đc


Cài giống như xenporta đó hả a
mình vừa cài xong cho trang của mình hoàn toàn bình thường không lỗi mà bạn @@
 
  • Like
Reactions: THB

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,827
Được Like
12,687
e thấy trên google họ ns phải import data sql gì nữa mà
không cần đâu bạn, mình vừa cài xong mà @@, chỉ cần up lên là xài được liền
 
  • Like
Reactions: THB

shynn

MasterCorporal
Tham gia
18/03/2015
Bài viết
207
Được Like
176
không cần đâu bạn, mình vừa cài xong mà @@, chỉ cần up lên là xài được liền
pb 1.7.0 có dùng đc cho xen 1.4.5 k thế ạ. cài 1.7.0 thì lại đc :(
 
  • Like
Reactions: THB

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom