Re: Where does the core inject all this javascript?

These comes from <{$icms_module_header}> variable in theme. Sadly, right now I think there is no way to specify place where to output this variable.

Topic | Forum

Where does the core inject all this javascript?

I'm trying to find out where the core automatically injects javascript in my page. I use Bootstrap theme, and I came to the conclusion that I have 2 jquery scripts, and a load of other scripts as well that are included automatically on my page. Google proposes to change the place on the page, in order to speed the rendering, so I would like to know where the core does that, and perhaps alter the behaviour.

Topic | Forum

Re: ImpressCMS site improvements for mobile

I have fixed the most important issue : the topbar menu is now visible on small mobile devices, and the 'fork me on github' banner is no longer shown on those screen sizes. I'm looking at the blocks on the front page with news items and forum topics now to improve upon.

ImpressCMS site improvements for mobile


I've come to realize that the current theme has some issues for mobile admin users. The user menu block is not visible for mobile devices. The theme will be updated to improve on that. 

If you have other suggestions to improve the mobile experience, let me know in the thread. 

Happy 2020!

<p>As the year 2019 runs to its end, I would like to thank you all for the contributions the last year. Our contributions have been up year-on-year, resulting in the 1.4 release, which is a nice achievement even though it isn't the long-awaited v2.&nbsp;</p> <p>The work on v2 has advanced, and we now have a quite clear view of the steps that still need to be taken to get this major mile-stone out in the field. I feel that the momentum for v2 has improved, even though my availability has had some periods where it wasn't what I wished it to be. The fact that my availibility can have such an impact on the advancement of the project is a clear wakeup call that we need to expand the team.&nbsp;</p> <p>There are interesting challenges to look forward to in the next year, such as making v2 the best version possible without getting down into a feature creep spiral, finalizing a new base theme, rethinking how editors are handled, updating our installer. This will give us the opportunity to investigate in very diverse parts of ImpressCMS how we can improve or modernize&nbsp;what is already there, and add new functionality that improves the usefulness to our users.</p> <p>All nice things to look forward to, but in the meantime I wish you happy celebrations the way you prefer (wild parties, amongst friends, with&nbsp;family or loved ones) and a happy 2020!</p>

Happy Thanksgiving! (a.k.a. The Day Before Black Friday)

"Thank you!" 2 of the most important words in any language. Say them often, say them out loud, say them like you mean it. Here's how the observation of this day came into being in the U.S.

Washington, D.C.
October 3, 1863

By the President of the United States of America.

A Proclamation.

The year that is drawing towards its close, has been filled with the blessings of fruitful fields and healthful skies. To these bounties, which are so constantly enjoyed that we are prone to forget the source from which they come, others have been added, which are of so extraordinary a nature, that they cannot fail to penetrate and soften even the heart which is habitually insensible to the ever watchful providence of Almighty God. In the midst of a civil war of unequalled magnitude and severity, which has sometimes seemed to foreign States to invite and to provoke their aggression, peace has been preserved with all nations, order has been maintained, the laws have been respected and obeyed, and harmony has prevailed everywhere except in the theatre of military conflict; while that theatre has been greatly contracted by the advancing armies and navies of the Union. Needful diversions of wealth and of strength from the fields of peaceful industry to the national defence, have not arrested the plough, the shuttle or the ship; the axe has enlarged the borders of our settlements, and the mines, as well of iron and coal as of the precious metals, have yielded even more abundantly than heretofore. Population has steadily increased, notwithstanding the waste that has been made in the camp, the siege and the battle-field; and the country, rejoicing in the consciousness of augmented strength and vigor, is permitted to expect continuance of years with large increase of freedom. No human counsel hath devised nor hath any mortal hand worked out these great things. They are the gracious gifts of the Most High God, who, while dealing with us in anger for our sins, hath nevertheless remembered mercy. It has seemed to me fit and proper that they should be solemnly, reverently and gratefully acknowledged as with one heart and one voice by the whole American People. I do therefore invite my fellow citizens in every part of the United States, and also those who are at sea and those who are sojourning in foreign lands, to set apart and observe the last Thursday of November next, as a day of Thanksgiving and Praise to our beneficent Father who dwelleth in the Heavens. And I recommend to them that while offering up the ascriptions justly due to Him for such singular deliverances and blessings, they do also, with humble penitence for our national perverseness and disobedience, commend to His tender care all those who have become widows, orphans, mourners or sufferers in the lamentable civil strife in which we are unavoidably engaged, and fervently implore the interposition of the Almighty Hand to heal the wounds of the nation and to restore it as soon as may be consistent with the Divine purposes to the full enjoyment of peace, harmony, tranquillity and Union.

In testimony whereof, I have hereunto set my hand and caused the Seal of the United States to be affixed.

Done at the City of Washington, this Third day of October, in the year of our Lord one thousand eight hundred and sixty-three, and of the Independence of the United States the Eighty-eighth.

By the President: Abraham Lincoln

William H. Seward,
Secretary of State

Enjoy your day, everyone! Be safe, be happy - and most of all - "Thank you!"

Steve Twitter: @skenow Facebook: Steve Kenow

Re: icmsOnDemandPreload - what is it and how does it work?

<p>I tested this in ImpressCMS 1.4.0 (the module-specific code by marcan) and it works, but the filename doesn't need to have the '.php' extension at the end.</p>

github sponsors beta enrollment


<p>some time ago I expressed my interest for the <a href="">Github Sponsors program</a>, and I received a message yesterday to tell me I was accepted in the beta.</p>

<p>At the moment it looks like the sponsors program is aimed exclusively at individual github accounts, and not at organisations. This means people will need to sponsor a single individual.</p>

<p>I haven't had much opportunity to look into it in detail, I will comment in here once I have more information and background.</p>

<p>Did you enroll in the program, or do you use other types of systems/sites to partially fund your development work? I'd be interested to hear about them.</p>

Refactoring the system module templates

During the period that 1.4 is being finalised, I came across the Bulma CSS framework and i wanted to try it to see if it would be a good fit to develop a new, more modern, admin theme. The work is not yet done, but during that initial search I identified that in fact most of hte templates for the ACP part of the system module simply didn't work. It is possible to change the general appearance of your ACP with a theme_admin.html file, but the specific contents of the different ACP screens are locked.


The reasons were two-fold :

  • in many places, the template file was hardcoded to the one in the module, and not the one in the theme
  • where the theme template was referenced, the reference was using a path structure in the identifier, and that didn't work with the templating engine (smarty 2 at this moment still).

As a result, there are 2 PR in the 1.4.0 beta release that fix this : I changed the location and the name of the templates in the system module, in such a way that all the templates, ACP or user side, all live in the same folder. I also adapted the code to reference the theme template.

During that work, I came to realise that there are still some parts of the system module ACP that are hard-coding HTML (and some ugly HTML constructions, at that). I'm currently trying to refactor the avatar section into clean code and a separate template. That shouldn't keep a new version from being published, because it will not introduce new functionalities or fix bugs, but it's a small step in cleaning up the system module.

Re: A project I've been putting off - ICMS 1.2.x to 1.3.x

thanks for the update, I have updated the information on the github page :

One of these days I should test iForum thoroughly on PHP7 and release the 2.0 final

Re: A project I've been putting off - ICMS 1.2.x to 1.3.x

Ran some tests this morning - iForum 2.0 requires ImpressCMS 1.3+ and not 1.2+ as the readme states. I'll have to do this in stages

Steve Twitter: @skenow Facebook: Steve Kenow

Re: A project I've been putting off - ICMS 1.2.x to 1.3.x

I'm thinking of updating the imBuilding templates to make them compatible with 1.4. While doing that, adding a skeleton to support fine-grained permissions might be a worthwile improvement.

Re: A project I've been putting off - ICMS 1.2.x to 1.3.x

I've been reexamining my choice of having separate modules for news (time sensitive posts), articles (long term posts), and blogs (mostly point-of-view posts, that could be short- or long-term posts) and haven't done much in the way of documenting a path forward, especially for modules that don't have a current compliant version.

The forum migration should be workable - iForum has the permissions structure I'm looking to maintain and works in ImpressCMS 1.2+. We also know it works on 1.3.

News will probably end up being blog posts, and articles will probably end up being wiki pages. I haven't fully decided, yetl


Steve Twitter: @skenow Facebook: Steve Kenow

Re: A project I've been putting off - ICMS 1.2.x to 1.3.x

Hi @skenow , any news on this one? If the page on the wiki needs updating, feel free to do so based on your experience

Re: New admin theme - no change

<p>I think I found the reason. When you look at the code in the admin sections, they all use hardcoded paths to the system module. Not all of the pages are in <a href="">the icms_version.php file</a> as templates.</p>

<p>For example, when I take the <a href="">/htdocs/modules/system/admin/customtags/main.php</a> file, and change the last line that says</p>

<p>$icmsAdminTpl->display(ICMS_MODULES_PATH . "/system/templates/admin/customtag/system_adm_customtag.html");</p>

<p>and change it to&nbsp;</p>


<p>I get a nice white section where the custom tag manager used to be. I think it is something related with the paths in the filename, but I'm still looking into that to make sure.</p>

Re: Module testing for ImpressCMS 1.4/PHP7

<p>I've been working on Protector and have it updated to work with PHP7 - installation works and it is activated if the permissions are correct on /plugins/preloads/.</p> <p>Similarly, a new release of SimplyWiki is in the final stages of testing, and working in ImpressCMS 1.3+</p>

Steve Twitter: @skenow Facebook: Steve Kenow

Re: New admin theme - no change

<p>as a matter of fact, I have the base theme template working, so the admin control panel renders in the new system. It's the system module that I have issues with because at the moment I have this kind of Frankenstein combination of a mobile-first responsive shell, and a nineties-inspired table-based interior.</p>

Re: New admin theme - no change

<p>There are 2 theme selectors - 1 for the user side and 1 for the admin side. To skin the admin area, have a look at libraries/icms/view/theme/Factory.php and the method getAdminThemesList(). There is where the override is set for the admin area. The core looks for the overrides in either modules/system/themes/ or themes/<your theme>/theme_admin.html</p>

Steve Twitter: @skenow Facebook: Steve Kenow

Content system module 1.2.2 : OK

<p>I quickly tested the content system module on PHP7, and I needed to make a small fix, so that will result in 1.2.2 in the following hours. But the content module is ok.</p>

Re: New admin theme - no change

<p>As a matter of fact, similar changes were done by @debianus in the preparations for the 2.0 branch. I'll have a look there to see if I can spot a change that should be backported to 1.4</p>