Jump to content

Nathan Explosion

Clients
  • Posts

    6,990
  • Joined

  • Days Won

    127

 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 Nathan Explosion

  1. Did you follow the provided instructions for inserting the required code into your database templates?

    If you need assistance on doing that, or a verification that what you have added is correctly done, then I'll need access to your site's ACP to check the templates.

  2. Just popped up on my local dev install...

    DELETE FROM `core_contact_verify` WHERE verify_time<IPS\DateTime::__set_state(array(
       'date' => '2023-08-05 12:02:03.826529',
       'timezone_type' => 3,
       'timezone' => 'UTC',
    ))
    IPS\Db\Exception: Truncated incorrect INTEGER value: '8/5/2023 12:02' (1292)
    #0 C:\wamp64\www\dev\ips_47_dev_c\system\Db\Db.php(1297): IPS\_Db->preparedQuery('/*ips_47_dev_c:...', Array)
    #1 C:\wamp64\www\dev\ips_47_dev_c\applications\core\tasks\cleanup.php(336): IPS\_Db->delete('core_contact_ve...', Array)
    #2 C:\wamp64\www\dev\ips_47_dev_c\system\Task\Task.php(274): IPS\core\tasks\_cleanup->execute()
    #3 C:\wamp64\www\dev\ips_47_dev_c\applications\core\modules\admin\settings\advanced.php(751): IPS\_Task->run()
    #4 C:\wamp64\www\dev\ips_47_dev_c\system\Dispatcher\Controller.php(107): IPS\core\modules\admin\settings\_advanced->runTask()
    #5 C:\wamp64\www\dev\ips_47_dev_c\applications\core\modules\admin\settings\advanced.php(38): IPS\Dispatcher\_Controller->execute()
    #6 C:\wamp64\www\dev\ips_47_dev_c\system\Dispatcher\Dispatcher.php(153): IPS\core\modules\admin\settings\_advanced->execute()
    #7 C:\wamp64\www\dev\ips_47_dev_c\admin\index.php(13): IPS\_Dispatcher->run()
    #8 {main}

    The task's last action is:

    /* Delete Contact Us Verifications older than a month */
    \IPS\Db::i()->delete( 'core_contact_verify', array( "verify_time<?", \IPS\DateTime::create()->sub( new \DateInterval( 'P30D' ) ) ) );

    Needs a "->getTimestamp()"

     

  3. 46 minutes ago, SJ77 said:

    I think members who are deleted aren't recalculated and deducted from the widget count is my guess

    The widget count is just a SQL query - it's not a figure that is recalculated as and when something is done:

    /* fetch only successful registered members ; if this needs to be changed, please review the other areas where we have the name<>? AND email<>? condition */
    $where = array( 'completed=?', true );
    /* Member count */
    $stats['member_count'] = \IPS\Db::i()->select( 'COUNT(*)', 'core_members', $where )->first();

    Which is:

    SELECT count(*) from core_members WHERE completed = TRUE;

    Got a tonne of validating members?

    Maybe show what search criteria was used for the search result? (To be clear how you got there)

     

  4. 7 minutes ago, DawPi said:

    It's not even stored in cookies? Interesting!

    Cookie = 2K of data. Multi-quoting your post there = 1,162 characters alone.

    {"forums-forums-2951956":{"userid":35662,"username":"Nathan Explosion","timestamp":1693161959,"contentapp":"forums","contenttype":"forums","contentclass":"forums_Topic","contentid":475226,"contentcommentid":2951956,"quoteHtml":"\n\t\t\t<p>\n\tIf not a mobile, then clear the following from \"Local Storage\" (screenshot from Firefox, developer tools accessible via Ctrl + Shift + I)\n</p>\n\n<p>\n\t<a href=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" title=\"Enlarge image\" data-fileid=\"194971\" data-wrappedlink=\"\" data-ipslightbox=\"\" data-ipslightbox-group=\"undefined\"><img class=\"ipsImage ipsImage_thumbnailed\" data-fileid=\"194971\" data-ratio=\"42.25\" width=\"968\" alt=\"Could contain: File, Webpage, Page, Text\" data-src=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" src=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" style=\"height: auto;\" data-loaded=\"true\"></a></p>\n\n\n\t\t\t\n\t\t","button":"mq2951956","stack":["controllers.core.front.core.comment.ipscontroller39"]}}

    Local storage = 5MB

    Edit: actually, it might have moved up to be 10MB.

  5. @sychn as per PM, here's a different way of doing what you are trying to achieve using this:

    2 hours ago, Jim M said:

    same concept as setting up a custom toolbar in version 4.

    1. ACP -> Customization -> (Editor) Toolbars
    2. Click 'Add Button', and go to the 'Custom' tab
    3. Populate the fields as you wish, but adhere to the following specifics:
      • Enable 'Use option?'
      • Enter some text in the 'Option label' field (example: 'Link')
      • In the HTML field, enter the exact code from the codebox provided in this post
    4. Click 'Save'
    5. You will now have a new button in your "Buttons not on editor", which you can drag and drop around the available editors
    6. On the front-end, click the button, paste the link into the provided dialog box field, and click OK

    HTML:

    <p>
    	<video controls="">
    		<source src="{option}">{option}
    	</video>
    </p>

     

  6. Spamming my own topic...

    For reference - take a look at the forum index, and hover your mouse over the topic title. Once the preview appears, go ahead and click the notice - you'll see that the content appears fine there. So, narrowed it down now to the viewing of the topic = not working.

  7. Curiosity...

    Could contain: Chart, Plot, Computer Hardware, Electronics, Hardware, Text

    No idea why/where/how that is in there but it shouldn't be...

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

    Any reason why you are loading up Jquery again, considering when it's already loaded up as part of the IPS framework?

×
×
  • Create New...