
Everything posted by Adlago
-
Logo in another language
Actually, I guessed what happened. Before creating my hooks I tried to create a new editor setting in category image logos(desktop). In default value I set this link with img src etc. Then I found that the logo image in the theme editor can be uploaded, but after saving, this image disappears from the theme editor. I gave up and deleted this new setting and currently there is nothing in the ACP/Themes - theme editor. Today I looked through the database and in the core_theme_editor_history table, I found the added link from me. This is probably a bug - after deleting a custom setting, all information about that setting is not removed in database. I can remove this link from the database, but I'm not sure exactly what part to remove. Please advice.
-
Logo in another language
I solved this case for me with 2 hooks. 1 hook - I added this code, before front/global/logo {{if \IPS\Member::loggedIn()->language()->id == 1}} <a href='{setting="base_url"}'> <img class= "logo_en" src= "/4home/logo_en.webp" width="408" height="120" alt="Nophelet consults"> </a> {{endif}} In a second hook, I hide the original logo with this code, after front/global/logo {{if \IPS\Member::loggedIn()->language()->id == 1}} <style> .ipsLogo__image {display: none;} </style> {{endif}} This works fine for me. But when I test the html5 validation I see an error related to this code. Error: CSS: --logo_en: Missing a semicolon before the property name blob. From line 104, column 12; to line 104, column 15 -logo_en: blob:https.... While browsing the source code page I came across this change to the inline style theme variable that was added by beta software (not sure which beta because I created these hooks shortly after this theme) <style id="themeVariables"> :root{ ................... --light__i-mobileFooter--co: hsl(238 99% 24%); --logo_en: blob:https://nophelet.com/79663999-4970-4a94-aea7-23b0574c3804; --dark__i-base-l: 54; .............. } </style> Any idea to remove this error?
-
I can't connect to Redis
What is the content of your constants php file?
-
Default_photo
Version 4 in this regard was very convenient. And why should ftp be used for this? And when you want to change the .png to .webp of this image, you won't be able to because you don't have access to the templates where the default photo is refering
-
Default_photo
How can I change the default_photo image? In theme resources only new resources can be added, but all used resources from the default theme are unavailable and there is no option to change them. thanks
-
Redis is eating a lot
Adlago replied to SoloInter's post in a topic in Invision Community 5: Beta Testing's Beta Discussion
-
Preload font
Do you have a TBT value monitor with and without this code?
-
Preload font
Rather, using "preload" in the head should not be fixed, but an option for administrators - who wishes to enable it, who decides to disable it. According to my analysis, the presence of a preload font in the head increases the total blocking time. Yes, it provides instant appearance of mobile navigation icons, and it is good to exist in version 4.x. In version 5.0 - when using a footer location for a navigation menu, the use of a preload font only creates an increase in total blocking time - therefore, in my opinion, using "preload" in a head should only be an option, and not a hard addition in a template.
-
Preload font
If this <!--!Font Awesome Free 6 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--> is removed from the includeCSS template, then changes to the head are easily implemented. Is there an option to remove this from the includeCSS template?
-
Preload font
In front/global/globalTemplate has this code {{if !\IPS\Request::i()->isAjax()}} <link rel="preload" as="font" type="font/woff2" href='{url="applications/core/interface/fontawesome/webfonts/fa-solid-900.woff2" base="none" noprotocol="true"}' crossorigin="anonymous"> {{if view.global_view_mode == 'default'}} <link rel="preload" as="script" media="(min-width:980px)" href='{url="applications/core/interface/theme/navigationMoreMenu.js" base="none" noprotocol="true"}'> {{endif}} {{endif}} A link rel preload font increases the total blocking time. I noticed this already in version 4.x - in which version it was easy to remove this link rel preload. How in version 5 can this preload font code be removed since using a hook does not access this code?
-
SSL
-
End of life
Your plugin is disabled ie. is not used. So feel free to log into your cPanel and switch to a PHP version of at least 8.0
-
End of life
No, not that - cPanel is a tool for settings in the server where your site is hosted. ACP is an administrator panel of the IPS suite - i.e. of your site software. .Next, log in as an administrator in ACP and find Plugins and see if you have such plugins uploaded and enabled there
-
End of life
Sometimes a 3rd party plugin can give you an issue when changing the PHP version - check in ACP if you are using 3rd party plugins
-
End of life
I have come across sites where the IPS suite is used only for a forum, and the rest of the site is developed with other software, ie. you are now using IPS version 4.7.3 - and you can use PHP 8.0 with it, but is your whole site built with this software only, or do you have something else?
-
End of life
If your site only uses an IPS platform - switching to PHP 8.0 will not create an issue for you, only a performance improvement. If an issue still occurs - in cPanel you can easily revert to a lower version PHP
-
Logo in another language
How can I use a theme editor or a hook to change my logo when the language selected by a user is the other one used in my installation? Any ideas I appreciate. Thank you
-
Custom template - Second series
Beta 2 restored in my installation front/global/globalTemplate. I followed an instruction from Nathan here But still in source code page - missing "<link rel ="preload" ...etc. >" which I created with custom template and hook. I've experimented with all the location options, but none of them make my custom template appear in the source code of the page. Of course I clear system caches a test site before reviewing source code. I tried adding original code in a custom template (for example, the code that adds preload fonts - the result is the same, nothing appears in the source code, whatever location I choose for it) Is this a bug or is there something else I need to do that I don't know about?
-
Is anyone considering to go live with v5 beta?
Adlago replied to Cedric V's post in a topic in Invision Community 5: Beta Testing's Beta DiscussionI found that my themes from v. 4 will not be correct with v. 5 and therefore I created a new home page. She is at the address https://nophelet.com/consults/ which will be offline in a few hours. I've also applied optimization tricks and despite some bugs I've reported, here's a current PSI test result. Of course, I still have work , but there is still time until the final implementation of the version...
-
Custom template
I have now downloaded Beta 1 again. I compared the size of front global php file - exactly the same I also re-uploaded the templates directory, cleared the site cache - the situation with the list is the same - missing front/ global/ globalTemplate
-
Custom template
-
Custom template
-
Custom template
-
Custom template
Thanks Nathan, I had that idea when I was looking at this - but even now I've checked a list from System 5 times. My list is missing front/ global/ global template...
-
Custom template
That's what I saw. But there is no option anywhere to add a custom template in the head, ie. this custom template does not contain any code to change or add to the different parts of the site, but only contains a link rel preload, or prefetch - and should be added to the head in site. Or, as in the theme editor there is a Custom CSS that adds inline CSS directly to the site head, so there should also be a Custom template in the theme editor, so that optimization preloads, prefetch, etc. can be easily entered.