Search
Other Articles Anywhere questions
Forum

Users Anywhere

Pedro Olaia's Avatar Pedro Olaia
Hello,

Since I started to use joomla, 6 years ago, Articles Anywhere became my nº2 extension just after Akeeba Backup. Since then, the implementation of "Custom Fields" in Joomla has greatly improved the flexibility of creating content and with the use of "Articles Anywhere" it allows us to achieve a much higher level of flexibility on displaying and presenting this content with simplicity and a lot of ease.
But now that "users" can also have "Custom Fields", I miss a similar tool to present content from "Custom Fields" and native fields from "Users":
{user id="123"}[field-photo]{/user}; and
{users group="teachers"}[field-photo]{/users}

This would expand Joomla's content presentation capabilities to an even greater level.
Have you ever thought about developing this? Are you doing it already? Could you consider doing so? 🙂

Thank you very much for your attention and exceptional work!
Pedro Olaia
Peter van Westen's Avatar Peter van Westen ADMIN
At the moment I am not considering developing new extensions.
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Thanks Peter, the suggestion is there. I hope you can consider it for a future opportunity or just integrate the ability to fetch data from users in Articles Anywhere.

Cheers!
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
download.regularlabs.com/dev/UsersAnywhere-v0.1.0-dev-PRO.zip

It should work pretty much the same as Articles Anywhere.


Example with single users by id and outputting custom media field.
{user id="123"}[my-profile-image-field width="50"] [name] ([username]){/user}

Example with multiple users by usergroup and outputting profile data:
{users usergroup="Administrator"}- [name] ([address1, [postal-code], [city]]){/users}

There is no editor button (yet).
Let me know if it works as expected...
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Hi Peter,

I got really happy when I saw your message. This is amazing thank you so much! Im so exited to install and try it. Anyway the link is not working.
I've been on the road during this week I return to my studio this Friday night and very eager to try it.

Thank you for your effort Peter, can you check on the link?


Pedro Olaia
Peter van Westen's Avatar Peter van Westen ADMIN
Download link should work now.
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Hi Peter,

I tried it on a project I'm developing on a Joomla 5.1.4 installation

At first glance it works as expected, so far it has everything I was looking for.
But from the "user data", it might be also interesting to be able to show the "Registration Date" and "Last Visit Date".
The fields "Name", "Username", "email" and "id" are working perfectly and the "Custom Fields" too!

Notice:
When I was experimenting with displaying the "Last Visit Date" field, I typed: [last visit], and it returned values ​​of "Yes" and "No".

A suggestion:
It will be perfect if we can get multiple users by user group and output profile data from group ID as well:
a) {users usergroup="Administrator"} [name] {/users}
b) {users id="10"} [name] {/users}

Probably a more challenging wish:
It would be very interesting if it were possible to fetch data from "contacts" and the "contact form" when the user is linked to a "Joomla contacts" item. Or another challenge would be to create "Contacts Anywhere"! Creating a custom directory would require no more than a basic installation of Joomla and Regular Labs extensions.


I rarely use the "editor button", for me it's fine without it. : )

I hope this extension finds a lot of use and that this is the beginning of a successful journey. As soon as you have more news about the development of this extension or whenever you have something to test or experiment, let me know!

Thank you very much Peter!
Pedro Olaia
Peter van Westen's Avatar Peter van Westen ADMIN
New dev version:
regularlabs.com/development-releases

DATES
You can use:
[register-date] / [registerDate]
[lastvisit-date] / [lastvisitDate]
You can also format the dates, like:
[register-date format="Y-m-d"]
[lastvisit-date format="F jS Y"]

And do all the stuff mentioned here:
docs4.regularlabs.com/articlesanywhere/data-tags/dates

USER GROUP IDS
You can now also mix group names and ids, like this:
{users usergroup="2,6,Administrator"}

CONTACTS
And lastly, you can display contact stuff:
[contact:name]
[contact:telephone]
[contact:email_to]
etc...

OTHER STUFF
These are also things that are supported, and haven't been mentioned yet.
- filter by and output accesslevel
- url input values: docs4.regularlabs.com/articlesanywhere/data-tags/input-values
- numbers: docs4.regularlabs.com/articlesanywhere/data-tags/numbers
- pagination: docs4.regularlabs.com/articlesanywhere/plugin-tags/pagination
- if tags: docs4.regularlabs.com/articlesanywhere/g...urther/if-structures

STILL TO DO
- I do want to create an editor button.
- Documentation. For now, you can use the Articles Anywhere documentation for most features and syntax and such.
- Maybe add some more security features to prevent potentially sensitive data from being output.
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Hello Peter,

So to display the Joomla Contact Form linked to the user at "Joomla's contacts" will be [contact:form]? This is genius!

I just check it and couldn't find the new version of "Users Anywhere" on the Development Releases page.
is there an alternative link to the new version?

Thank you!
Peter van Westen's Avatar Peter van Westen ADMIN
Sorry, download via:
download.regularlabs.com/dev/UsersAnywhere-v0.1.0-dev-PRO.zip

Not sure [contact:form] will work yet. But you should be able to access the contact data.
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Peter,

Almost everything from "Contacts" is working out of the box.

This is the list of contact fields working just fine:
[contact:name]
[contact:con_position]
[contact:email_to]
[contact:address]
[contact:suburb]
[contact:state]
[contact:postcode]
[contact:country]
[contact:telephone]
[contact:mobile]
[contact:fax]
[contact:webpage]
[contact:sortname1]
[contact:sortname2]
[contact:sortname3]

The image field display the root link to the image so, it works like this:
<img src="[contact:image]">

And yes the contact form is not working yet, at least not like this::
[contact:form] [contact:email_form]

I hope you can make it work.

"Dates" and "User Group IDs" are working fine!
Thank you!
Peter van Westen's Avatar Peter van Westen ADMIN
The [contact:image] should now output like other images like in Articles Anywhere:
docs4.regularlabs.com/articlesanywhere/data-tags/images

[contact:form] will probably not be implemented.
The Joomla Contacts component makes it pretty impossible to output the form outside of the com_contact component. It is very much coupled to the url. Trying to force-pass other data to it, seems cumbersome and causes issues all over the place.
That is probably also the reason why Joomla doesn't have a core Contact Form module.

If I would want to make it work, I'd have to create a separate email form with the data I pass to it. But that also means that any template overrides on the main contact form won't have any effect on it. So all feels very dirty and way too much work and work-arounds.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
So I managed to implement the [contact:form].
It will only output the email form part for the contact. So not the complete contact page.

Let me know if it actually works as expected (and emails are sent correctly and such).
Please post a rating at the Joomla! Extensions Directory
Pedro Olaia's Avatar Pedro Olaia
Hello, Peter.

Yes the image field is working fine now, like in "Articles Anywhere". 🙂

The contact form is working and sending messages correctly. Only the "Send Copy to Submitter" field does not appear under the form as it does on a native Joomla contact page.

Regarding the contact form, I understood the problems related to the Joomla Contacts component. I don't know if you've found a simple way to get it through without work-arounds. It is necessary to consider possible overrides and also possible updates to the component, which is really needed. It would be very useful if the form had some basic options, such as activating and deactivating form fields and selecting which fields are mandatory. This is easy to do with an override but it's not for everyone. Furthermore, this form does not keep a record of the emails submitted.

I also understand that maintaining an element that has a lot of work-arounds to make it work can become a huge headache, hope will be not the case!

I had already started looking for alternative email forms extensions that integrate with Joomla's custom fields, (for example "Convert Forms" from Tassos Marinos) it would just be a matter of calling this custom field through "Users Anywhere" to display the form in the page, but it seems to me that none of them have automatic integration with users. Maybe this is an idea for a new extension or adaptation of an existing one. Quickly assign a contact form per user with the possibility of personal management for each user.

But it's amazing, using the user's email form through "Users Anywhere", as it is, is already very, very useful.


Thank you so much for your time and effort Peter! 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
Only the "Send Copy to Submitter" field does not appear under the form as it does on a native Joomla contact page.
Fixed.
It is necessary to consider possible overrides and also possible updates to the component
Yes, in the latest dev, the form is rendered via the Joomla core form template file (/components/com_contact/tmpl/contact/default_form.php), and possible template overrides are taken into account (like: /templates/[YOUR TEMPLATE]/com_contact/contact/default_form.php).
Please post a rating at the Joomla! Extensions Directory
Nicolas OLIVIER's Avatar Nicolas OLIVIER
Hi,
I discover this discussion, I have formulate this same wish years ago somewhere in this forum for a User Anywhere ! Glad to see this coming !
Since yesterday, we have a asked for enduser capability to create some nice contact block in article instead of "contact link".
Can we test the current dev version somewhere because previous link doesn't work for us (404).
Thanks
Nicolas OLIVIER's Avatar Nicolas OLIVIER
Thanks I will test that !
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription