Jump to content

VarunAgw

Clients
  • Posts

    44
  • 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

Everything posted by VarunAgw

  1. Ok understood. I just want to ensure I am not missing an existing feature and reinventing the wheel.
  2. There are multiple files (some are libraries with 1000s of line of code and some is custom code written internally). Merging all of them in a single file manually is not ideal for me. Is it possible to keep thems separate in dev environtment and merge them in a single file automatically in production?
  3. I am owner of the website (it's not a plugin/application). In the past, I added my JS under theme folder and added it in includJs using {resource} But I noticed, it caused 10+ additional requests when someone visits the website. How do I package under my JS with invision resource to avoid extra network requests?
  4. > Guest Page Cache removed (this is a legacy way to cache pages that replicates how a CDN works) - No action required This is really disappointing. I don't think most CDN can do something similar (caching for guest only). I use cloudflare and I don't remember any such feature there.
  5. There used to be this features as visible on the screenshot. But since recent upgrade of invision, it's gone. Any idea what happened and how to get it back?
  6. @Randy Calvert I thought so but apache/PHP is able to create blank file. If there was permission issue, there wouldn't a blank file either. Also some files in same directory are created with content. But I guess I can give it one more try and reassign the owner:group to the website.
  7. @Randy Calvert Yeah. I understand that. When I visit those CSS files directly, they are empty (0 bytes). It seem like invision create empty files for some reason. Brower console shows no error at all.
  8. One of my colleague use Mac. We are trying to create a clone of the website on his localhost so he can work. We had some success but we are stuck at the last step. After everything is ready, for some reason CSS doesn't work (neither in admin or front area). I noticed admin area doesn't load critical CSS like core core, framework, responsive. Frontend area does load it but I noticed some of them are completely empty like "core responsive". I tried deleting datastore, even disabling caching. I cleared cache in admin area multiple times too. But CSS resources won't load.
  9. Thanks a lot for the quick turnaround 🙂
  10. /admin/?app=core&module=support&controller=support&do=getBlock&block=methodcheck&sortdirection=desc It might help
  11. PHP8 Incompatible Customizations We are currently in the process of migrating our platform from PHP7 to PHP8 in order to provide you with the greatest level of performance and security. We've identified one or more Applications or Plugins currently installed on your site which contain PHP8 incompatible hooks and/or subclasses. In PHP8, altering overloaded method signatures within a subclass results in a fatal error which can make a site completely inoperable. Also, our hook system relies on subclasses so this change applies to hooks as well. Therefore, this code must be either replaced with an updated version, removed, or disabled from your site as soon as possible. If you are not sure what this means, you must contact the Author of any listed Application or Plugin for an updated version. If you cannot update to a PHP8 compatible version, the Application or Plugin will have to be disabled or removed. Another issue I was thinking of reporting. See attached screenshot. I had to manually disable this field "newsletter_forum" because it was crashing my application (I don't use forum feature). It would be nice if newsletter application is smart and take care of checking if forum application is enabled instead of just crashing
  12. Hi, Just want to give you a quick heads up. I did an update of invision community to v4.7.2. Now newsletter application is locked and disabled by invision for containing "outdated code". I can't use it anymore. I guess it needs to be compatible with PHP 8 or something. Hope the issue get resolved soon.
  13. Thank you for the quick answer @Adriano Faria
  14. There are some internal JS files I need to overwrite. But I can't directly override them since I suspect changes will be lost during an upgrade. So how do I override them? Is their a way to hook into them?
  15. ips\system\Helpers\Form The folder have around 40 different form elements. Is their any where I can see the demo for them, or read a quick description for each of them?
  16. {lang="required"} Suppose there is this code and there is a value defined for it. How do I override it? If I edit applications/core/data/lang.xml, I think the changes will be lost during an upgrade in the future. What's the recommended way?
  17. It has happened with many times on dev environment. I was running the update but have to cancel completely because I got some error (like permissions) But there is no button to cancel it. It just get stuck most of the time. How do I force cancel the upgrade?
  18. I have inherited a large codebase of phtml code with mix of HTML and PHP, but with very poor formatting. It's around 5K lines in a single file. My IDE IntelliJ doesn't support phtml. Is their any IDE or online editor where I can quickly reformat this file to fix the tab/space issues? It's one time task, so I am flexible with any solution.
  19. I ended up writing a small patch which implemented this functionality. $configuration[$contentField] = preg_replace_callback('~\{block=([\'"])(.*?)\1\}~', function ($match) { $blockKey = $match[2]; $block = Block::load($blockKey, 'block_key'); return $block->widget()->render(); }, $configuration[$contentField]);
  20. I am using invision blocks in my application. The block A contains a HTML editor which you can use to insert HTML by our content writers My current project require you to insert another block B inside this HTML editor Inserting {block="Block_B"} in the HTML of block A didn't work. How do I make IPS process the block B inside block A. Note: I wrote both the Block A and Block B, and use the default HTML editor from IPS.
  21. Thanks @Sonya*. Mixins seems to be the solution I was looking for 🙂
×
×
  • Create New...