sslv
Forum Replies Created
-
Hi i was away for holidays. Thank you all for your comments.
Couple of things I have tried.
- I created a new Registration Form using Forminator
- I renamed the form to Skills and Achievements
- I deleted all default fields (except email, i cannot remove that)
- I created custom input fields (see screenshot1 below)
- I displayed form in a page
So my questions are:
1. How to remove email? I don’t want this form to register users, I simply want to allow my users to upload additional info about their profile, as well as be able to modify those data at any time.
2. How to prevent form from submitting a new user? I don’t want any emails, passwords, usernames, or user roles in this form. I simply want some custom user inputs like text and number fields
3. Even if I fullfil the email and the additional info in the form as shown in the screenshot below, after submission the data will dissapear. How to fetch data to the corresponding account?
https://paste.pics/d3a3a9385c5ce2385d7368a036017ccc
Is it possible to achieve the above?
@wpmudevsupport12 you mentioned something about:
Note: The Forminator won’t work for use editing ( it would require custom codes )
Is there any documentation for that?
- This reply was modified 4 years, 7 months ago by sslv.
I have also noticed that for existing Administrators it will still consider them as Barbers and display the tabs for barbers.
But when I created a new administrator it shows the preferred tabs as shown in the screenshots below:
Is it possible to fix without deleting and re-creating old admin?
Thanks for your time,
SSLVHi Patrik,
Just one question. I have noticed that the selection of which form to display disappears when in Register page. But works fine with light-box. So my question is how to display Option to select which user role (=which form) to display in Register Page. See screenshot: screenshot 1
Or is there a way to completely get rid of the Registration Page and only have the lightboxes to work with?
Thanks,
SSLV- This reply was modified 4 years, 7 months ago by sslv.
Hi Patrik,
Thanks for your reply. I will try that now and let you know if I face any difficulties.
Thanks,
SSLVMy bad, I used a different email. Sorry for the trouble.
Regards,
SSLVHi Patrik,
It’s been a week since I opened a ticket on userswp.io/support but still didn’t get any reply?
Any solutions?
Regards,
LoizosHi Nithin,
Thanks for your reply.
I created a form using the fields I wish to connect with my Users. However as shown in your screenshot, I cannot find the Custom User Meta Settings in my form. From what I have found online the Custom User Meta settings are under User Registration which is missing from the nav-menu of my custom form. Do I have to purchase Forminator Pro for that?
https://paste.pics/997909eecfeb9901687a9ace6f49f933
FYI, the form I created is from BLANK template (Not user Registration).
Please let me know where I can find the Custom User Meta Settings.
Here is the code I use to display shops of each current profile as a TAB, but doesn’t work properly:
/* ADD NEW PROFILE TABS IN PROFILE */ if ( is_user_logged_in() ) { //Get currently logged in user: global $current_user; get_currentuserinfo(); //For each ROLE: switch (true) { //IF BARBER: case ( user_can( $current_user, "barber") ): add_shortcode('list_shops_in_current_profile', 'display_shops_in_current_profile', 10, 1); break; //IF BARBER SHOP: case ( user_can( $current_user, "barber_shop") ): add_shortcode('list_shops_in_current_profile', 'display_shops_in_current_profile', 10, 1); break; //IF ADMINISTRATOR: case ( user_can( $current_user, "administrator") ): add_shortcode('list_shops_in_current_profile', 'display_shops_in_current_profile', 10, 1); break; } } function display_shops_in_current_profile(){ //Get user id of displayed profile: $user = uwp_get_displayed_user(); $role = $user->roles[0]; $id = $user->ID; //Query to return shops using user's id: $post_query = new WP_Query(array( 'author' => $id, 'post_type' => 'gd_place' )); //If results not null: if($post_query->have_posts() ) { $numOfShops = $post_query->found_posts; ?> <!-- CREATE CONTAINER TO HOLD SHOPS --> <br> <br> <div class="container"> <div class="row"> <?php //FOR EACH POST CREATE A CARD: while($post_query->have_posts()) { $post_query->the_post();//GET POST OBJECT $i = $post_query->current_post;//GET LOOP INDEX $BS_location_id = get_the_id();//GET POST ID $view_BS_loction_URL = get_the_permalink();//URL FOR VIEW LOCATION ?> <div class="col-lg-4 d-flex align-items-stretch mb-4"> <div class="card"> <img style ="width: auto; height: 200px; object-fit: cover;" src=" <?php if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumbnail_name'); echo $thumb[0]; // thumbnail url } ?> " class="card-img-top" alt=""> <div class="card-body"> <h5 class="card-title"><?php the_title(); ?></h5> <?php echo do_shortcode("[gd_single_taxonomies taxonomy='' prefix='' link_style='' link_color='' link_color_custom='' link_icon='false' mt='' mr='' mb='2' ml='' pt='' pr='' pb='' pl='' ] ");?> </div> <div class="card-footer d-grid gap-2"> <a class="btn btn-primary w-100" href="<?php echo $view_BS_loction_URL?>" role="button" style="margin-top:6px;"><i class="fas fa-eye"></i> View Shop</a> </div> </div> </div> <?php //Create new row after 3rd element if(($i+1) % 3 == 0){ ?> </div> <!-- End of first initial row --> <div class="row"> <?php } } //end of while loop ?> </div> <!-- End of final Row --> </div> <!-- End of Container --> <?php }//end of if statement (post_query) else{ //if user doesn't have shops ?> <h1 style="color:white;">This user doesn't not have a shop yet</h1> <?php } }Hello Kris,
Thanks for your reply. In edit mode you are correct. User should be able to edit existing data only associated with that account.
In View Profile I would probably use short-codes to extract data from the database. My only concern is to get the data of the corresponding user. For example, when i use the following short-code:
[uwp_user_meta key="mobile" show="value"]this will return the value of the meta mobile and I can use it as I want with Elementor.Thanks for your time,
SSLVWorked great 😀 Thanks
Hi Stiofan,
Thanks for your reply. Indeed when an owner has created a review is marked as “Post Author”. However, can I change the name (special tag) to be “Shop Owner”?
Regarding the second scenario, I have found a setting in Places > Settings > General which allows me to manage that as shown in the screenshot below:
https://paste.pics/7752078f0fe59b9b8117644ea0a4b2d4
Thanks for your time,
SSLVThanks,
This works great.
Regards,
SSLVThanks Patrik,
Looking forward to it.
Regards,
SSLVHi nidabror,
This article (https://help.codesnippets.pro/article/12-safe-mode) which was suggested by @bungeshea helped me solve the issue, have you tried that?
Thanks,
SSLVHi Stiofan,
Thanks for your reply. This works great! The alert message has changed. However, is it possible to prevent redirecting to new page?
Thanks,
Loizos