Patrik

Forum Replies Created

Viewing 13 posts - 1,051 through 1,063 (of 1,063 total)
  • Author
    Posts
  • in reply to: How to Set Default Login Redirect to Current User Location? #1561

    Patrik
    Moderator
    Post count: 1971

    Hi Abhijeet,

    We have applied a fix for social media add on which will redirect to last user page instead of home page all the time. It will be released in next version.

    Also, Regarding page with [uwp_login] shortcode, we have added “uwp_page” class in body for all UWP pages. So if you want to use the same shortcode on other pages can add the class in the body by putting following code in your style.css of the current theme.

    
    
    add_filter( 'body_class', 'uwp_add_body_class_for_shortode', 10, 1 );
    function uwp_add_body_class_for_shortode( $classes ) {
    
        global $post;
    
        if ( isset($post->post_content) && has_shortcode( $post->post_content, 'uwp_login' )) {
            $classes[] = 'uwp_page';
        }
    
        return $classes;
    }

    You can modify this function for other shortcodes also if you want to use them on non UWP pages. Let me know if this works for you.

    Regards,
    Patrik

    in reply to: Users page display only subscriber users #1555

    Patrik
    Moderator
    Post count: 1971

    Hi Derek,

    Good to know your issue is fixed.

    You can set posts_per_page of the user’s page by changing the value from UsersWP->General->Number of Items.

    Let me know if any questions.

    Regards,
    Patrik

    in reply to: Users page display only subscriber users #1552

    Patrik
    Moderator
    Post count: 1971

    Hi Derek,

    You can look into PR at git issue: https://github.com/UsersWP/userswp/issues/155. Let me know if it resolves your requirements.

    You can find [uwp_users] shortcode output in template /userswp/templates/users.php file.

    Let me know if you need more information on this.

    Regards,
    Patrik

    in reply to: A few questions / comments about UsersWP #1551

    Patrik
    Moderator
    Post count: 1971

    Hi Stephan,

    Please find following comments:

    – Can I limit the max. upload file size in formbuilder (or in general)?
    There is no any option for file upload inputs in form builder. The limit will be set to upload_max_size in php.ini file. But you can overwrite it in config.php or theme’s functions.php file. Let me know if you want to know how to do it?

    – Can I prevent a user from hiding himself from the user directory?
    Currently, you/admin can’t prevent that. In the future release, we may add a filter so that you can prevent the user from hiding himself from the directory via privacy settings or we can give the same field in user profile options on admin side which can be modified by admin as well as the user himself.

    – It would be nice to go back to the profile page after successful changes instead of staying on the account side.
    For now, we are displaying success message on form submission. In the future release, we can provide the filter or option in the settings page for redirect/display message after form submission.

    – Comments / Posts on profil side.
    Posts are counted correctly and displayed but comments are counted but “no found” is displayed. Do you have a hint?
    It also shows: “No Beiträge/Kommentare founds” (Posts and comments is translated but “no” and “found” isn’t. In the po-file I only found “No” and “no comments found”

    It may be possible that comments are not approved by admin so it is displaying no comments found message but it is counted.

    – The meaning of “is public”
    If “is public” set to yes then field will be displaying to all other users and if selected “No” then it will be hidden from other users. Also, is public will be set to “yes” by default if selected “let user decide” from the form builder. Right now “not public” will hide field from profile and listing page for all users including current user. We don’t have any option for hiding/showing for registered/logged in users only.

    Let me know if you have more questions.

    Regards,
    Patrik

    in reply to: GD Multilocations menu on Account Page #1512

    Patrik
    Moderator
    Post count: 1971

    Hi Foster,

    Please provide the FTP details in private reply so that we can look more into this issue. It seems our chosen.jquery.min.js jquery conflicts with other plugin or the theme so it is not including in the account page.

    Also, have a look at this post if it can help you: https://wpgeodirectory.com/support/topic/styling-3/page/2/#post-406067

    Regards,
    Patrik

    in reply to: RE: hide-listing-tab-if-no-listings-owned #1481

    Patrik
    Moderator
    Post count: 1971

    Hi Derek,

    I would request you to wait for the next release of the plugin as it will contain the library folder and you can then use the above codes for hiding listings if no listings. The next release will be very soon!

    Regards,
    Patrik

    in reply to: RE: hide-listing-tab-if-no-listings-owned #1472

    Patrik
    Moderator
    Post count: 1971

    Hi Derek,

    The code I have provided will hide the main listing tabs if no any listings found. For subtabs, we need to make a change in core file to allow access to $type parameter in the filter. If you would like to make a change in core then you can put following code in functions.php file:

    
    
    add_filter('uwp_profile_gd_tabs', 'uwp_remove_profile_gd_subtabs', 99, 3);
    function uwp_remove_profile_gd_subtabs($tabs, $user, $type){
        $gd_post_types = geodir_get_posttypes('array');
    
        if (empty($gd_post_types)) {
            return $tabs;
        }
    
        // allowed post types
        if ($type == 'listings') {
            $listing_post_types = uwp_get_option('gd_profile_listings', array());
        } elseif ($type == 'reviews') {
            $listing_post_types = uwp_get_option('gd_profile_reviews', array());
        } elseif ($type == 'favorites') {
            $listing_post_types = uwp_get_option('gd_profile_favorites', array());
        } else {
            $listing_post_types = array();
        }
    
        if (!is_array($listing_post_types)) {
            $listing_post_types = array();
        }
    
        foreach ($listing_post_types as $post_type) {
            if (array_key_exists($post_type, $gd_post_types)) {
                $post_type_slug = $gd_post_types[$post_type]['has_archive'];
    
                if ($type == 'listings') {
                    $count = uwp_post_count($user->ID, $post_type);
                } elseif ($type == 'reviews') {
                    $count = $this->geodir_get_reviews_by_user_id($post_type, $user->ID, true);
                } elseif ($type == 'favorites') {
                    $count = $this->geodir_count_favorite($post_type, $user->ID);
                } else {
                    $count = 0;
                }
    
                if (empty($count)) {
                    unset($tabs[$post_type_slug]);
                }
            }
        }
    
        return $tabs;
    }

    Also, Make following change in core file of plugin located at userswp/includes/libraries/class-geodirectory-plugin.php at line no. 565

    return apply_filters('uwp_profile_gd_tabs', $tabs, $user, $type);

    The class UsersWP_GeoDirectory_Plugin is defined in class-geodirectory-plugin.php located in plugin userswp/includes/libraries/ folder and it’s a part of core plugin.

    If possible please provide us the FTP details in private reply so that I can look more into that and do this for you.

    Regards,
    Patrik

    in reply to: RE: hide-listing-tab-if-no-listings-owned #1468

    Patrik
    Moderator
    Post count: 1971

    Hi Derek,

    Please put following code in functions.php file of your currently active theme and let me know if it works for you.

    
    
    add_filter('uwp_profile_tabs', 'uwp_remove_profile_gd_tabs', 99, 2);
    function uwp_remove_profile_gd_tabs($tabs, $user){
        $uwp_gd = UsersWP_GeoDirectory_Plugin::get_instance();
    
        // Hide listing tab if no listings
        $l_count = $uwp_gd->get_total_listings_count($user->ID);
        if($l_count <= 0){
            unset($tabs['listings']);
        }
    
        // Hide reviews tab if no listings
        $r_count = $uwp_gd->get_total_reviews_count($user->ID);
        if($r_count <= 0){
            unset($tabs['reviews']);
        }
    
        // Hide favourites tab if no listings
        $f_count = $uwp_gd->get_total_favorites_count($user->ID);
        if($f_count <= 0){
            unset($tabs['favorites']);
        }
    
        // Hide invoices tab if no listings
        if(class_exists('WPInv_Invoice')){
            $i_count = $uwp_gd->invoice_count($user->ID);
            if($i_count <= 0){
                unset($tabs['invoices']);
            }
        }
    
        return $tabs;
    }

    This code will hide listings, reviews, favorites and invoices tabs if there are no any count. You can modify the code as per your requirements.

    Let me know if any queries.

    Regards,
    Patrik

    in reply to: Login & Registration Forms Not Responsive on Mobile #1409

    Patrik
    Moderator
    Post count: 1971

    The CSS given previously was specific to mobile devices and I have removed the code and made it globle which will not affect the form. I would say keep it as it is for now till you get plugin updates and then remove from admin instead of moving to code.

    Regards,
    Patrik

    in reply to: Login & Registration Forms Not Responsive on Mobile #1407

    Patrik
    Moderator
    Post count: 1971

    I have made the changes in Appearance -> Customize -> Additional CSS box and it is working fine now.

    Please review it and let us know if anything.

    This will be fixed in the future release.

    Regards,
    Patrik

    in reply to: Login & Registration Forms Not Responsive on Mobile #1402

    Patrik
    Moderator
    Post count: 1971

    I don’t see the new CSS on the site in view source or style.css file. Are you sure you have added the CSS in either current theme’s style.css file or in additional CSS section?

    If possible create a temp admin credentials for us and provide here as a private reply so that we can log in and do the changes.

    Thanks!

    in reply to: Login & Registration Forms Not Responsive on Mobile #1391

    Patrik
    Moderator
    Post count: 1971

    Please try adding following CSS code in style.css of your currently active theme or in Appearance -> Customize -> Additional CSS box:

    
    
    @media screen and (max-width: 520px) {
    body.uwp_page .uwp-login, body.uwp_page .uwp-registration, body.uwp_page .uwp-forgot, body.uwp_page .uwp-account {width:auto;}
    }

    Let us know if it fixes an issue.

    Regards,
    Patrik

    in reply to: Account Page – First/Last-Name Layout #1260

    Patrik
    Moderator
    Post count: 1971

    Hi Harald,

    We have applied a fix for this in our plugin and it will be available in next release of the plugin. If you want to make it on your site before release then let us know the FTP details in private reply so that we can make required changes in the plugin’s files on your site.

    Regards,
    Patrik

Viewing 13 posts - 1,051 through 1,063 (of 1,063 total)