pandreas
Forum Replies Created
-
Hello @markzahra and thank you for answering.
Yes, I’m still facing the issue. Would it still be better to open a new thread?
Regards,
Andreas
Forum: Reviews
In reply to: [BuddyPress Docs] Great plugin!!very good
Forum: Plugins
In reply to: [Email Users] filter users with specific profile fieldOk, I did it!
I wrote the following simple code – my custom field is country:
function xprofile_sync_extra_field_wp_profile( $user_id = 0 ) { // Bail if profile syncing is disabled. if ( bp_disable_profile_sync() ) { return true; } if ( empty( $user_id ) ) { $user_id = bp_loggedin_user_id(); } if ( empty( $user_id ) ) { return false; } //Get country info from xprofile $country = xprofile_get_field_data('Country', $user_id); if (!get_user_meta($user_id, 'country')) { add_user_meta($user_id, 'country', $country); } else bp_update_user_meta( $user_id, 'country', $country ); } add_action( 'xprofile_updated_profile', 'xprofile_sync_extra_field_wp_profile' ); add_action( 'bp_core_signup_user', 'xprofile_sync_extra_field_wp_profile' ); add_action( 'bp_core_activated_user', 'xprofile_sync_extra_field_wp_profile' );
So, every time there is a new user, or a user is activated or the profile is updated, the custom field is being updated (or added) at the wp_usermeta table.
And I run first once the following in order to fill in key-value.
$users = get_users( array( 'fields' => array( 'id' ) ) ); foreach ($users as $user) { $memberid = $user->id; $country = xprofile_get_field_data('Country', $memberid); if ($country) { add_user_meta($memberid, 'country', $country); //var_dump($country); die('kiki'); } }
It works now very well!
Thank you for your support!
Forum: Plugins
In reply to: [BuddyPress Default Cover Photo] unable to delete cover photoProblem still exists for me..
Button ‘Delete’ do exists but either clicking on “save Changes” or visiting another tab after the delete action, the photo is still there and it hasn’t been deleted!
What is the problem here?
Forum: Plugins
In reply to: [Email Users] filter users with specific profile fieldOk got it, thank you!
But how can I add new user meta data without the use of xprofile?
I mean, I only have to use update_user_meta function to update WordPress standard user profile?
Thank you.
Andreas
Forum: Plugins
In reply to: [Email Users] filter users with specific profile fieldI have checked it and works great.
But, I use buddypress xprofile for extra profile meta data.
How can I filter users based on a custom field of xprofile buddypress?
I have to tell you that these xprofile meta values are written at table ‘bp_xprofile_fields’ and ‘bp_xprofile_data’ of database and not at table ‘usermeta’.
Thank you!
Andreas
Forum: Plugins
In reply to: [Email Users] filter users with specific profile fieldOk, thank you for your quick reply, I appreciate it very much!
I have also discovered this post so, I will try these solutions..
Thank you again!
Forum: Plugins
In reply to: [The Events Calendar] Error messageI have the same problem, and I don’t know if it a caching problem.
I can’t solve it using caching options.
@orenlebbo, have you solved it? Any solution?
Thank you.
Andreas
Forum: Plugins
In reply to: [BuddyPress Groups Extras] Add more buttonsCould you please indicate me how you did it?
Thank you!
Forum: Plugins
In reply to: [Polylang] Set tag with specific language to post with different languageOk, thank you for your answer.
I use the following code to exclude post tags from language filtering.
add_filter('pll_get_taxonomies', 'remove_taxonomies'); function remove_taxonomies($taxonomies) { unset($taxonomies['post_tag']); return $taxonomies; }
So, I have achieved tags to be out of polylang translation system.
Say that I have a tag set to post which has language ‘A’ and the same tag has been set to another post of different language.
When I try to show posts of this specific tags (for example https://www.domain.com/tag/post_tag) then only one of the posts appears and not the second.
When I filter to this tag from the backend of wordpress, then both posts that has the same tag appear.What is the problem to front end?
Thank you!
Forum: Plugins
In reply to: [Polylang] Mass translation for categoryOk, thank you for misunderstanding..
I have make a new post here https://www.ads-software.com/support/topic/update-translations-function?replies=1.
Forum: Plugins
In reply to: [Polylang] Mass translation for categoryI have an array of posts with id and preferred languages (‘en’ or ‘el’) to be set to.
So, I have made a simple function to run like the following.
global $polylang; if ($posts) { foreach ($posts as $post) { $post_id = $post['nid']; $lang = $post['language']; if ( TRUE === get_post_status( $post_id ) ) { $polylang->model->set_post_language($post_id, $lang); } } }
But, how I will run this function? I want to run in only once, as there plenty of posts imported that have not any language set.
Thank you!
Regards,
Andreas
Forum: Plugins
In reply to: [Agreeable] move to center of page?Can anyone answer please?
I want something similar..
Forum: Plugins
In reply to: [CM Tooltip Glossary] BuddyPress ConflictIt seems that everything is ok now.
I will check more times, under different circumstances, and get back here if any problem appears.
Thank you for your effort.