Jump to content

Community

gudman

+Clients
  • Posts

    13
  • Joined

  • Last visited

About gudman

  • Birthday 10/26/1971

IPS Marketplace

  • Resources Contributor
    Total file submissions: 4

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gudman's Achievements

  1. @Adriano Faria OK. Thank you so much!
  2. Thank! Maybe there is an opportunity to download the previous version of your add-on for IPS 4.2?
  3. Hey! Will this work with IPS 4.2. *
    You can fix for 4.2 with following patch (just update app from xml). Or manually replace in hook selector to: 'selector' => 'li.ipsDataItem.ipsDataItem_responsivePhoto > ul.ipsDataItem_stats', SL Add rating to topics list.xml
  4. Dear friend, you are right but in common case. Let's see the code: /* Find the file */ $file = NULL; if ( $this->sourceFolder === \IPS\ROOT_PATH . '/plugins' ) { foreach ( new \GlobIterator( $this->sourceFolder . '/*/dev/html/' . $bit . '.phtml' ) as $file ) { break; } } else { $file = $this->sourceFolder . $bit . '.phtml'; } /* Get the content */ if ( $file === NULL or !file_exists( $file ) ) { throw new \BadMethodCallException( 'NO_TEMPLATE_FILE - ' . $file ); } => if in foreach we won't file $file => variable $file is NULL. And we get not informative error message.
  5. Hello, Dear colleagues, In file /system/Theme/Dev/Template.php (line 88) (version 4.1.18.2) may be more informative \BadMethodCallException message is: throw new \BadMethodCallException( 'NO_TEMPLATE_FILE - ' . $file . '; BIT - ' . $bit ); Very hard to debug with message: Thank you.
  6. Dear friends, I have no idea how to deal with support because it's not funny :-D I decided to post about this thing there and wait for comment from developers :-)
  7. Finally my solution is: if ( count( $this->group ) ) { $count = $count->count(); } else { $count = $count->first(); }
  8. Hello, guys, I think that I found a small problem with system/Helpers/Table/Db.php: /* Count results (for pagination) */ $count = \IPS\Db::i()->select( 'count(*)', $this->table, $where ); and... $count = $count->first(); This method of counting lines not works properly when we use "GROUP BY" clause. May be better: $count = \IPS\Db::i()->select( 'count(*)', $this->table, $where, NULL, NULL, $this->group ); //... $count = $count->count(); Thank you in advance.
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy