Support

Admin Tools

#36592 User agents to block - tags instead of lists

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 11 February 2022 03:37 CST

ravpl

In a previous version of Admin Tolls, I had "User agents to block" as a list, now I have a new format like tags (bubbles).

Problem:

1. Admin Tolls had its own list of agents.

When I add new names, they "vanish" after saving because of sorting from a to z.

In the old one, I have them at the bottom of the list.

I have over a dozen pages under my care. It was easy to see what I had recently added (which bot is last added).

 

2. I don't know how to copy a list from one Joomla to another Joomla?

I always added bots to one Joomla, then pasted the same to a dozen others.

Should I do this through the database now?

It will be a lot more work. I will have to write a special script myself.

 

Resolution:

Export/import of "User agents to block" or separate field for own "User agents to block" (easy to copy) and automatic delete whet Akeeba add it to the main list from its update.

nicholas
Akeeba Staff
Manager

Please note that we are using a core Joomla form element, the list element which allows you to manage multiple elements. We have NOT invented our own. The whole point of Admin Tools 7 was to use core Joomla everywhere.

You CAN add new elements to the list. Type a new user agent to block and press ENTER. It is added to the list. You can then save just fine.

We do NOT replace that list on update, ever. If you have data populated for that field your data is used. If you do, however, use the Quick Setup Wizard then yes they will be reset to the defaults — that's why there's a big warning when you run the Quick Setup Wizard about your settings being overwritten when you try to run the Quick Setup Wizard after you've already configured Admin Tools.

Also correct, when you are reloading the page the entire list is alpha-sorted. This is how Joomla does it, it's not under our control.

You are right that you cannot copy / paste list items between sites. Again, this is how Joomla chose to implement this feature and we are simply using Joomla's built-in form control.

You cannot directly edit the database very easily. The entire configuration is stored in a single key inside the #__admintools_storage table. The .htaccess Maker configuration stored as a base64-encoded JSON document in there. If you mess it up you'll lose all your Admin Tools settings.

Exporting and importing the entire .htaccess Maker configuration is inadvisable because it contains server-specific information, including the site's domain name. That's why we have not implemented this feature.

Bear in mind that the past ten years we were getting a lot of flak for not using Joomla's built-in controls. We were always saying that the reason we are not doing that is because we don't think Joomla's form controls are up to the task. Last March we had a core maintainer call for our software to be banned on his Twitter because of us not using core Joomla. So of course we immediately worked on using core Joomla everywhere in our Joomla 4 software, even if it means it becomes harder to use. What I don't know is WHY these people only ever took exception with OUR software when there are literal hundreds of extensions not using core Joomla for their interface elements like every page builder, many high profile SEF/SEO components, all of the editor plugins, most comment systems and so on and so forth. Is it unfair we are being singled out? Yes. Is it infuriating that we have to use a subpar user experience over a threat that we will not be allowed to make a living anymore? YES! But it is what it is and in the end of the day our clients having software that's harder to use because we're using core Joomla is better than having no software to use because we'd be out of business.

The only thing I can plausibly think of doing is allowing you to import and export this list in particular. At the very least nobody can claim that exporting to JSON and importing from JSON is somehow “not core Joomla” without letting us sue them to oblivion...

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ravpl

I am asking only for the option to import/export only this list (User agents to block) and not all settings.

From my point of view, it is good as there is consistency in the interface between Joomla and add-ons.
It's a bad thing that this does not apply to all, but only to the chosen ones.

nicholas
Akeeba Staff
Manager

> I am asking only for the option to import/export only this list (User agents to block) and not all settings.

Yup, I understood you :)

It is definitely possible and should be easy — I am already working on it.

> It's a bad thing that this does not apply to all, but only to the chosen ones.

That's a polite way of saying it :D

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager

I'm happy to say that this feature was easy to implement and will be included in the next version of Admin Tools.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ravpl

Thank you very much, I will repay you by encouraging another customer to buy the product :)

nicholas
Akeeba Staff
Manager

Thank you :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ravpl

Where can I find this option?
I have Admin Tools Professional 7.1.1
I look at .htaccess Maker and can't see.

ravpl

Ok, I found it!

Admin Tools for Joomla! -> Tools -> Export settings -> User Agents to Block (Yes)

 

Last question:

Can I export/import only "User Agents to Block"?

It won't overwrite the other variables then?

nicholas
Akeeba Staff
Manager

> Can I export/import only "User Agents to Block"?

Export options can be selected individually or combined any way you want. Just don't try to deselect everything, you just get an empty file :D

So, yes, you can export just the User Agents to Block by having it set to Yes and everything else set to No.

> It won't overwrite the other variables then? 

Correct! It will only overwrite the user agents.

Please remember that after import you still need to regenerate the .htaccess file. Just click Back and you will get a message that the .htaccess file is out of date and given a button to regenerate it.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ravpl

Thank You!

nicholas
Akeeba Staff
Manager

You're welcome! Thank you for providing a clear use case. It's easier for us to make new features when we have a good idea how they are intended to be used :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!