Brivium - Content Restriction using Credits 1.3.0

CNTT01

Snow Flower ✔
Code hoặc hướng dẫn này được sử dụng trên phiên bản Xenforo cũ đã quá hạn sử dụng. Bạn hãy click để tìm bản mới hơn
THÔNG TIN:
Addon này định nghĩa một sự kiện cho phép để dễ dàng giới hạn nội dung trên thread để chỉ những người dùng đã mua của Tín. Nếu như người dùng không mua nội dung hạn chế, họ sẽ không thể xem nội dung bị hạn chế và sẽ được hiển thị một thông báo thay vì, nói với họ rằng họ phải mua các nội dung. Chỉ trong vài giây, bạn có thể giới hạn các nội dung của bất kỳ thread.

Các tính năng chính:
- Xác định hành động cho phép hạn chế nội dung về chủ đề bằng cách sử dụng Tín dụng (Tín Premium).
- Có thể theo dõi số lượng mua nội dung bị hạn chế.
- Hỗ trợ HTML cho nội dung bị hạn chế.
- Cung cấp có thể hạn chế sự cho phép nội dung.
- Cung cấp bỏ qua giới hạn cho phép nội dung.
- Cung cấp số điểm của mua quyền nội dung bị hạn chế.
- Hỗ trợ đầy đủ hệ thống cảnh báo Tín dụng '.
- Hỗ trợ đầy đủ hệ thống giao dịch Tín dụng '.

CÀI ĐẶT:
Hãy làm theo các hướng dẫn cài đặt như đã nêu trong README.txt
aa.png
aaa.png
aaaa.png
aaaaa.png

a.png
05_alert.png
06_transaction.png
 
bạn vào phpAdmin -> Database đang dùng -> Tab SQL rồi viết lần lượt các code sau ( viết code 1 -> Bấm đi
Cái này dùng cho ai chưa có file sql
Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_action` (
              `action_id` varchar(100) NOT NULL,
              `display_order` int(10) unsigned NOT NULL DEFAULT '0',
              `addon_id` varchar(25) NOT NULL,
              `template` varchar(50) NOT NULL,
              `global` tinyint(3) NOT NULL DEFAULT '0',
              `revert` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `link_format` text NOT NULL,
              `multiple_event` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `allow_negative` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `negative_handle` varchar(30) NOT NULL DEFAULT '',
              PRIMARY KEY (`action_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_currency` (
              `currency_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
              `title` varchar(50) NOT NULL,
              `description` text NOT NULL,
              `column` varchar(100) NOT NULL,
              `code` text NOT NULL,
              `symbol_left` varchar(50) NOT NULL,
              `symbol_right` varchar(50) NOT NULL,
              `decimal_place` tinyint(2) unsigned NOT NULL DEFAULT '0',
              `negative_handle` enum('reset','hide','show') NOT NULL DEFAULT 'show',
              `user_groups` mediumblob NOT NULL,
              `max_time` int(10) unsigned NOT NULL DEFAULT '0',
              `earn_max` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `in_bound` tinyint(3) unsigned NOT NULL DEFAULT '1',
              `out_bound` tinyint(3) unsigned NOT NULL DEFAULT '1',
              `value` decimal(19,4) unsigned NOT NULL DEFAULT '0.0000',
              `withdraw` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `withdraw_min` decimal(19,4) unsigned NOT NULL DEFAULT '0.0000',
              `withdraw_max` decimal(19,4) unsigned NOT NULL DEFAULT '0.0000',
              `display_order` int(10) unsigned NOT NULL DEFAULT '0',
              `active` tinyint(3) unsigned NOT NULL DEFAULT '1',
              PRIMARY KEY (`currency_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_event` (
              `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
              `action_id` varchar(100) NOT NULL,
              `currency_id` int(10) unsigned NOT NULL DEFAULT '0',
              `user_groups` mediumblob NOT NULL,
              `forums` mediumblob NOT NULL,
              `amount` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `sub_amount` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `multiplier` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `sub_multiplier` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `active` tinyint(3) unsigned NOT NULL DEFAULT '1',
              `moderate` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `alert` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `times` int(10) unsigned NOT NULL DEFAULT '1',
              `max_time` int(10) unsigned NOT NULL DEFAULT '0',
              `apply_max` int(10) unsigned NOT NULL DEFAULT '0',
              `extra_min` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `extra_max` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `extra_min_handle` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `target` enum('user','user_action','both') NOT NULL DEFAULT 'user',
              PRIMARY KEY (`event_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_paypal_log` (
              `payment_log_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
              `user_id` int(10) unsigned NOT NULL DEFAULT '0',
              `processor` varchar(25) NOT NULL,
              `transaction_id` varchar(50) NOT NULL,
              `transaction_type` enum('payment','cancel','info','error') NOT NULL,
              `message` varchar(255) NOT NULL DEFAULT '',
              `transaction_details` mediumblob NOT NULL,
              `log_date` int(10) unsigned NOT NULL DEFAULT '0',
              PRIMARY KEY (`payment_log_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_stats` (
              `action_id` varchar(50) NOT NULL,
              `total_earn` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `total_spend` decimal(19,4) NOT NULL DEFAULT '0.0000',
              `start_date` int(10) unsigned NOT NULL DEFAULT '0',
              `stats_date` int(10) unsigned NOT NULL DEFAULT '0',
              `currency_id` int(10) unsigned NOT NULL,
              `stats_type` varchar(30) NOT NULL DEFAULT '',
              PRIMARY KEY (`action_id`,`currency_id`,`stats_type`)
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Mã:
CREATE TABLE IF NOT EXISTS `xf_credits_transaction` (
              `transaction_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
              `action_id` varchar(100) NOT NULL,
              `event_id` int(10) unsigned NOT NULL DEFAULT '0',
              `currency_id` int(10) unsigned NOT NULL DEFAULT '0',
              `user_id` int(10) unsigned NOT NULL DEFAULT '0',
              `user_action_id` int(10) unsigned NOT NULL DEFAULT '0',
              `content_id` int(10) unsigned NOT NULL DEFAULT '0',
              `content_type` varchar(25) NOT NULL DEFAULT '',
              `owner_id` int(10) unsigned NOT NULL DEFAULT '0',
              `multiplier` int(10) unsigned NOT NULL DEFAULT '0',
              `transaction_date` int(10) NOT NULL DEFAULT '0',
              `amount` double NOT NULL DEFAULT '0',
              `negate` tinyint(1) unsigned NOT NULL DEFAULT '0',
              `message` text NOT NULL,
              `moderate` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `is_revert` tinyint(3) unsigned NOT NULL DEFAULT '0',
              `transaction_state` varchar(30) NOT NULL,
              `extra_data` mediumblob NOT NULL COMMENT 'Serialized. Stores any extra data relevant to the transaction',
              PRIMARY KEY (`transaction_id`)
            ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Bạn nào đã có file sql thì vào phpmyadmin import sql
 
Mình đang dùng
Brivium - Credits Premium 2.0
Mình muốn chỉnh phần "Tax Amount"
Ví dụ mõi lần mua nội dụng mình chiếm khấu 40%
Nội dung mua 100vnd khi mua người nhận tiền tiền nội dung mua chiến khấu 40% còn lại 60vnd.
Chỉnh như hình nó không có tác dụng.
Xin mọi người giúp đỡ. thanks các bạn.

Untitled.png
 
Cho mình hỏi sao mình cài được hết rồi mà lúc vào set quyền không tìm được cụm "can edit content restricition by anyone", ra ngoài chỉnh thì nó ko hiện gì hết
 
Cho mình hỏi sao mình cài được hết rồi mà lúc vào set quyền không tìm được cụm "can edit content restricition by anyone", ra ngoài chỉnh thì nó ko hiện gì hết
Nó nàm ở công cụ chủ đề bạn nhé xem ảnh demo

2016-06-14_165807.jpg
 
lỗi Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'hide content' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
 
Có lỗi sau sảy xa với yêu cầu của bạn:
Mysqli prepare error: Unknown column 'hide_content' in 'field list'
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
  5. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1638
  6. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1627
  7. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1419
  8. XenForo_DataWriter->save() in XenForo/ControllerPublic/Forum.php at line 830
  9. XenForo_ControllerPublic_Forum->actionAddThread() in Brivium/ContentResCredit/ControllerPublic/Forum.php at line 28
  10. Brivium_ContentResCredit_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 369
  11. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 152
  12. XenForo_FrontController->run() in /home/vncnttco/public_html/index.php at line 13
 
Back
Top