VBsupport перешел с домена .ORG на родной .RU
Ура!
Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей
Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже: Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота. Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
// phpinfo display for support purposes
if ($_REQUEST['do'] == 'phpinfo')
{
ABOVE THAT, ADD
Code:
Code:
/* test the group day access permissions */
if ( $vbulletin->userinfo['permissions']['newgroupaccess'] )
{
if ( group_access_test ( $vbulletin->userinfo['permissions']['newgroupdays'] ) === false )
{
// no access today, give the error message
eval ( standard_error ( fetch_error ( 'uganottoday', $vbulletin->userinfo['permissions']['title'], $vbulletin->userinfo['permissions']['usergroupid'] ) ) );
}
}
// end of code edits for './global.php'
3.
DB ALTER AND ADD PHRASES.... (add your db prefix, if your using one!)
Code:
Code:
###
# - alter the user groups table to add the access permissions
###
ALTER TABLE usergroup ADD newgroupaccess TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ADD newgroupdays INT(10) UNSIGNED NOT NULL DEFAULT '0';
###
##- admin cp helper phrases!
###
INSERT INTO phrase VALUES ( '', -1, 'group_access_permissions', 'Group Board Access Permissions', 3, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'new_group_access', 'Place This User Group Under Forum Access Control', 3, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'usergroup_add_edit_newgroupaccess_title', 'Place This User Group Under Forum Access Control', 6000, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'usergroup_add_edit_newgroupaccess_text', 'If this option is set to (yes) then the user group access control will check if this group can access your forum on that given day!', 6000, 'group_access' );
INSERT INTO adminhelp VALUES ( '', 'usergroup', 'add,edit', 'newgroupaccess', 990, 1, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'new_group_days', 'Select The Days This User Group Can\'t Access The Forum, (*) = selected', 3, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'usergroup_add_edit_newgroupdays_title', 'Select The Days This User Group Can\'t Access The Forum', 6000, 'group_access' );
INSERT INTO phrase VALUES ( '', -1, 'usergroup_add_edit_newgroupdays_text', 'This option is only used if the above option * Place This User Group Is Under Forum Access Control * is set to (yes). This option allows you to select the days that this user group is not allowed to view any content on your forum.', 6000, 'group_access' );
INSERT INTO adminhelp VALUES ( '', 'usergroup', 'add,edit', 'newgroupdays', 991, 1, 'group_access' );
###
##- no access today error!
###
INSERT INTO phrase VALUES ( '', -1, 'uganottoday', 'Sorry the administrator has limited your usergroup {1}, (id:{2}), to certain days that you may view the forum. This is one of those days you don\'t have access to the forum. Please consider joining the forum to remove this restriction!', 1000, 'group_access' );
Be sure to go to Languages & Phrases >> Language Manager >> Click -> [Rebuild All Languages]
4.
upload the attached script (functions_access.php.txt), to you './includes/' directory, rename to 'functions_access.php'!