Patrik

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 1,063 total)
  • Author
    Posts
  • in reply to: Show user registration date #8060

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Go to UsersWP->General->Author box->Author box Content (bootstrap) and put [#user_registered#] in the content where you need and then try adding following code in functions.php file of your currently active theme or via Code Snippets plugin and let me know if it works or not:

    add_filter('uwp_author_box_output', 'uwp_author_box_output_cb', 10, 1);
    function uwp_author_box_output_cb($output){
    	global $post;
    
    	if(!$post){
            return $output;
        }
        
    	$author_id = $post->post_author;
    	$user = get_user_by('id', $author_id);
    	$key = '[#user_registered#]';
    	$value = date("M Y", strtotime($user->user_registered));
    	$output = str_replace( $key, $value, $output );
        return $output;
    }

    This is the way to create and use your own custom tag for the author box. You will find more tags you can use in your author box content.

    Regards,
    Patrik

    in reply to: 2 times the same username #8016

    Patrik
    Moderator
    Post count: 1971

    Hi,

    This should generally not happen as we are also using the default WordPress function to register a new user. I don’t see anything wrong with your site but if you found this happens again then let us know and if possible keep the plugin to track the users so that we can get the idea.

    Regards,
    Patrik

    in reply to: I don't found the option to hide empty tabs #8015

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Yes, there should be no output like blank div or any other tag. Also, you should not modify this file as this file is responsible for outputting the tab links and contents of the respective tabs. You will need to modify those template files which display the actual content like for example “loop-posts.php” which is responsible for outputting posts and comments in tabs. You can modify this file so that it doesn’t output any single word of content not even HTML tags.

    Regards,
    Patrik

    in reply to: Some strings not translated and avatar problem #8012

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We are displaying this message dynamically. Are you saying that it should display singular name like “Listing”, “Comment”, “Article” instead of “Listings”, “Comments”, “Articles”?

    Regards,
    Patrik

    in reply to: I don't found the option to hide empty tabs #8011

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have changed multiple things after that. We have added a tab builder to add/remove tabs in the profile. By default, tabs will be hidden if there is no content in the tab. You can override the templates if it is displaying a message like “No listings found”. You can remove this message from the template you have override and it will display no content for tab and due to no content in the tab, the tab will be not displayed.

    Regards,
    Patrik

    in reply to: Translating Field Labels and Form Labels #8009

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Thanks for giving your valuable reviews. Can you please give a screenshot so that we can get more ideas on where the issue is?

    Regards,
    Patrik

    in reply to: Redirect URL incorrectly includes /wordpress #8006

    Patrik
    Moderator
    Post count: 1971

    Hi,

    In the general case, the site URL and home URL should be the same but on some of the hosting, the WordPress files are located at a different location then it can be different. But for redirect URL we use site_url() and that’s why you are facing this issue. You can talk with your hosting and make both the URLs same. We will do the changes in our code for using home_url() instead of site_url() and release an update in a few days.

    Regards,
    Patrik

    in reply to: Registration form fields not working #7994

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Registered users are created normally like users in WordPress and if you are talking about custom fields for users are stored in the ‘uwp_usermeta’ table.

    Regards,
    Patrik

    in reply to: Change email address in account – Error #7981

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have fixed this issue and will be available in the next plugin update release. If you want to apply the changes on your site then let me know the FTP details in a private reply.

    Regards,
    Patrik

    in reply to: Registration form fields not working #7980

    Patrik
    Moderator
    Post count: 1971

    Hi,

    While adding a custom field in the accounts tab, you will need to tick the checkbox “Include this field in register form:” (Which will display when you click on Show Advanced button) for all the fields which you want to use on the registration form as well. Then you will see those fields on the available fields list on registration tab.

    Regards,
    Patrik

    in reply to: 2 times the same username #7979

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    in reply to: profile picture and the banner picture #7957

    Patrik
    Moderator
    Post count: 1971

    Ok, If you want to know the functions to get banner image and profile image then following are the functions you can try:

    $banner = uwp_get_usermeta( $user_id, 'banner_thumb', '' );
    $avatar = uwp_get_usermeta( $user_id, 'avatar_thumb', '' );

    This will give you the thumb path and you will need to add the upload directory URL before the path and then you can display the image in tag.

    Regards,
    Patrik

    in reply to: profile picture and the banner picture #7948

    Patrik
    Moderator
    Post count: 1971

    Hi,

    I see you are using the author box which will display the author profile image and author name. In profile header, If you want to remove the ability to change the banner image and profile image then you can hide the change icon using CSS easily. You can hide anything displaying via profile header using CSS. Also, you can change the things by overriding the template for profile header. If it doesn’t help then I can help you.

    Regards,
    Patrik

    in reply to: profile picture and the banner picture #7946

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The map container needs width: 100%; As it has currently “h-col-lg-auto” class which gives width: auto; Also, I can’t find where is the profile header shortcode output so that I can fix it. If you can provide link to the issue then it will be easy for me to look into it.

    Regards,
    Patrik

    in reply to: Login before viewing Users List #7943

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You can try the following code by putting into functions.php file or currently active theme or via code snippets plugin:

    
    
    add_action('template_redirect', 'template_redirect_cb');
    function template_redirect_cb(){
        if(!is_user_logged_in() && is_uwp_users_page()){
            wp_redirect(site_url());
        }
    }

    Let me know if it helps or not!

    Regards,
    Patrik

Viewing 15 posts - 31 through 45 (of 1,063 total)