форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Вопросы по vBulletin 4.2.x
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Zero Cool
Продвинутый
Default Ошибка после обновления PHP с 7.0 на 7.4
0

Здравствуйте. Уважаемые подскажите как исправить ситуацию. Обновил на сервере PHP с версии 7.0.33 на 7.4.12 и при заходе на форум высвечиваются в шапке и футере информация:

Quote:
PHP Warning: Use of undefined constant nomisc - assumed 'nomisc' (this will throw an Error in a future version of PHP) in ..../global.php(37) : eval()'d code(16) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(37) : eval()'d code(16) : eval()'d code on line 1

PHP Warning: Use of undefined constant nomisc - assumed 'nomisc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(139) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(139) : eval()'d code on line 1

PHP Warning: Use of undefined constant post_thanks_show_stats_postbit - assumed 'post_thanks_show_stats_postbit' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 158

PHP Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 163

PHP Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168

PHP Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168

PHP Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 168

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 2

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 18

PHP Warning: Use of undefined constant vsatopstats_layout - assumed 'vsatopstats_layout' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 36

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 113

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 18

PHP Warning: Use of undefined constant vsatopstats_layout - assumed 'vsatopstats_layout' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 36

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 113

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 128

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 138

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 167

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 179

PHP Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333

PHP Warning: Use of undefined constant vsatopstats_refresh_interval - assumed 'vsatopstats_refresh_interval' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 333
Версия воблы 4.2.6 кодировка utf8

Выключаю продукты: VSa - Advanced Forum Statistics и Post Thank You Hack, всё без ошибок. Как модернизировать данные продукты?

Last edited by Zero Cool : 11-19-2020 at 02:56 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
2

во всех шаблонах воблы и доп стилей (а так же всех шаблонов от сторонних хаков), нужно найти массивы с ключами, которые там без одинарных кавычек, но только в шаблонных условиях
пример (тройка)
правильно
Code:
<if condition="$array['var']">code</if>
нЕ правильно
Code:
<if condition="$array[var]">code</if>
ключ var в массиве $array должен быть в одинарных кавычках

все остальные переменные, которые встречаются в шаблонах не трогать
это, к примеру, касается URL
правильно
HTML Code:
<a href="showthread.php?t=$thread[threadid]">$thread[title]</a>
нЕ правильно
HTML Code:
<a href="showthread.php?t=$thread['threadid']">$thread['title']</a>
 
 
kerk
k0t
 
kerk's Avatar
Default
2

поиск в шаблонах можно делать примерно так
в поле поиска вбить [nomisc] (с квадратными скобками, но без кавычек) => искать во всех шаблонах
вобла должна найти все шаблоны с этим вхождением
затем, поиск по странице и править по примеру из поста выше
как только все поправлено в шаблоне, переходить к след. ошибке
и так далее, пока они не исчезнут на страницах на форуме
 
 
Zero Cool
Продвинутый
Default
0

Часть ошибок получилось убрать, но большое количество из них осталось.

Например по продукту спасибо:
Quote:
PHP Warning: Use of undefined constant post_thanks_show_stats_postbit - assumed 'post_thanks_show_stats_postbit' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 126

PHP Warning: Use of undefined constant member - assumed 'member' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 131

PHP Warning: Use of undefined constant showthread - assumed 'showthread' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136

PHP Warning: Use of undefined constant showpost - assumed 'showpost' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136

PHP Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code on line 136
И эти переменные я не могу найти((( Подскажите пожалуйста где ещё покопать.
 
 
Luvilla
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
Подскажите пожалуйста где ещё покопать.
в модулях
post_thanks, например
ставьте "поиск в модулях" и ищите
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Luvilla View Post
ставьте "поиск в модулях" и ищите
не совсем понятно как искать в модулях, не могу найти данную возможность
 
 
Elsa
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
не совсем понятно как искать в модулях
Вот так:

Quote:
Originally Posted by Luvilla View Post
ставьте "поиск в модулях" и ищите
Здесь он:
https://vbsupport.ru/forum/showthread.php?t=35347
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Elsa View Post
спс, но что-то не помогает. Не находит без апострофов переменных в квадратных скобках... всё таки мне нужна помощь.

Last edited by Zero Cool : 11-22-2020 at 03:13 PM.
 
 
Luvilla
Гость
Default

Quote:
Originally Posted by Zero Cool View Post
всё таки мне нужна помощь
какой post_thanks установлен?
 
 
Zero Cool
Продвинутый
Default
0

Quote:
Originally Posted by Luvilla View Post
какой post_thanks установлен?
Post Thank You Hack 7.88 Post Thank You Hack
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 11:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.