Fork me on GitHub

Forum bugfix

Hi, I did some investigation to the errors we are experiencing from time to time on the forum, and I think they are now resolved.

Topic | Forum


Re: Adding data table plugin to improve tables

I looked around, and stumbled upon this page : https://bitsofco.de/async-vs-defer/ where the author explains a bit what the different options are, and when you can use what.

Putting scripts at the end of the page to make the browser take them into account last is an option. But that will not always offer the biggest speed improvement, because you will still be loading the files one after the other. If the script in question has no dependencies, you could use the "async" keyword, to indicate to the browser that it can load the javascript file in parallel with parsing and downloading the HTML.

In the end, lesser files to download, even if they are bigger, is also an optimization. So you could also consider using tools like webpack, to reduce the size and the number of files you include in your page as an extra optimisation.

Topic | Forum


Re: Adding data table plugin to improve tables

This may be related to something I was just hashing over for page speed optimization. Google's Page Speed Insights suggests changing the parsing and execution of scripts and stylesheets and putting them only just before they are needed. Placing script tags and stylesheet tags in the header of a page actually stops page rendering until they are downloaded and parsed. See this info page from Google.

I'm experimenting with making all the javascripts 'defered' to start with. Some of this can be done in the theme, and some of it has to happen in the core - the $icms_module_header adds scripts and stylesheets like linkexternal.js and all the jQuery script files.

Anybody know of any reason NOT to defer their execution until the end of the page rendering?

Steve Twitter: @skenow Facebook: Steve Kenow



Re: Adding data table plugin to improve tables

Datatables integration would be great, so please do a PR for 2.0 once you have something that works

The problem that you are experiencing is that the data is managed in 2 worlds : the javascript world and the PHP world. The javascript world (datatables.js) works with the data that you give it. In a simple situation, the basic configuration of datatables works fine : you feed it all the data, and everything is managed inside the datatables implementation, on the client browser.

As you found out, that is limited to small datasets. Once you get into the few hundreds, the browser slows down considerably. The trick is to plugin PHP functionality to replace some of the functions that datatables does in the browser, and shift the workload as much as possible to the server. Sorting and such as well, because if you load only 15 elements inside of datatables, in its standard configuration, it will only work with those 15 lines, giving very funny results, that will be plain wrong

in my opinion, you will need to write an integration for the loading, updating, sorting, searching of data from datatables within ImpressCMS. Once you have that, the sky will be the limit



Adding data table plugin to improve tables

Hello!  I'm trying to customize the standard   icms_ipf_view_Table Actually, in order to use DataTable jquery Plugin I overwrote my system_persistabletable_display.html file in order to be able to use the plugin. (https://datatables.net/

For small tables it works like a charm, but when you have slightly bigger ones (around 1k records), data is being fetched completely and then Datatable is redendered. The downside is that it becomes really slow untill all loading is completed.  

I've also tried to keep the tree selector where I can have limits for 10, 15 etc records, but then I cannot access more data than selected for some reason.  I have other, larger tables where I can see thing getting too slow then. 

Reading the documentation I came up to defer loading, json rendering and background loading methods, but I don't know how to apply thoses changes inside impresscms in order to have it running.

Some links I read:  https://datatables.net/examples/server_side/defer_loading.html http://datatables.net/release-datatables/extras/Scroller/large_js_source.html https://datatables.net/faqs/#speed Any thought on how to optimize this loading process? 

Thanks!





Re: blank page on 1.3.11 softaculous install from scratch

If you install from your own upload to the host, does it work?

What are you able to see from CPanel/WHM/Plesk? All the files/folders, database?

Steve Twitter: @skenow Facebook: Steve Kenow



blank page on 1.3.11 softaculous install from scratch

I am setting up some sites on my hosting account, and I'm basing them on a softaculous installation. However, I can't seem to get a working install in 1.3.11, I always get a blank page.

The ImpressCMS site is running on a Softaculous install that was upgraded from 1.3.10 to 1.3.11, so that works. But it looks like an install from scratch is problematic.

Can anyone test a softaculous install and let me know?



ImpressCMS, SSL and Cloudflare Free

I setup my ImpressCMS site using a Let's Encrypt SSL certificate. Everything works fine, nothing specific to configure other than putting 'https' in your root url. The site was running a bit sluggish, due to the server being on the other end of the world, so I decided to activate the free Cloudflare option my hosting company offered.

After that, once Cloudflare was up and running, my site was unreachable due to 'the site redirecting in an incorrect way'. Because the site has been working without issue before, I figured it was the cloudflare setup that needed adapting.

I found this article on the cloudflare support site that explains what was happening : my site was SSL-only, but the cloudflare default setting is for 'Flexible SSL'. The Flexible SSL option acts as a SSL proxy between your users and your site, and can be a good option if you don't have the opportunity to run your site with an SSL certificate, but you want to expose an SSL address to the world. Cloudflare then exposes a HTTPS address to the outside world, but communicates with your servers without it.

Changing the option from 'Flexible SSL' to 'Full SSL' immediately fixed the issue for me. Site response times have improved considerably since then.



Re: login to custom php app using icms login credential ?

As a follow-up on this, you could implement this using a OAuth2 server, where the OAuth2 server lets the user login in your ImpressCMS site, and then notify your other webapp that the user is verified. That means custom development on both sides, and i don't think that this has been attempted before for an ImpressCMS site. 

This would be the most flexible solution, in the likes of logging in with Twitter, Google, Microsoft or Facebook into a site.



carousel no longer working after upgrade to ImpressCMS 1.3.11

Hi,

after we upgraded the ImpressCMS site (this one) to the latest version using Softaculous, we noticed after a short while that the carousel on the front page wasn't working anymore.

looking at the HTML sourcecode, the content was still there, but for some reason it wasn't showing on the screen anymore.

We noticed an error message in the browser logs telling us that the version of jQuery was too recent. As a quick fix, I downgraded the jQuery included in ImpressCMS to the one we bundled previously (1.9.1). Further investigation by @skenow revealed that it's our theme that is slightly too old and not using the latest version of Bootstrap 3. Bootstrap 3.3.7 supports jQuery higher than 3.0.

We'll upgrade our bootstrap and possibly our carousel version in the near future, but I just wanted to let you know in case you run into the same problem. It's not a core issue, it is most likely related to the bootstrap version in your theme.



Re: Happy New Year!

A happy new year to everyone. As I mentioned on the blog post, 2018 was a preparation that put in place many of the requirements that will allow us to deliver stuff during 2019. 

We will be celebrating our 11th anniversary in a few days, that's another occasion to celebrate.



Re: Happy New Year!

Happy new year to everyone :)



Happy New Year!

Most of us should be well into the first day of 2019 by now - may this year be ready for all we bring to it!

Steve Twitter: @skenow Facebook: Steve Kenow



Re: Another Year of Gratitude - Thank you!

Thank you very much Steve! Here in Europe we know Thanksgiving mainly because we have imported your 'Black Friday' tradition, but I really like the idea of taking the time to look back at the last year.

Looking forward to working with the entire community on new sites, new features and lots of new languages



Another Year of Gratitude - Thank you!

I believe a form of the Thanksgiving holiday we observe in the US is found all around the world - a time to be thoughtful and grateful for the many things we do have.

I would like to thank you, the ImpressCMS community - the supporters, founders, contributors, friends, developers, designers, writers, promoters, testers, translators, and all the people in your lives that allow you to be a part of this great project. We have been through much together in the past 11 years and I look forward to more years ahead.

 

Steve Twitter: @skenow Facebook: Steve Kenow



Re: login to custom php app using icms login credential ?

I totally agree with @skenow. This way you don't need to duplicate the login procedure in ImpressCMS, and you can still use the existing userbase.

 



Re: login to custom php app using icms login credential ?

So - you want to have your login be the login from your ImpressCMS site, with all their users and passwords, and the rest of the content be restricted, but not an icms site?

Then, each of your pages must check for a valid user, like your ICMS site does (icms::$user is set and meets your criteria).

To access this information, the easiest way I see is to require mainfile.php in all your pages, which will give you a connection to the db that holds the users and the salt key stored in the trust path to complete the authorization.

Steve Twitter: @skenow Facebook: Steve Kenow



login to custom php app using icms login credential ?

Hi

i would like to build a custom php application without using icms but i would like to use icms user/password from 
user table to login to my system 

is there any code script out there that i can use



Re: Any 1.3.11 beta2 feedback?

Thanks for the update! The module version that needs to be updates is a small improvement It shows if a module is kept up-to-date or not