Patrik
Forum Replies Created
-
AuthorPosts
-
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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,
PatrikThis reply has been marked as private.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,
PatrikHi,
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,
PatrikHi,
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,
PatrikHi,
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 -
AuthorPosts