Jump to content

newbie LAC

Members
  • Posts

    5,244
  • Joined

  • Days Won

    40

Reputation Activity

  1. Like
    newbie LAC got a reaction from Senior2323 in Videobox   
    ​Hello,
    Use converters like https://atelier.u-sub.net/srt2vtt/
    https://github.com/captioning/captioning
  2. Like
    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

  3. Like
    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}}
  4. Like
    newbie LAC got a reaction from OptimusBain in (NB45) Content Tabs   
    I added this in TODO list
  5. Like
    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) {}  
  6. Like
    newbie LAC got a reaction from Michael_ in (NB41) Upload Group Restrictions   
    Support topic
     
  7. Thanks
    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() );}}  
  8. Like
    newbie LAC got a reaction from pequeno in (NB40) Ads After X Posts   
    Hello,
    Yes
    I cleaned my PM box
  9. Like
    newbie LAC got a reaction from pequeno in (NB40) Ads After X Posts   
    Hello,
    This will require additional coding
  10. Like
    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}}
  11. Like
    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}}  
  12. Like
    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}}  
  13. Like
    newbie LAC got a reaction from LiveG in (NB42) Enhanced Tags System   
    Hello,
    I added this in TODO list
  14. Like
    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

  15. Like
    newbie LAC got a reaction from Phil Lilley in (NB41) Recent Posts With Youtube Videos   
    Hello,
    No.
  16. Like
    newbie LAC got a reaction from Nexus_Web_Media in (NB43) Filter By Tags   
    Thanks for clarification.
    I added this in TODO list.
  17. Like
    newbie LAC got a reaction from Nexus_Web_Media in (NB40) Topic Description   
    Hello,
    I added this in TODO list
  18. Like
    newbie LAC got a reaction from Nexus_Web_Media in (NB42) Enhanced Tags System   
    Hello,
    I added this in TODO list
  19. Like
    newbie LAC got a reaction from WP V0RT3X in (NB45) Content Tabs   
    I added this in TODO list
  20. Thanks
    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}}
  21. Like
    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
  22. Like
    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

  23. Like
    newbie LAC got a reaction from Starship in (NB40) Recent Topics/Posts   
    Hello,
    I did it.
  24. Like
    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.
  25. Thanks
    newbie LAC got a reaction from Joey_M in (NB41) My Football   
    Yes
×
×
  • Create New...