Jump to content

Kyle F

Members
  • Posts

    1,138
  • Joined

  • Last visited

 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 Kyle F

  1. 2 hours ago, Daniel F said:
    
    {{$count=\IPS\Db::i()->select( 'COUNT(*)', 'core_members', ['completed=?', true] )->first();}}
    Total Members: {$count}

     

    I get an error when doing this:

    ParseError: syntax error, unexpected '}' (0)
    #0 /home/unified1/public_html/system/Helpers/Form/FormAbstract.php(377): IPS\cms\Blocks\_Block->IPS\cms\Blocks\{closure}('{{$count=\\IPS\\D...')
    #1 /home/unified1/public_html/system/Helpers/Form/TextArea.php(119): IPS\Helpers\Form\_FormAbstract->validate()
    #2 /home/unified1/public_html/system/Helpers/Form/FormAbstract.php(165): IPS\Helpers\Form\_TextArea->validate()
    #3 /home/unified1/public_html/system/Helpers/Form/FormAbstract.php(142): IPS\Helpers\Form\_FormAbstract->setValue(true)
    #4 /home/unified1/public_html/system/Helpers/Form/TextArea.php(66): IPS\Helpers\Form\_FormAbstract->__construct('block_content', '', false, Array, Object(Closure), NULL, NULL, 'block_content')
    #5 /home/unified1/public_html/system/Helpers/Form/Codemirror.php(68): IPS\Helpers\Form\_TextArea->__construct('block_content', '', false, Array, Object(Closure), NULL, NULL, 'block_content')
    #6 /home/unified1/public_html/applications/cms/sources/Blocks/Block.php(668): IPS\Helpers\Form\_Codemirror->__construct('block_content', '', false, Array, Object(Closure), NULL, NULL, 'block_content')
    #7 /home/unified1/public_html/system/Node/Controller.php(489): IPS\cms\Blocks\_Block->form(Object(IPS\Helpers\Form))
    #8 /home/unified1/public_html/init.php(820) : eval()'d code(16): IPS\Node\_Controller->_addEditForm(Object(IPS\cms\Blocks\Block))
    #9 /home/unified1/public_html/system/Node/Controller.php(388): IPS\Node\rules_hook_ipsNodeController->_addEditForm(Object(IPS\cms\Blocks\Block))
    #10 /home/unified1/public_html/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form()
    #11 /home/unified1/public_html/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
    #12 /home/unified1/public_html/applications/cms/modules/admin/pages/blocks.php(39): IPS\Node\_Controller->execute()
    #13 /home/unified1/public_html/system/Dispatcher/Dispatcher.php(152): IPS\cms\modules\admin\pages\_blocks->execute()
    #14 /home/unified1/public_html/admin/index.php(14): IPS\_Dispatcher->run()
    #15 {main}

    Code:

    {{$count=\IPS\Db::i()->select( 'COUNT(*)', 'core_members', ['completed=?', true] )->first();}}
    {$count}

     

  2. On 2/21/2019 at 12:48 PM, Fosters said:

    It’s not compatible yet, but if you take a look at our profile, you’ll see that we’ve started releasing the 4.4 versions 😀. This is a huge app and needs some further testing,  but I’m expecting that it’s ready by end of the week 

    Thank you for your response.

×
×
  • Create New...