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. For my project, I need very high level of customization. I noticed some of the frontend template are generated from JS. Example ips\dev\js\framework\templates\ips.core.templates.js ips.templates.set('core.rating.star', "\ <li class='{{className}}' data-ratingValue='{{value}}'><a href='#'><i class='fa fa-star'></i></a></li>\ "); How do I override these files in production? If I update dev folder, how do I compile them to production mode. After that, how do I sync changes in live website from localhost?
  2. Suppose I have this code in a template file. {media="icons/select-1.svg"} I actually want to reuse it later and want to store the results to variable $a like {{$a={media="icons/select-1.svg"};}} How do I achieve this?
  3. {{$selectIcon = "icons/select-" . $selectLogoSize . ".svg";}} <img src="{media="{$selectIcon}"}" /> That's how my code looks like, but for some reason, second line doesn't work. But if I remove the variable and manually enter the path as static, it works. How do I fix it?
  4. @CodingJungle Sounds great. Is it available for download? Thanks for the twig tip 🙂
  5. Hello, are there plugins related to Invision Community which add some IDE support. Functionalities I am looking for are: 1. Reformatting 2. Understanding Invision template syntax 3. Autocompletion for Invision templates
  6. I am talking about /admin area. It keep expiring the login very fast. If I take a break, I will be already logged out, and then I have to refresh all pages and open all the sub-tabs inside them (like multiple HTML templates). Is it possible to increase to timeout to perhaps a day in local dev installation?
  7. @DawPi I am talking about this statement $rootPath = \IPS\Http\Url::external( \IPS\Settings::i()->base_url )->data['path'];
  8. In ips/system/Output/Output.php::buildMetaTags() There is this statement $rootPath = \IPS\Http\Url::external( \IPS\Settings::i()->base_url )->data['path']; which is executing for every row in \IPS\Db::i()->select( '*', 'core_seo_meta' ) Turns out, we have 8000+ rows in core_seo_meta rows in database, so this statement executes 8000 times, causing ~300ms delay in response It would be better if the statement is moved out of forloop and executed only once.
  9. Just want to report the issue. ips/dev/Whoops/Exception/Inspector.php This file has this statement "xdebug_is_enabled()" https://xdebug.org/docs/upgrade_guide According to the docs, the function is removed now. Would be nice if IPS also update it's code now.
  10. @bfarber I have tried that, but still JS resources doesn't load in production when upgraded.
  11. Here is my problem. sitemap generator task for IPS execute this function. ips/system/Sitemap/Sitemap.php:buildNextSitemap() This function has this statement $extension->getFilenames(). which points to applications\cms\extensions\core\Sitemap\Databases.php:getFilenames() But the problem is this function (Databases.php:getFilenames()) never executes (I tried adding breakpoint), and IPS instead returns a old cached result of the function. As soon as I turn on dev mode, this function start executing and uncached result returns. How do I clear all the caching or regenerate the cache so that returned output of the function is latest. IPS version: v4.5.4.2 Caching method: Filesystem only (I already deleted datastore directory as well as rebooting the system, and also clearing cache in support page several times)
  12. I have this file "applications\abc\dev\js\admin\controllers\configuration\ips.configuration.form.js" which I load via $form = new Form('form', 'save', NULL, array('data-controller' => 'abc.admin.configuration.form')); Now I face some problems: 1. When I turn off dev mode, the file doesn't load at all. 2. Sometime it loads, but it keep showing the old cached version. 3. I compile it and then create a new version. After that, I upgrade the production with the new archive. But production doesn't load the JS at all. I have to enable dev mode in production, compile JS, and clear cache in support page several times, and then it works. How to fix this strange behavior?
  13. If there is an update to it, please do let me know. I am curious if I am doing something wrong.
  14. \applications\cms\sources\Databases\Databases.php:hasReciprocalLinking($databaseId) if ( $data['database'] == $databaseId and $data['crosslink'] ) This line in hasReciprocalLinking() method throws notice error for me. 14 => array (size=7) 0 => array (size=1) 'database' => string '10' (length=2) 1 => array (size=1) 'database' => string '12' (length=2) 2 => array (size=1) 'database' => string '12' (length=2) 3 => array (size=1) 'database' => string '7' (length=1) 4 => array (size=1) 'database' => string '26' (length=2) 5 => array (size=1) 'database' => string '13' (length=2) 6 => array (size=1) 'database' => string '13' (length=2) 15 => array (size=1) 0 => array (size=1) 'database' => string '13' (length=2) 16 => array (size=4) 0 => array (size=1) 'database' => string '7' (length=1) 1 => array (size=2) 'database' => string '16' (length=2) 'crosslink' => boolean true 2 => array (size=2) 'database' => string '16' (length=2) 'crosslink' => boolean true 3 => array (size=1) 'database' => string '9' (length=1) 17 => array (size=3) 0 => array (size=1) 'database' => string '16' (length=2) That's how the $values object looks like. Note when crosslink is false, it's not set to false by IPS in $values, instead the crosslink key is removed from the array, which causes `if ( $data['database'] == $databaseId and $data['crosslink'] )` to throw a notice.
×
×
  • Create New...