Problem with old template and privacy policy modal

Everything to do with Joomla! 3.x templates and templating.

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.
Post Reply
rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Problem with old template and privacy policy modal

Post by rasega » Thu Aug 24, 2023 7:20 am

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

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9747
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Problem with old template and privacy policy modal

Post by AMurray » Thu Aug 24, 2023 9:18 am

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.
Regards - A Murray
General Support Moderator

rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Re: Problem with old template and privacy policy modal

Post by rasega » Thu Aug 24, 2023 9:51 am

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

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1638
Joined: Tue Jun 30, 2020 12:17 pm

Re: Problem with old template and privacy policy modal

Post by Pavel-ww » Thu Aug 24, 2023 10:34 am

rasega wrote:
Thu Aug 24, 2023 9:51 am
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
Hi. Without link to the site it is not possible to help you

rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Re: Problem with old template and privacy policy modal

Post by rasega » Thu Aug 24, 2023 12:33 pm

Pavel-ww wrote:
Thu Aug 24, 2023 10:34 am
Hi. Without link to the site it is not possible to help you
This is the site page:
https://www.mariofernando.com/index.php ... 42&lang=it

Thank you

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2910
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Problem with old template and privacy policy modal

Post by SharkyKZ » Thu Aug 24, 2023 1:00 pm

`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.

rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Re: Problem with old template and privacy policy modal

Post by rasega » Thu Aug 24, 2023 1:20 pm

SharkyKZ wrote:
Thu Aug 24, 2023 1:00 pm
`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.
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();
but the result is not fine, because it appears the "privacy policy" text, but it is already dark and not "closeable"

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2910
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Problem with old template and privacy policy modal

Post by SharkyKZ » Thu Aug 24, 2023 2:56 pm

You need to remove just `hide` class, not all classes.

Code: Select all

jQuery(".hide").removeClass("hide");
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

$modalClasses = array('modal', 'hide');

rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Re: Problem with old template and privacy policy modal

Post by rasega » Thu Aug 24, 2023 3:15 pm

SharkyKZ wrote:
Thu Aug 24, 2023 2:56 pm
If using the override method, you would just need to remove the class from this line:

Code: Select all

$modalClasses = array('modal', 'hide');
I've created the override for main.php and it works, but it opens the modal without close button

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1638
Joined: Tue Jun 30, 2020 12:17 pm

Re: Problem with old template and privacy policy modal

Post by Pavel-ww » Thu Aug 24, 2023 4:48 pm

rasega wrote:
Thu Aug 24, 2023 3:15 pm
I've created the override for main.php and it works, but it opens the modal without close button
It is there but too little
1.jpg
You do not have the required permissions to view the files attached to this post.

rasega
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Fri Apr 03, 2009 1:43 pm

Re: Problem with old template and privacy policy modal

Post by rasega » Fri Aug 25, 2023 10:20 am

Do know why it is so little ? It is due to the template ?


Post Reply

Return to “Templates for Joomla! 3.x”