Jump to content

Daniel F

Invision Community Team
  • Posts

    6,583
  • Joined

  • Days Won

    37

Reputation Activity

  1. Like
    Daniel F reacted to Matt in Invision Community 5: The all-new editor   
    With v5, you can probably save a lot of hassle and just use the backticks to generate inline code. Either way, applications have a framework to add new editor functionality, including buttons.
      CleanShot 2024-05-21 at 10.29.11.mp4  
     
  2. Like
    Daniel F got a reaction from David N. in Invision Community 5: The all-new editor   
    Multiple H1 tags on the same page are fine.
     
  3. Thanks
    Daniel F reacted to teraßyte in [BUG 4.7.16] Editor buttons are still displayed despite being disabled for the area   
    This issue is reproducible only on a page with 2 editors with each having a different area assigned:
    Create a page with 2 editors in it. Let's say the editors use the following keys in the same application: EditorA EditorB  
    Case 1: Disable the button ONLY for editor A
    The button is disabled for both editors A and B.
     
    Case 2: Disable the button ONLY for editor B
    The button is visible for both editors A and B.
     
    ===
    If you have 2 editors (A & B) that use 2 different areas on the same page, the cached result of the first editor (A) displayed on the page is always used for the second editor (B) without checking if the button is actually available also for the second area.
     
    This issue is caused by the static function \IPS\Text\Parser::canUse( $member, $key, $area ) because it caches the result of each button only using 2 values: member_id and $key:
    static::$permissions[ $member->member_id ][ $key ];  
    The $area value is only checked if there is no cached result:
    /** * Can use plugin? * * @param \IPS\Member $member The member * @param string $key Plugin key * @param string $area The Editor area * @return bool */ public static function canUse( \IPS\Member $member, $key, $area ) { $permissionSettings = json_decode( \IPS\Settings::i()->ckeditor_permissions, TRUE ); if ( !isset( static::$permissions[ $member->member_id ][ $key ] ) ) { if ( !isset( $permissionSettings[ $key ] ) ) { static::$permissions[ $member->member_id ][ $key ] = TRUE; } else { $val = TRUE; if ( $permissionSettings[ $key ]['groups'] !== '*' ) { if ( !$member->inGroup( $permissionSettings[ $key ]['groups'] ) ) { $val = FALSE; } } if ( $permissionSettings[ $key ]['areas'] !== '*' ) { if ( !\in_array( $area, $permissionSettings[ $key ]['areas'] ) ) { $val = FALSE; } } static::$permissions[ $member->member_id ][ $key ] = $val; } } return static::$permissions[ $member->member_id ][ $key ]; }  
     
    If you also want to slightly optimize the code, the json_decode() call can be moved inside the first IF since the data isn't used if a cached result is found.
  4. Like
    Daniel F got a reaction from Marc Stridgen in User does not see buy button for subscription   
    I thought it’s resolved for everybody, but now I think, that I fixed only one and that I asked you for confirmation before I change it for the other members .
    Could you please reply to it to get it back to my queue. 
  5. Like
    Daniel F got a reaction from Sonya* in User does not see buy button for subscription   
    I thought it’s resolved for everybody, but now I think, that I fixed only one and that I asked you for confirmation before I change it for the other members .
    Could you please reply to it to get it back to my queue. 
  6. Like
    Daniel F got a reaction from SeNioR- in Blog URL incorrect   
    I have fixed this for an upcoming release 
  7. Like
    Daniel F got a reaction from SeNioR- in Problem with inability to access developer mode   
    Is the DEFAULT_THEME_ID constant overridden in your constants.php ?
    If not, have you deleter any of your themes? Please take a look at the themes, is there one with the ID 1? If not, override the DEFAULT_THEME_ID in your constants.php with the ID of your new default theme.
  8. Thanks
    Daniel F got a reaction from Verto in Problem with inability to access developer mode   
    Is the DEFAULT_THEME_ID constant overridden in your constants.php ?
    If not, have you deleter any of your themes? Please take a look at the themes, is there one with the ID 1? If not, override the DEFAULT_THEME_ID in your constants.php with the ID of your new default theme.
  9. Agree
    Daniel F got a reaction from G17 Media in "LOCATION_UNKNOWN" Error.   
    You could literally just fire a proper request to the GraphQL endpoint instead of including the IPS framework and instead of utilizing it direct, using then the GraphQL class. 
  10. Haha
    Daniel F reacted to Sonya* in Pages: date and time field without timezone adjusting   
    Now, yes. Exactly, what I need. 
    I have tested it at least 20 times. It did not work, I swear 😁 
     
  11. Thanks
    Daniel F reacted to Prank in Google Authenticator has stoped working as MFA   
    Patch worked perfectly for me. 
    Thanks.
  12. Like
    Daniel F got a reaction from SeNioR- in Moderator can Unarchive topic   
    This is actually an admin permission ( Can manage archive settings )
    I have raised an internal suggestion to separate this for the frontend and move it to the mod permissions.
  13. Thanks
    Daniel F got a reaction from Grafidea in template_error - DivisionByZeroError   
    I've fixed here recently a bug for the next release.. I'll take a look @Grafidea just to confirm that it's the same and not something else.
  14. Like
    Daniel F got a reaction from Marc Stridgen in Why I cant create poll?   
    The poll widget will only show existing polls.
    So the Topic field expects the title from an existing topic that contains a poll.
  15. Like
    Daniel F got a reaction from David N. in Does IPS have native Image Compression?   
    There are settings for format specific compression/quality in your ACP => System => Files => Image Settings.
     
  16. Like
    Daniel F got a reaction from panzerscope in Does IPS have native Image Compression?   
    There are settings for format specific compression/quality in your ACP => System => Files => Image Settings.
     
  17. Like
    Daniel F got a reaction from Svetozar Angelov in spam posts   
    You can disable MFA by setting the DISABLE_MFA constant to false in your constants.php file!
    if you’re hosted with us, please submit a ticket and we’ll take care of this 
  18. Like
    Daniel F got a reaction from SeNioR- in Impossible access (error 500) after upgrade 4.7.16   
    Sounds like an incompatible php version. 
    Make sure that you’re using php 8.0.0 or higher 
  19. Thanks
    Daniel F got a reaction from Kosmos_1999 in Impossible access (error 500) after upgrade 4.7.16   
    Sounds like an incompatible php version. 
    Make sure that you’re using php 8.0.0 or higher 
  20. Like
    Daniel F got a reaction from Marc Stridgen in Help module for end users   
    You can literally use the pages app to create such a thing. Something like 
     but with a select field as menu instead of the sidebar menu 
  21. Thanks
    Daniel F got a reaction from WebCMS in Tag index page   
    something like this but for the frontend https://www.ic-essentials.com/files/file/7-tags-manager/ ?
  22. Like
    Daniel F got a reaction from SeNioR- in Help me vs AI   
    The temp_ban column in the core_members table contains the banned state.
    0 means not banned
    -1 means banned 
    any other integer in this column is the timestamp until the user should be banned
  23. Like
    Daniel F got a reaction from Adriano Faria in DEBUG_TEMPLATES still with issues in forms   
    I have fixed few instances yesterday, the date template was one of them. 
  24. Like
    Daniel F got a reaction from FanClub Mike in Native solution for unread notification badge number on PWAs   
    We haven’t implemented this yet. 
  25. Like
    Daniel F got a reaction from Jim M in Native solution for unread notification badge number on PWAs   
    We haven’t implemented this yet. 
×
×
  • Create New...