ReReplacer

HTML Tags unable to change

9 months 3 weeks ago #77553

Steve Burge's Avatar Steve Burge

Hello,

We are working on a client's site and he wanted to change all h2 tags to h3 on ReReplacer., we tried to do that but is not changing at all. Not sure if we did something wrong or the component is not letting it work. We made sure it only affected HTML tags but still nothing and other replacements work with no trouble.

9 months 3 weeks ago #77554

Peter van Westen's Avatar Peter van Westen Admin

What extension are you taking about? You placed this in the general 'bug report' topic.
ReReplacer or DB Replacer?

9 months 3 weeks ago #77576

Steve Burge's Avatar Steve Burge

Sorry, forgot there is DB Replacer. We are trying to use ReReplacer and is the latest release.Peter van Westen wrote:

What extension are you taking about? You placed this in the general 'bug report' topic.
ReReplacer or DB Replacer?

9 months 2 weeks ago #77588

Peter van Westen's Avatar Peter van Westen Admin

Make sure the "Enable in HTML tags" option is set to 'Yes', not to 'Only'.
What exactly are you searching for and what do you have in the replacement field?
Do you have this online so I can take a look?

9 months 2 weeks ago #77616

Steve Burge's Avatar Steve Burge

We do have it as Yes, we tried several codes that we found on the forum as <h2>, [h2], etc. Currently is only h2. We have the staging site where this is being tested.

9 months 2 weeks ago #77617

Peter van Westen's Avatar Peter van Westen Admin

You will need to replace both the opening and ending tags.
I recommend using the list option and search for:

<h2,</h2>
Replace with:
<h3,</h3>
If it doesn't work, can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

9 months 2 weeks ago #77687

Steve Burge's Avatar Steve Burge

Hi Peter,

We did try that first and didn't work. We have a staging site where the changes are being made. I'll include all the information for the staging site and FTP(is to the live site but the staging folder should be there)

Confidential information:
(hidden)

9 months 2 weeks ago #77688

Peter van Westen's Avatar Peter van Westen Admin

Is the ftp access for this setup?
Not any changes I make to files is reflected on the site. Even in the template index.php...

9 months 2 weeks ago #77690

Steve Burge's Avatar Steve Burge

Hi Peter,

Yes, I just made sure of it. Could you try once more?

Regards,

9 months 2 weeks ago #77691

Peter van Westen's Avatar Peter van Westen Admin

It looks like ReReplacer is not installed correctly.
Files are not being updated. Looks like an issue with file/folder permissions.

I recommend you delete these folders and re-install ReReplacer.

/administrator/components/com_rereplacer
/plugins/system/rereplacer

9 months 2 weeks ago #77694

Steve Burge's Avatar Steve Burge

Hi Peter,

Thank you, now seems to be working properly.

Regards,

9 months 2 weeks ago #77696

Peter van Westen's Avatar Peter van Westen Admin

Ok, great :)

9 months 2 weeks ago #77701

Steve Burge's Avatar Steve Burge

Hi Peter,

One more issue, our client wants to exclude all K2 content from changing H2 to H3. For some reason this change at Publishing Assignments causes Joomla content to change as well, I've tried several times and if K2 headers change then Joomla content does as well.

Regards,

9 months 2 weeks ago #77703

Peter van Westen's Avatar Peter van Westen Admin

The component assignments only work on the component used for the page.
So not for mixed content pages.

9 months 1 week ago #77726

Steve Burge's Avatar Steve Burge

Hi Peter,

In this case, this won't be possible? drive.google.com/file/d/1mr9109kyBm9IkZEiDgenjgRQbu5ipcdB/view The content on the middle are K2 items and to the right those are Joomla modules.

Regards,

9 months 1 week ago #77727

Peter van Westen's Avatar Peter van Westen Admin

I mean, the component assignment does not separate between the component area and the modules. It just determines whether the replacement should or should not be executed on the page.
The 'Search Area' setting determines on what area it needs to be run.
But it isn't possible to set it up to only replace in the modules and not in the component area.

So no, what you want is not possible with a simple replacement like this.

9 months 1 week ago #77729

Steve Burge's Avatar Steve Burge

Hi Peter,

Thank you, I only needed confirmation for our client.

Regards,