Jump to content

TDBF

Clients
  • Posts

    810
  • Joined

  • Days Won

    2

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by TDBF

  1. On 3/21/2024 at 9:34 AM, Marc Stridgen said:

    While I understand you would like to see this, and we may well add at some point, its worth baring in mind this is also apple only. There are other login methods other than passwords I agree, however there are very very very few websites that dont use them.

    Sorry Marc, my comment was a little tongue in cheek. šŸ™‚Ā 

    However, Google also uses Passkey now.

  2. Hi,

    I'm not sure that this is an issue on my end or not.

    I have created a hook which extends class \IPS\Content\Controller, however when I try to edit the hook I get the following error.

    Anyone else getting this?

    Error: Call to undefined method ReflectionUnionType::getName() (0)
    #0 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(3577): IPS\Plugin\_Hook->editForm()
    #1 C:\wamp64\www\#\system\Dispatcher\Controller.php(107): IPS\core\modules\admin\applications\_developer->editHook()
    #2 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(69): IPS\Dispatcher\_Controller->execute()
    #3 C:\wamp64\www\#\system\Dispatcher\Dispatcher.php(153): IPS\core\modules\admin\applications\_developer->execute()
    #4 C:\wamp64\www\#\admin\index.php(13): IPS\_Dispatcher->run()
    #5 {main}

    Ā 

  3. 4 hours ago, BN_IT_Support said:

    Hi,

    I don't have the answer, but...

    I find it interesting that you would use your own editor on a Theme hook. I would agree that using your own editor on a Code hook is far more convenient than using adminCP editor, but for a Theme hook ??? Personally, I find the adminCP editor more convenient as it sorts out all the escapes (among other things). What motivates you to use your own editor?

    Secondly, if this used to work before 4.7.16 and if you have NOT made any changes to your editor (either configuration or version update) then I can understand your point of view - that it should not have been broken.

    That said, the Invision comments say "do not remove" and that implies "do not modify, either" and your editor has clearly modified the lines - what was '/*comment*/' is changed by your editor to '//comment' which is not the same thing.

    John

    With all due respect John, I do not see why I have to justify my workflow to you anyone else for that matter. šŸ™‚Ā 

    I basically stated in my first paragraph why I do not use the backend editor. I refuse to work in an environment which is limiting to me. I cannot stand working with ACP when it comes to code, I will do what is required and then work from my IDE.

    As for escaping code, there are plenty of plugins that I can use within my IDE which does the job for me.

    I have been doing it this way since the launch of version 4. This works for me, I'm sure you have your own workflow which works for you that may not work for others. Each to their own. šŸ™‚

    But thank you, you did point me to the reason why this no longer works for me and I was able to fix the issue.

    Kind Regards,

    John

  4. I normally create my hooks via the ACP and then edit the hook via the file via my IDE. (I have asked many times if you guys could increase the size of the Hooks Textarea or make it expandable, because I hate editing within a letter box. šŸ˜‹)

    However, after the last release, this is now borked.

    If I edit the hook via the file, my IDE will format the code on save, and the next time I edit/add new elements to the hook class a new 'public static function hookData()' class will be created causing a Fatal error: Cannot redeclare IPS\hookData() in.

    For example:

    In this test hook, this is the content created by the core.

    /**
     * @mixin \IPS\Theme\class_forums_front_topics
     */
    class test_hook_testHook extends _HOOK_CLASS_
    {
    
    /* !Hook Data - DO NOT REMOVE */
    public static function hookData() {
     return array_merge_recursive( array (
      'post' => 
      array (
        0 => 
        array (
          'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.ipsComment_meta.ipsType_light.ipsFlex.ipsFlex-ai:center.ipsFlex-jc:between.ipsFlex-fd:row-reverse > div.ipsType_light.ipsType_reset.ipsType_blendLinks.ipsComment_toolWrap > div.ipsResponsive_hidePhone.ipsComment_badges > ul.ipsList_reset.ipsFlex.ipsFlex-jc:end.ipsFlex-fw:wrap.ipsGap:2.ipsGap_row:1 > li > strong.ipsBadge.ipsBadge_large.ipsBadge_positive.ipsBadge_reverse > i.fa.fa-check',
          'type' => 'replace',
          'content' => '',
        ),
      ),
    ), parent::hookData() );
    }
    /* End Hook Data */
    
    
    }

    After the code has been formatted/edited:

    /**
     * @mixin \IPS\Theme\class_forums_front_topics
     */
    class test_hook_testHook extends _HOOK_CLASS_
    {
        // !Hook Data - DO NOT REMOVE
        public static function hookData()
        {
            return array_merge_recursive( [
             'post' => [
               0 => [
                 'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.ipsComment_meta.ipsType_light.ipsFlex.ipsFlex-ai:center.ipsFlex-jc:between.ipsFlex-fd:row-reverse > div.ipsType_light.ipsType_reset.ipsType_blendLinks.ipsComment_toolWrap > div.ipsResponsive_hidePhone.ipsComment_badges > ul.ipsList_reset.ipsFlex.ipsFlex-jc:end.ipsFlex-fw:wrap.ipsGap:2.ipsGap_row:1 > li > strong.ipsBadge.ipsBadge_large.ipsBadge_positive.ipsBadge_reverse > i.fa.fa-check',
                 'type'     => 'replace',
                 'content'  => 'some new content',
               ],
             ],
    ], parent::hookData() );
        }
        // End Hook Data
    }

    After I edit/add another element to the hook class:

    /**
     * @mixin \IPS\Theme\class_forums_front_topics
     */
    class test_hook_testHook extends _HOOK_CLASS_
    {
    
    /* !Hook Data - DO NOT REMOVE */
    public static function hookData() {
     return array_merge_recursive( array (
      'post' => 
      array (
        0 => 
        array (
          'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.ipsComment_meta.ipsType_light.ipsFlex.ipsFlex-ai:center.ipsFlex-jc:between.ipsFlex-fd:row-reverse > div.ipsType_light.ipsType_reset.ipsType_blendLinks.ipsComment_toolWrap > div.ipsResponsive_hidePhone.ipsComment_badges > ul.ipsList_reset.ipsFlex.ipsFlex-jc:end.ipsFlex-fw:wrap.ipsGap:2.ipsGap_row:1 > li > strong.ipsBadge.ipsBadge_large.ipsBadge_positive.ipsBadge_reverse > i.fa.fa-check',
          'type' => 'replace',
          'content' => '',
        ),
      ),
    ), parent::hookData() );
    }
    /* End Hook Data */
        // !Hook Data - DO NOT REMOVE
        public static function hookData()
        {
            return array_merge_recursive( [
             'post' => [
               0 => [
                 'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.ipsComment_meta.ipsType_light.ipsFlex.ipsFlex-ai:center.ipsFlex-jc:between.ipsFlex-fd:row-reverse > div.ipsType_light.ipsType_reset.ipsType_blendLinks.ipsComment_toolWrap > div.ipsResponsive_hidePhone.ipsComment_badges > ul.ipsList_reset.ipsFlex.ipsFlex-jc:end.ipsFlex-fw:wrap.ipsGap:2.ipsGap_row:1 > li > strong.ipsBadge.ipsBadge_large.ipsBadge_positive.ipsBadge_reverse > i.fa.fa-check',
                 'type'     => 'replace',
                 'content'  => '',
               ],
             ],
    ], parent::hookData() );
        }
        // End Hook Data
    }

    Seems like there is an issue with your preg replace method?

  5. 3 minutes ago, Randy Calvert said:

    Ban by IP prevents any username from signing in. Ā To be honest, blocking by IP nowadays is almost useless. I can switch IP addresses with my ISP with the click of a button, or use a VPN, or switch to a mobile device and wander around, etc.Ā 

    The behavior of blocking only logged in accounts has been like this as long as I can remember. To be honest, if you want to block the entire IPā€¦ donā€™t try to use software. Either use the server (like htaccess or a server firewall like csf) or with a WAF (like cloudflare).

    Cheers,

    We already block by Server level and Cloudflare, it's more that we want something quick and dirty to get them off the forum first.

    I am asking if the way that this works has changed or not.

  6. I'm not sure if this is a bug, or the behaviour has changed with the way ban by IP address works.

    I have banned members by IP address, but they are still able to view the site. It's only when they sign in that they get a banned message.

    When you ban a member by IP address, are they not blocked from viewing the forum, even as a guest?

    Ā 

    Ā 

  7. It just means that you will have to update your MySQL Database at some point.

    PHP versions and MySQL are two different parts to your server. You have highlighted your PHP version, it's your Database (bottom left of the picture) which is the issue here.

    If you cannot update your server yourself, ask your hosting company if they will upgrade your MySQL version.

  8. On 8/7/2023 at 9:33 AM, Marc Stridgen said:

    Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

    Ā 

    Can you let me know if this has been fixed in the next release, please?

    The bug is still there and this has now been nearly 5 months. šŸ™‚

    Cheers!

  9. On 11/6/2023 at 2:28 PM, Marc Stridgen said:

    Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

    Ā 

    Can you let me know if this bug has been fixed in the next release?

  10. I have just upgraded my test and live installs fromĀ Version 4.7.12 to Version 4.7.14, and I have issues with Form Text not displaying 0 values correctly. 0 seem to be treated as NULL or Empty values now.

    Text Form on 4.7.12

    Could contain: Page, Text

    Same Form 4.7.14

    Could contain: Page, Text, Electronics, Mobile Phone, Phone

    There were no other changes to the code or the values (database) expect from changing from Invision 4.7.12 to 4.7.14.

    $form->add( new \IPS\Helpers\Form\Text( 'fixture_goals_home', $fixture->goals_home, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Text( 'fixture_goals_away', $fixture->goals_away, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Text( 'fixture_home_ft_score', $fixture->home_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Text( 'fixture_away_ft_score', $fixture->away_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Text( 'fixture_home_ht_score', $fixture->home_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ht_score' ) );
    $form->add( new \IPS\Helpers\Form\Text( 'fixture_away_ht_score', $fixture->away_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ht_score' ) );

    If I change the above to use Form Number instead

    $form->add( new \IPS\Helpers\Form\Number( 'fixture_goals_home', $fixture->goals_home, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Number( 'fixture_goals_away', $fixture->goals_away, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Number( 'fixture_home_ft_score', $fixture->home_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Number( 'fixture_away_ft_score', $fixture->away_ft_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ft_score' ) );
    $form->add( new \IPS\Helpers\Form\Number( 'fixture_home_ht_score', $fixture->home_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_home_ht_score' ) );
    $form->add( new \IPS\Helpers\Form\Number( 'fixture_away_ht_score', $fixture->away_ht_score, FALSE, [], NULL, NULL, NULL, 'fixture_away_ht_score' ) );

    Then the form values are correct.

    Could contain: Page, Text, Electronics, Mobile Phone, Phone

    Ā 

  11. As you can see from the screenshot below, there seems to be an issue with the X Timeline block not updating the timeline.

    The block seems to be stuck from over two years now, and refuses to update. I originally thought this might have been due to the changes by X (Twitter) and I decided to wait until the last update to see if this would fix the issue.

    Is there anything else which could be causing this to happen?

    Could contain: Text, Person, Face, Head

  12. Also, if you are unsure as to what you are doing, you really should get someone else to do this for you who does.

    Remember to make a backup of your database before you do anything else.

    Here is my suggestion to you. Do not try to sign in for over 15 minutes, and just change your password. You should be able to login without changing anything in the database.

  13. 8 minutes ago, brandon forquer said:

    Where do I find this in filezilla

    You don't need to use FileZila for this.

    You should have phpMyAdmin in your CPanel.

    Look for the core_members table, and on your admin account which is locked, scroll along for 'failed_logins' and delete the contents in that field and then set 'failed_login_count' to 0.

    You can then use the forgot password tool to get a new password and be able to sign in.

  14. 22 minutes ago, Balto said:

    But how can I place it in the correct place? I mean, in the social icons in the top part of the website.

    CSS styles should allow you to change its position.

  15. 8 hours ago, guyroch said:

    If I summarize your reply, the short answer is yes, you'll force hosted customers to upgrade šŸ˜ž

    Like any software, you will either have to upgrade eventually or have to freeze your server software to accommodate your out of date Invision install.

    As Charles has said, version 4 will be updated and maintained for a good while yet, but eventually you will either have to upgrade or stick with the last version released (This option will come with its own issues).

Ɨ
Ɨ
  • Create New...