sslv
Forum Replies Created
-
Thanks Stiofan,
The following code worked for me:
add_filter('geodir_add_listing_details_header', '_my_add_listing_form_title', 10, 4); function _my_add_listing_form_title($tabs){ $title = "Business Information"; return $title; }also what is the PHP filter for the GD Category? Is there any documentation that provides the list of ALL PHP filters?
What I want to achieve is add a default category but disable the field so that users should not be able to edit it! I want all listing to be of category barber-shop. I will eventually have other categories but if users want to have multiple categories it should be done only through customer service!
- This reply was modified 4 years, 9 months ago by sslv.
Will do later today.
Thanks for your time Patrik.
Regards,
LoizosNo the main Roles are:
Admin
Barber
Barber ShopBut I will have a look on CPT in GD thanks for your help @stiofansisland
Hi Patrik,
Thanks for your reply.
Regarding the search engine, here is the default Users page as shown in the following screenshot. As you can see the search engine appears and is fully functional. (I would create another ticket regarding how to create another custom search engine to search by country).
https://paste.pics/f8d009237295c1169c92d80b29629c15The following screenshot shows the list of users only with user-role = barber
As you can see the search engine disappears.
https://paste.pics/8a2880652cef2f8ae4373e6d107ea7beSame for the Barber Shops Users List. (same error in front-end console.)
To create my custom users page and assign the user-roles accordingly I have used the UsersWP > Users Block as shown in the following screenshot:
https://paste.pics/b6ee074a450fe5027222477daafe5013As you can see when I’m in edit mode the Search engine looks to be displayed. But not on front end where it dissapears. I did the same for the Barber page, the only difference is that I have selected a different user-role to be displayed. As for the UsersALL page, it is the default Users page that the UsersWP provides.
Forum: Fixing WordPress
In reply to: How to manage Display Names according to user roleHi @bcworkz
Thanks for your reply, I’m currently using the UsersWP plugin, What I want is to change the display name of the users in the following pages:
- Their Profile
- The List of All Users
Thanks for your time!
Hi Stiofan,
Thanks for your reply. Please let me paraphrase what I have said in my initial ticket since is a little bit confusing.
- I want to have two kinds of roles (Barber and Barber shops)
- If an owner of a shop needs to be registered as a barber as well they would need to create a separate account.
- There is no relation with barbers and barber shops
- A barber should only share their Country
- A barber shop should share exact location of their shop
- Each barber shop must only create one location for their shop. Not more than one per account, also they shouldn’t be able to create locations for others.
- ALL users should be able to create as many EVENTS as they like
- Events should be displayed in the profile of the user that created the event. (e.g. User1234 create 4 events. Those 4 events should be displayed in User1234’s profile/events)
Hi Paolo,
Based on the above issue, I have identified few thing that need improvement.
- When using default WP editor:
- When using Elementor:
- Search Engine Disapears
It does not show the option to choose which roles have access to that specific list (but works great with WP default editor). See screenshot of how it’s showed in Elementor:
https://paste.pics/ac7d7953f4a7d65a01cc958dabcdc4b1It does not save the configuration options. No matter if I click apply or Update, it doesn’t save it and will list all users instead! See screenshot above
Also when using UsersWP > Users the search engine dissapears:
https://paste.pics/4d9af8abf261d4eafc45d9b7ba887e23- This reply was modified 4 years, 9 months ago by sslv.
For future developers having this issue I have found the following plugin:
Content Control β User Access Restriction Plugin by Code Atlantic
It allows you to create as many restrictions as you want. Lightweight and easy to setup and use. No conflict with UsersWP plugin. Works great!
Minor improvements of Content Control could be to use a combination of redirecting and custom message! For now it only allows you to do one option at a time.
Forum: Fixing WordPress
In reply to: Which plugin allows you to create access control and alerts?Hi @a2hostingrj
Thanks for your reply.
I already have my registration system up and running using UsersWP. Do you know if the Buddypress-Members-Only plugin will work only by using the first plugin you have given (Buddypress) or with every other plugin?
- This reply was modified 4 years, 9 months ago by sslv.
Okay thanks Patrik π
I can’t thank you enough. This works perfect. I managed to use multiple values from account to my custom profile tab using multiple shortcodes.
Example:
In Tab Contents of my custom profile tab:
[uwp_user_meta key="uwp_country"][uwp_user_meta key="bio"][INSERT_ELEMENTOR id="422"]Result screen shot:
https://paste.pics/d03274da401822c581bbc6176cb245c2- This reply was modified 4 years, 9 months ago by sslv.
Hi,
This is totally understandable but that a problem for the future not the one I have right now (maps-related).
My main objective is to provide fields from UsersWP > Form Builder > Account to custom shortcode.
Is that possible or do I have to code it manually?
Sure, for starters I created my shortcode which looks like this:
https://paste.pics/859aeab258c76e1feada22071de82ec2After that I used the shortcode to create custom profile tab:
https://paste.pics/ad725fc0a34b91e7bc2ff69e47e2e098Then I checked if it works in the profile page:
https://paste.pics/eb43b389a55a7f0b841ce68d7298d6cbAnd finally tried to add some fields from my UsersWP > Form Builder > Account in that custom profile tab (similar with how the More Info works, but my custom shortcode is not provided):
https://paste.pics/57f46d2d7fca2ff95c025af7ddf58560Let me know if that makes sense! What I basically want to do is to provide some contact information and eventually use a plugin to pin-point the location on the map dynamically as well as other functionality using the user’s data
- This reply was modified 4 years, 9 months ago by sslv.
Hi Patrik,
I managed to create my own short-code and it appears on the profile tabs.
This works as expected, it shows the content of the short-code an it’s completely intractable.- However, in the UsersWP > Form Buikder > Account:
I want to choose some fields to be displayed in that specific Tab. Unfortunately, in the “Show in which location?” section I cannot find my own custom short-code.
FYI, I haven’t used any php code to create my short-code. I did using the Anywhere Elementor plugin. Is this what causing the problem?
Please let me know how to proceed! Many thanks.
Dear Paolo and Patrik.
Thank you both for your solutions, both work great. Exactly what I was looking for!
Thanks,
SSLV