Matt

IPS Management
  • Content count

    32,582
  • Joined

  • Last visited


About Matt

  • Rank
    Chief Software Architect

Contact Methods

IPS Marketplace

  • Resources Contributor Total file submissions: 1

Profile Information

  • Gender Male
  • Location Cambs, UK!
  • Interests This

Recent Profile Visitors


209,580 profile views

Matt's Activity

  1. Matt added a post in a topic: IPS4 Theme Settings - Show setting key   

    Squeezed this into 4.0.7.
  2. Matt added a comment: Pages: With Attachment Field "is a .h@5h file"   

    Changed Status to Fixed
  3. Matt added a comment: Pages: With Attachment Field "is a .h@5h file"   

    Working
  4. Matt added a comment: Pages duplicate entries in core_attachments_map   

    Changed Status to Fixed
  5. Matt added a comment: Pages duplicate entries in core_attachments_map   

    Working
  6. Matt added a comment: Pages upgrades to not update upload and attachment fields properly   

    Changed Status to Fixed
  7. Matt added a comment: Pages upgrades to not update upload and attachment fields properly   

    This is now fixed in the next release (4.0.7). However, because ccs_attachments_map was dropped during the upgrade, and the meta data not preserved in the core_attachments table, you'll need to restore a back-up of the ccs_attachments_map table and submit a ticket so we can process it manually.
    Simply upgrading from 4.0.6 to 4.0.7 will not restore these attachments.
    Anyone coming from 3.4.7 to 4.0.7 will have their attachments converted.
  8. Matt added a comment: [4.0.6.1] Pages field with multiple uploads error   

    Changed Status to Fixed
  9. Matt added a comment: [4.0.6.1] Pages field with multiple uploads error   

    Can you submit a ticket for me please? I've fixed the bug, but I'll fix your site for you.
  10. Matt added a article in Development   

    Changes to the File System in 4.0.5+ (Affects themes, custom blocks and more)
    For the IPS4.0.5 release, we changed how files are stored and loaded within the suite. Previously we stored the entire URL which was convenient but it made it problematic when you moved your community or tried to move images to another system such as Amazon S3.
    From 4.0.5 onwards, just the container and file name is stored in the database. This is much better for the database as it means you do not need to update your database when you change your URL and it's easier to move the files as there are no database changes to update.
    However, it does mean that you need to change how you display images in many cases.
    For example, if you had something like this:
    <strong>{$member->group['icon']}</strong>You'll notice that now it is just a broken image. You can use the new {file} tag to display it, like this:
    <strong>{file="$member->group['icon']" extension="core_Theme"}</strong>This will now display correctly. The extension parameter is mapped to the FileStorage extension found in /applications/{app}/extensions/core/FileStorage.
    So, for example, if you are managing gallery Images, the extension is gallery_Images. If you're managing Pages records, the extension is cms_Records.
    When writing code, you will need to be mindful of the changes. From IPS4.0.5 on newer, you will need to use code similar to this below:
    # Create and save (this is largely the same) $file = \IPS\File::create( 'core_Theme', 'file.txt', $contents ); # Calling (string) on $file now returns just the container/file.txt e.g. (monthly_04_2015/file.txt) \IPS\Db::i()->insert( 'table', array( 'url' => (string) $file ) ); # Load and show $row = \IPS\Db::i()->select( '*', 'table', array( 'file=?', 'file.txt' ) ); # We now have the container/file.txt, but we need the full URL $url = \IPS\File::get( 'app_Extension', $row['url'] )->url; print "<a href='{$url}'>";The most important part to keep in mind is that (string) $file will now store just container/file.txt and you need to call \IPS\File::get( 'app_Extension', $row['url'] )->url to get the full URL.
    • 0 replies
    • 242 views
  11. Matt added a comment: [4.0.4] Pages: <wbr> tag appearing in custom record fields   

    Changed Status to Closed
  12. Matt added a comment: [4.0.4] Pages: <wbr> tag appearing in custom record fields   

    You'll need to use {$formValue} in your custom template for this.
    $value is the display value (which is often parsed in some way) and $formValue is the value as it is stored in the database.
  13. Matt added a comment: 4.0.2 Pages upload fields don’t save to Amazon S3   

    Changed Status to Fixed
  14. Matt added a comment: [4.0.5.1] CDN-Paths broken   

    Changed Status to Fixed