Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Desti

Актив
  • Регистрация

  • В сети

Everything posted by Desti

  1. Попросите пользователя очистить переписку, возможно поможет.
  2. В настройках php.ini это живет, upload_max_filesize=2M Замените 2М на 100М и рестартаните php
  3. В базу ЛС ручками залезали?
  4. в файле a../core/mod.../front/system/login.php заменить в функции manage() \IPS\Output::i()->redirect( $ref->setQueryString( '_fromLogin', 1 ) ); на \IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=...&module...&controller=...')); // укажите сами, куда вам надо.
  5. I suspect that for them the great revelation was the existence of other languages
  6. Чтобы это анимировать, оно должно быть отдельным элементом, а у вас там просто картинка -бекграунд.
  7. Nginx можно настроить немного (через директивы limit_conn_zone и limit_conn), но я этим не занимался никогда и это костылик.
  8. Для начала зайти консолью, переключится в рута (или sudo) и набрать iptables -L
  9. system/CustomField/CustomField.php - Search json_encode and edit string $values[ static::$databasePrefix . $k ] = ( $k === 'content' ? json_encode( $_value, JSON_UNESCAPED_UNICODE ) : $_value ); All custom field (and nexus too) must work properly
  10. IPS (conditionally) has 3 types of classes: system/- IPS engine classes, sources/- application data structure/storage classes and modules/- application data view classes. Partly.. Forum.php inherits system classes \IPS\Node\Model / \IPS\Patterns\ActiveRecord - base structures to store such data and describes some specific storage conditions. Search "object oriented PHP" on youtube - good start point
  11. $forum - big object with data, $forum->id - small part of this object, forum ID. If you need in your function all forum data, you must set $forum as arg, but if you need only ID, set $forum->id as arg. function test($forum) { // arg as object ( called as test($forum) ) return $forum->id. '---> ' . $forum->name; // you use data from object } and function test($forum) { // arg as ID only ( called as test($forum->id) ) return 'Forum ID: $forum; // you use id only } Depends on the complexity of the task that the function solves. Simple true-false checks can be placed in the template, complex calculations and database queries can be placed in the hook function.
  12. Да с фига это их проблема? Арендатор обязан следить за трафиком. Если его ддосят или еще как валят, то хостер скорее выгонит такого арендатора, чем будет с его проблемами разбираться.
  13. 1. Publiс function. No "public static" -> public function forumstyles( $forum ) { ... } 2. no type declaration on function variable 3. in template you must add param to function -> {{if $forum->forumstyle( $forum->name )}} - for example. if ( \IPS\Settings::i()->forumstyle == 'style2' AND in_array( $forum, explode(',', \IPS\Settings::i()->fs_forums)) ) - this you can insert directly into the template, no hook needed {{if \IPS\Settings::i()->forumstyle == 'style2' AND in_array( $forum->id(or what?), explode(',', \IPS\Settings::i()->fs_forums)) }} - i don't know what is stored in\IPS\Settings::i()->fs_forums... \IPS\Settings::i()->fs_forums - array of ID, you must use $forum->id
  14. $forum in template is instance of \IPS\forums\Forum. U can see it if var_dump $forum variable And your hook must be from \IPS\forums\Forum
  15. Да толку то от плагина, раньше база/php ляжет, чем дело до него дойдет. Если есть iptables, то ограничивайте количество одновременных сессий, это единственно возможный вариант.
  16. You call instance of \IPS\forums\Forum ($forum), but add function to \IPS\forums\modules\front\forums\index, why?
  17. Iptables не для этого, для борьбы с кучей IP придуман ipset.
  18. iptables -A INPUT -p tcp --syn --dport 443 -m connlimit --connlimit-above 30 --connlimit-mask 32 -j DROP Ну или 80-й порт, если http. Минимальные знания по iptables надо, конечно, иметь, плюс поддержка connlimit должна быть.
  19. Firstly.. when u "replace" something in theme hook, you don't replace the line you selected, but everything that includes this tag. if html like <div class='black'> <ul>... <li>.... </div> and you select first string, your hook replace all div, not first (<div class='black'>) string
  20. юмани позволяет платить из за бугра, но не сразу, пару месяцев придется поработать только с локальными платежами.
  21. Вроде взрослый дядя, а всё в нарисованные медальки верит...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.