newbie LAC
-
Posts
5,244 -
Joined
-
Days Won
40
Reputation Activity
-
newbie LAC got a reaction from Senior2323 in Videobox
Hello,
Use converters like https://atelier.u-sub.net/srt2vtt/
https://github.com/captioning/captioning
-
newbie LAC got a reaction from BomAle in \IPS\Helpers\Form\Translatable + toggles + validation
Hello,
\IPS\Helpers\Form\Translatable doesn't respect
- the toggles
POC
$form = new \IPS\Helpers\Form; $form->add( new \IPS\Helpers\Form\YesNo( 'test', 0, FALSE, array( 'togglesOn' => array( 'form_test2' ) ) ) ); $form->add( new \IPS\Helpers\Form\Translatable( 'test2', NULL, TRUE, array( 'maxLength' => 5 ) ) ); if ( $values = $form->values() ) { $form->addMessage( 'Ok', 'ipsMessage ipsMessage_info' ); } Result
- the validation
POC
Pay attention on 'maxLength' => 5
Result
-
newbie LAC got a reaction from Junior Space Force in (NB40) Secondary Group Icons
Hello,
{{if \in_array($grOther, array(26, 27)) and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}} -
-
newbie LAC got a reaction from OptimusBain in How to change billing default country?
Create a plugin or open system\Helpers\Form\Address.php
Find
if ( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) Add above
try { $location = \IPS\GeoLocation::getByIp(\IPS\Request::i()->ipAddress()); if (\in_array($location->country, \IPS\GeoLocation::$countries)) { return $location->country; } } catch (\Exception $e) {}
-
-
newbie LAC got a reaction from modman in How to set currency in Commerce programmatically?
See template chooseCurrency
{{$memberCurrency = ( ( isset( $_SESSION['currency'] ) and in_array( $_SESSION['currency'], \IPS\nexus\Money::currencies() ) ) ? $_SESSION['currency'] : \IPS\nexus\Customer::loggedIn()->defaultCurrency() );}}
-
-
newbie LAC got a reaction from pequeno in (NB40) Ads After X Posts
Hello,
This will require additional coding
-
newbie LAC got a reaction from virap in (NB41) Enhanced Advertisements
Yes
Show the advert if the topic_meta_data value is 1
{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'topic'}} {{$topic = \IPS\Output::i()->hiddenElements['nbenhadverts_item_item'];}} {{if $topic and $topic->topic_meta_data == 1}} 1 {{endif}} {{endif}} -
newbie LAC got a reaction from alexxis in (NB40) Pinned Posts
Hello,
I guess you can use conditions + css
{{if request.page > 2}} <style> #nbPinnedSeparatorTop, #nbPinnedSeparatorBottom, .cNbPinnedPost { display: none; } </style> {{endif}}
-
newbie LAC got a reaction from Viktor Levytskyi in (NB40) Pinned Posts
Hello,
I guess you can use conditions + css
{{if request.page > 2}} <style> #nbPinnedSeparatorTop, #nbPinnedSeparatorBottom, .cNbPinnedPost { display: none; } </style> {{endif}}
-
newbie LAC got a reaction from LiveG in (NB42) Enhanced Tags System
Hello,
I added this in TODO list
-
newbie LAC got a reaction from PurplePixel in Custom fields. Registration.Toggles
It should do the Form helper
Also
\system\Helpers\Form\Form.php
/* If this is dependant on a toggle which isn't set, don't return a value so that it doesn't trigger an error we cannot see */ if ( $element->htmlId and \in_array( $element->htmlId, $htmlIdsToIgnore ) ) { $values[ $_name ] = $stringValues ? $element::stringValue( $element->defaultValue ) : $element->defaultValue; continue; } So if the required field has been hidden by toggle we should not get an error.
Yes
Without toggles
The required fields validate by Helpers
With toggles
With toggles + I've removed
\IPS\Output::i()->error( 'reg_required_fields', '1C223/5', 403, '' );
With toggles. Required field not filled
-
-
newbie LAC got a reaction from Nexus_Web_Media in (NB43) Filter By Tags
Thanks for clarification.
I added this in TODO list.
-
newbie LAC got a reaction from Nexus_Web_Media in (NB40) Topic Description
Hello,
I added this in TODO list
-
newbie LAC got a reaction from Nexus_Web_Media in (NB42) Enhanced Tags System
Hello,
I added this in TODO list
-
-
newbie LAC got a reaction from Adam.M in (NB40) Secondary Group Icons
Hello,
{{if \in_array($grOther, array(26, 27)) and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}} -
newbie LAC got a reaction from Adam.M in (NB40) Secondary Group Icons
Hello,
You can edit the templates
core - global - plugins - nbSecGroupIconsProfile
core - global - plugins - nbSecGroupIconsPost
Find
{{if isset($memberGroups[$grOther]) and $icon = $memberGroups[$grOther]->g_icon}} Add below
{{if $grOther == X and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}} X is specific group ID
-
newbie LAC got a reaction from Starship in (NB40) Recent Topics/Posts
Hello,
I updated the links on the support topic.
You need to wait for version 1.1.4
-
-
newbie LAC got a reaction from Starship in (NB40) Recent Topics/Posts
Hello,
It's OK.
The built in widget Post Feed works as well.
I can add new setting to exclude first post.
-