-
Постов
254 -
Зарегистрирован
-
Посещение
-
Победитель дней
1
Активность репутации
-
BlackShot отреагировална пост Orpheus в Show Edit and Report Links Under Posts & Comments
There you go
Show_Edit_and_Report_Links_Below_Posts__Comments_1.0.1.xml
-
-
BlackShot получил реакцию от Desti в Установка настраиваемого поля в качестве обязательного поля
Genius! I'll try that soon and let you know if I had success.
PS: I completed a basic PHP course and now I'm trying to study object oriented PHP like you recommended, but I still feel like it's going to be a loooong fucking journey. Shit is difficult. I'm trying though.
-
BlackShot отреагировална пост HooLIGUN в Telegram Login Handler 1.0.3
Пофиксил, обновите
@SlawkA @Respected
Telegram Login Handler 1.0.3.tar
-
BlackShot отреагировална пост Desti в Установка настраиваемого поля в качестве обязательного поля
This is not difficult, just a lot of information. Difficult is quantum mechanics
-
BlackShot отреагировална пост Desti в Установка настраиваемого поля в качестве обязательного поля
You can create new settings (array ), for example "showConfirmCheckbox" (in App...Form application), add number of your forms with checkbox ( [2,3,6] ) and use this settings for enable-disable checkbox.
if( \in_array( \IPS\Request::i()->id, \IPS\Settings::i()->showConfirmCheckbox ) ) {
$form->add( new \IPS\Helpers\Form\Checkbox......
}
-
BlackShot отреагировална пост Desti в Установка настраиваемого поля в качестве обязательного поля
Yep. You can insert such a field manually
$form->add( new \IPS\Helpers\Form\Checkbox( 'agreed_terms_lang', FALSE, TRUE, array( ), function( $val ) { if ( !$val ) { throw new \InvalidArgumentException('agreed_terms_warn'); } }, NULL ) );
-
BlackShot получил реакцию от by_ix в Установка настраиваемого поля в качестве обязательного поля
Хороший вопрос, и если я правильно понял, то это и есть ответ. Я хочу сделать это обязательным полем, тогда как форма не будет отправлена, если пользователь не установил флажок. Что-то вроде согласия с условиями обслуживания, понимаете?
-
BlackShot отреагировална пост Desti в Получил такое сообщение с форума
написать что-то типа
if(\IPS\Member::loggedIn()->member_id == ваш ID) {
var_dump($ipBanned, \IPS\Member::loggedIn()->isBanned()) ; die();
}
перед строчкой
\IPS\Output::i()->showBanned();
в указанном выше файле.
-
BlackShot отреагировална пост Desti в Получил такое сообщение с форума
Дык он админ того форума, как же не посещать?
-
BlackShot отреагировална пост Exception в Добавление шрифта. (платно)
Залей шрифт через FTP в папку с форумом
это в custom.css:
/* Font: SPSLOldKingC */ @font-face { font-family: 'SPSLOldKingC'; src: url({url="SPSLOldKingC.ttf" base="none" noprotocol="true"}) format('ttf'); font-display: swap; } /* Для заголовков категорий и форумов */ h2.ipsType_sectionTitle, h4.ipsDataItem_title { font-family: 'SPSLOldKingC'; }
-
BlackShot отреагировална пост SkiFteL в Sign In As Member
Версия: 1.0.2 (Update for 4.6)
SignInAs 1.0.2.xml
-
BlackShot отреагировална пост by_ix в Как подправить текст в Recent Topics
AnWey
@media screen and (max-width: 979px) { li[data-categoryid="rt"] > div > ul > li > .ipsDataItem_main, li[data-categoryid="rt"] > div > ul > li > .ipsDataItem_stats { margin-left: var(--sp-8) !important; } } пробуйте.
в кастом.
-
BlackShot отреагировална пост Desti в Как добавить reCaptcha в приложение
O problema é que esta aplicação processa os dados recebidos do formulário estritamente de acordo com o algoritmo. E se um campo extra aparece na lista de campos de formulário, todo o algoritmo entra em colapso. Depois de remover o campo extra antes de processar, retornamos tudo ao estado padrão.
Если в полях формы обнаруживается лишнее поле, вся стройная система падает, даже без диагностики. Поэтому удаляем капчевое поле перед обработкой.
-
BlackShot отреагировална пост Desti в Как добавить reCaptcha в приложение
search
if ( $values = $form->values() ) { $this->form->handleForm( $values); in modules/front/form.php and add change it to
if ( $values = $form->values() ) { unset ( $values['captcha_field'] ); $this->form->handleForm( $values);
-
BlackShot отреагировална пост cyr4x в Как добавить reCaptcha в приложение
Wow, I didn't even know that, sorry
-
BlackShot отреагировална пост Desti в Как исправить текстовые поля
I suspect that for them the great revelation was the existence of other languages
-
BlackShot отреагировална пост Desti в Как исправить текстовые поля
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
-
BlackShot отреагировална пост Desti в UnexpectedValueException для простого плагина
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
-
BlackShot получил реакцию от by_ix в Application Forms
Кто-нибудь знает, как добавить reCaptcha на страницу приложения? Прежде чем нажать «отправить».
Кстати, отличное приложение Silence! Спасибо!
@Silence @by_ix
-
BlackShot отреагировална пост Desti в UnexpectedValueException для простого плагина
$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.
-
BlackShot отреагировална пост Desti в UnexpectedValueException для простого плагина
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
-
BlackShot отреагировална пост Desti в UnexpectedValueException для простого плагина
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
-
BlackShot получил реакцию от AnWey в Ошибка при установки форума ips 4.6
Судя по сообщению CloudFlare, ваш хост отключился во время установки IPS и остановил установку.
-
BlackShot отреагировална пост Silence в Application Forms
Просмотр файла Application Forms
Это простое приложение , которое позволяет создавать неограниченное количество форм приложение для вас совета. Вы в состоянии настроить поля для каждой формы. Приложение может также изменить членов первичной или вторичной группы после того , как он был одобрен администратором.
После того , как форма была отправлена, тема будет создана в конкретном форуме.
Темы приложений могут иметь опрос , прикрепленный с Yes / No в качестве вариантов голосования.
Добавил Silence Добавлено 04.12.2016 Категория Интерфейс Язык eng