Установка и настройка
- Скачать архив.
- Выгрузить в modules_extra.
- Распаковать.
- Выполнить в базу данных запрос ( создать запрос )
- Установка ZIP архивом возможна. (Инструкция)
CREATE TABLE IF NOT EXISTS `dw__config` ( `id` int(1) NOT NULL AUTO_INCREMENT, `enabled` int(1) NOT NULL DEFAULT 2, `raising` int(11) DEFAULT NULL COMMENT 'Current raising ID', `showlist` int(1) NOT NULL DEFAULT 2, `listlimit` int(2) NOT NULL DEFAULT 0, `comments` int(1) NOT NULL DEFAULT 2, `autostop` int(1) NOT NULL DEFAULT 2, PRIMARY KEY (`id`), KEY `raising` (`raising`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `dw__donations` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Donation ID', `pid` int(11) NOT NULL COMMENT 'Payment ID', `fid` int(11) NOT NULL COMMENT 'Fundrising ID', `comment` varchar(60) DEFAULT NULL, PRIMARY KEY (`id`), KEY `pid` (`pid`), KEY `fid` (`fid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `dw__raisings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `message` varchar(250) NOT NULL DEFAULT '' COMMENT 'Target description', `target` int(11) NOT NULL DEFAULT 0 COMMENT 'Target amount', `stopdate` varchar(20) NOT NULL DEFAULT '0000.00.00 00:00' COMMENT 'End date of fundraising', PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `dw__config` (`id`) VALUES (NULL); INSERT INTO `modules` (`id`, `name`, `tpls`, `active`, `info`, `files`, `client_key`) VALUES (NULL, 'donation_widget | topforo.ru', 'none', 1, 'Модуль позволяет добавить систему пожертвований прямо на Ваш сайт.<br><hr>Для добавления виджета пожертвований на любую другую страницу, необходимо вставить код, приведенный ниже, в шаблон требуемой страницы [<i class="text-success"> OneValve.ru</i>]:<br><br><code><div id=\'dw_donations\'><script>dw_donations();</script></div></code><br><br><a target=\'_blank\' href=\'https://gamecms.ru/wiki/template_documentation\'><span class=\'glyphicon glyphicon-link\'></span> Куда вставить этот код? (Рекомендуем ознакомиться)</a><br><hr><a class=\'btn btn-default btn-sm f-l mr-5\' href=\'../admin/donation_widget\' target=\'_blank\'>Управление модулем</a><a class=\'btn btn-default btn-sm f-l mr-5\' href=\'../donation\' target=\'_blank\'>Страница пожертвований - donation</a><div class=\'clearfix\'></div>', '<script src=\'{site_host}/modules_extra/donation_widget/ajax/ajax.js?v={cache}\'></script><link rel=\'stylesheet\' href=\'{site_host}modules_extra/donation_widget/templates/{template}/css/style.css?v={cache}\'>', 'YDHGABATAMKESPCQMP9S'); INSERT INTO `pages` (`id`, `file`, `url`, `name`, `title`, `description`, `keywords`, `kind`, `image`, `robots`, `privacy`, `type`, `active`, `module`, `page`, `class`) VALUES (NULL, 'modules_extra/donation_widget/base/index.php', 'donation', 'donation', 'Пожертвования', 'Страница пожертвований', 'пожертвование, помощь, донаты', 1, 'files/miniatures/standart.jpg', 2, 2, 1, 1, 5, 0, 0), (NULL, 'modules_extra/donation_widget/base/admin/index.php', 'admin/donation_widget', 'admin_donation_widget', 'Настройка модуля донатов', 'none', 'none', 1, 'files/miniatures/standart.jpg', 0, 0, 2, 1, 5, 0, 0);