Joomla clean curly braces {} from content Topic is solved

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, 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
chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Joomla clean curly braces {} from content

Post by chupi » Tue May 30, 2023 5:47 pm

Hello everyone.

I am using the "JNofollow by SEO NW" plugin to add the rel=nofollow tag to all external links. But in some articles I don't want the rel=nofollow to appear in the links. For this, the plugin has an option that is to add {mnf=off} in the text so that the above occurs.

This has worked fine forever, but since a few days it doesn't work. There have been several updates lately that might be breaking the plugin, but I can't figure out what they might be. I use JCE Editor, JCH Optimize and the template uses "Jollyany" as framework.

Can someone give me a clue where to look to locate the error. Thank you so much.

User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1099
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Joomla clean curly braces {} from content

Post by xfsgpr » Tue May 30, 2023 7:24 pm

Can someone give me a clue where to look to locate the error. Thank you so much.
The only clue I can give you is to ask this question on their support forum. They are the best people to deal with their products.

https://jnofollow.com/support

joomla gets updates regularly (todat there is version 4.3.2) so some plugins might not work as advertised and this includes some templates might work as advertised. Only the makers of those products can help you quickly as they must be prepared for such eventualities.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 16525
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Joomla clean curly braces {} from content

Post by toivo » Wed May 31, 2023 1:20 am

Unable to reproduce the error in Joomla 4.3.2 and PHP 8.0.13, using JCE 2.9.36 and JNofollow 4.0.4. Are you using these versions?

The plugin option 'How should the Plugin work?' is set to 'Relaxed', as recommended, and the option 'What should the Plugin do with external Links?' set to 'Everytime Nofollow on external Links if no Taget is set'.

This plugin was last updated in November 16, 2021, before PHP 8.0.0 was released a week later. If the website is run using PHP 8.1.16, the plugin reports a Deprecated error, but it still works:

Code: Select all

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\www\joomla4test\plugins\content\nofollow\nofollow.php on line 72
In PHP 8.2.3 a new Deprecated message is displayed at the back end but the plugin keeps working as documented:

Code: Select all

Deprecated: Use of "self" in callables is deprecated in C:\www\joomla4test\plugins\content\nofollow\nofollow.php on line 75
Toivo Talikka, Global Moderator

chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Re: Joomla clean curly braces {} from content

Post by chupi » Wed May 31, 2023 8:15 am

Thank you toivo for your answer.

I am using PHP 8.0.28, plg_nofollow_j4x_v404.zip and JCE version 2.9.37, today with the latest version of Joomla 4.3.2

I have contacted the developer and am waiting for his response.

If I follow your advice the plugin removes the nofollow from all links, whether they have the {mnf=off} tag or not, then it is not a valid solution.

Before I had the options in "Stric" and "Everytime Nofollow on all external Links" and it worked perfectly until a few days ago.

I'm going to wait for the developer's response and I'll tell you how the issue has gone. Thank you very much again

chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Re: Joomla clean curly braces {} from content

Post by chupi » Fri Jun 02, 2023 10:13 am

Hello again,

I am writing to inform you that the culprit behind the malfunction of the Nofollow by SEO NW plugin is another plugin that interferes with its work. It is this: https://extensions.joomla.org/extension/inner-content/

I am writing to its developer to try to correct this inconvenience. Thanks for your help

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Joomla clean curly braces {} from content

Post by gws » Fri Jun 02, 2023 11:25 am

I cant see any advantage to that plugin over joomla core.

chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Re: Joomla clean curly braces {} from content

Post by chupi » Fri Jun 02, 2023 4:01 pm

gws, I don't understand what you mean, which of the two plugins?

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Joomla clean curly braces {} from content

Post by gws » Fri Jun 02, 2023 4:30 pm

Inner content.

chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Re: Joomla clean curly braces {} from content

Post by chupi » Fri Jun 02, 2023 5:50 pm

Well, I used Inner content to insert blocks HTML code (for example Google Adsense) between article paragraphs. I think this cannot be done by the Joomla core. Or can it?

gws
Joomla! Champion
Joomla! Champion
Posts: 5445
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Joomla clean curly braces {} from content

Post by gws » Fri Jun 02, 2023 6:31 pm

Yes it can. You can insert nearly anything in an article,modules,scripts,images from within tinymce and perhaps sorcerer a plugin that lets you insert code wherever you want. Sorcerer is not core but it is free. If your skilled you can manage without sorcerer.

chupi
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Thu Apr 25, 2013 10:45 pm

Re: Joomla clean curly braces {} from content

Post by chupi » Sat Jun 03, 2023 11:17 am

I think we are not talking about the same thing. I know you can insert HTML, PHP, CSS and JavaScript code into the content of an article, but what the Inner content plugin does is insert the same code between article paragraphs, in all articles!

With Sourcerer you have to manually insert into each article a tag wrapped in {} that has the predefined code. It doesn't insert that tag in each and every article which is what I want and is what Inner content does but, as I said, it has the flaw of interfering with other plugins. I do not know why. I will write to the developer to see if he can give me a solution.

Anyway thanks for your interest gws.


Post Reply

Return to “Extensions for Joomla! 4.x”