Problem with old template and privacy policy modal
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Problem with old template and privacy policy modal
HI,
opening the privacy policy in "modal" from the contact form no longer works on an old site.
All components have been updated and the framework is at 3.10.12.
I found on Github that it's a known bug and probably the template should be updated, could someone tell me how/where?
https://github.com/joomla/joomla-cms/issues/23199
I've actually seen that using the Protostar template it works.
For the com_contact there are no overrides so it should use the same default version for all templates.
Thanks everyone for any suggestions
opening the privacy policy in "modal" from the contact form no longer works on an old site.
All components have been updated and the framework is at 3.10.12.
I found on Github that it's a known bug and probably the template should be updated, could someone tell me how/where?
https://github.com/joomla/joomla-cms/issues/23199
I've actually seen that using the Protostar template it works.
For the com_contact there are no overrides so it should use the same default version for all templates.
Thanks everyone for any suggestions
- AMurray
- Joomla! Exemplar
- Posts: 9747
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Problem with old template and privacy policy modal
3.10.12 is out of support as of 18 August 2023.
The github issue relates to v3.9.1 not v3.10.12.
As far as I can tell, the core Joomla team has ceased further development of J3.10 bug fixes, security fixes and new features as of 18th August 2023.
Extended Long-term support is now in place through a paid subscription - refer to https://elts.joomla.org and https://magazine.joomla.org/all-issues/ ... -joomla-3x for details.
Exactly what template are you using where this is not working? If not one of the core templates, then I would approach the template's developer.
The github issue relates to v3.9.1 not v3.10.12.
As far as I can tell, the core Joomla team has ceased further development of J3.10 bug fixes, security fixes and new features as of 18th August 2023.
Extended Long-term support is now in place through a paid subscription - refer to https://elts.joomla.org and https://magazine.joomla.org/all-issues/ ... -joomla-3x for details.
Exactly what template are you using where this is not working? If not one of the core templates, then I would approach the template's developer.
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Re: Problem with old template and privacy policy modal
It is not a core template, then I'm searching a solution by myself but I'm looking if somebody could have some suggestion to start working on it.
A simple solution could be to remove that kind of modal link and make it a simple link to another page.
Thank you
A simple solution could be to remove that kind of modal link and make it a simple link to another page.
Thank you
- Pavel-ww
- Joomla! Ace
- Posts: 1638
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Problem with old template and privacy policy modal
Hi. Without link to the site it is not possible to help you
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Re: Problem with old template and privacy policy modal
-
- Joomla! Hero
- Posts: 2910
- Joined: Fri Jul 05, 2013 10:35 am
- Location: Parts Unknown
Re: Problem with old template and privacy policy modal
`hide` class is not being removed from the modal container. This could be because you're loading Bootstrap 3 scripts but J3 works with Bootstrap 2. One solution would be to create an override of layouts/joomla/modal/main.php and remove the class there.
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Re: Problem with old template and privacy policy modal
Maybe I could make the override, but how to "remove" the class ?
I tried by the console simply with:
Code: Select all
jQuery(".hide").removeClass();
-
- Joomla! Hero
- Posts: 2910
- Joined: Fri Jul 05, 2013 10:35 am
- Location: Parts Unknown
Re: Problem with old template and privacy policy modal
You need to remove just `hide` class, not all classes. But this code is very generic and might break other things. If using the override method, you would just need to remove the class from this line:
Code: Select all
jQuery(".hide").removeClass("hide");
Code: Select all
$modalClasses = array('modal', 'hide');
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Re: Problem with old template and privacy policy modal
I've created the override for main.php and it works, but it opens the modal without close buttonSharkyKZ wrote: ↑Thu Aug 24, 2023 2:56 pmIf using the override method, you would just need to remove the class from this line:Code: Select all
$modalClasses = array('modal', 'hide');
- Pavel-ww
- Joomla! Ace
- Posts: 1638
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Problem with old template and privacy policy modal
It is there but too little
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 28
- Joined: Fri Apr 03, 2009 1:43 pm
Re: Problem with old template and privacy policy modal
Do know why it is so little ? It is due to the template ?