solojuve1897
Forum Replies Created
-
…
- This reply was modified 7 years, 3 months ago by solojuve1897. Reason: Double
Thank you for your help. That solved it. With a small modification:
get_post_meta in the last function instead of get_user_meta.
Its been three days now. Anything? How do I solve this mess?
I have found the problem with the code. The validation and save functions are only called if one creates an account during checkout. Never otherwise. During these conditions the value passed to the custom field is saved and is displayed in the edit order page. The reason is of course these two lines:
lifterlms_user_registered
lifterlms_user_registration_dataHow do I make it so that the value inputted to the custom field is connected to the specific order and not the user?
- This reply was modified 7 years, 3 months ago by solojuve1897.
Hi @thomasplevy
Thank you for your reply. A Company Name field is now showing on the order-page. But it’s empty since the save function doesnt seem to do its job correctly…
function save_custom_company_name( $person_id, $data , $screen ){ add_user_meta( $person_id, 'llms_company_name', $data['llms_company_name'], true); } add_action( 'lifterlms_user_registered', 'save_custom_company_name', 10, 3);
As I have noted before I have looked in my database and the custom field isnt actually saved in the usermeta table.
- This reply was modified 7 years, 3 months ago by solojuve1897.
I really don’t understand how one can build a plugin for this purpose and then leave out something fundamental as this. There isnt a blueprint for what an academy needs to collect by its students. In Sweden we for example need to collect the National ID number. Yet there isnt an easy way to add a simple field on the checkout to collect this, which is very frustrating.
- This reply was modified 7 years, 3 months ago by solojuve1897.
Anything?
Sorry for the late reply. Here is what I added to my functions.php file.
The code is as I said before partly working with the Company Name-field appearing on the Checkout-page. The problem is the second part. How can I see what the user entered while making that specific order?
Forum: Plugins
In reply to: [BuddyPress Compliments] HTTPS supportThanx.
That fixed it for me.
Forum: Plugins
In reply to: [BuddyPress Compliments] Pagination not working properlyFor now I chose to hide the pagination via CSS:
#item-body > div.bp-compliments-wrap > div.pagination{
display:none;
}I will set up a demo page and put it up here for you to see the issue. Like I said earlier, the interesting part is that when one is logged in as an admin and goes into any users compliments one can as expected change page (the whole page refreshes). The problem is when the user is logged in and goes to his compliments and then changes page, it just scrolls to top. No refresh. No page change.
I will try out more scenarios. I will disable all plugins I have and see what happens. I will get back to you.
Forum: Plugins
In reply to: [BuddyPress Compliments] Pagination not working properlyYes, I still have the same problem…
Forum: Plugins
In reply to: [BuddyPress Compliments] Pagination not working properlyI face the same problem here…
When visiting a users compliments via the admin-account the pagination works. But when the user himself looks for his compliments the pagination doesn’t work. It changes the url but doesnt refresh the page automatically.
Any solution?
Yes, I really need to implement this. I figure it should be very possible to do. Any ideas out there?
Forum: Plugins
In reply to: [BuddyPress Follow] Missing follow-button on Members-pageIt works like a charm. Thank you very much. Just a styling issue left. The friends button (which I now have removed completely) had the following styling:
if (! function_exists('kleo_bp_member_dir_friend_button')): /** * Render add friend button on members directory */ function kleo_bp_member_dir_friend_button() { add_filter('bp_get_add_friend_button', 'kleo_change_profile_button'); bp_add_friend_button(bp_get_member_user_id()); } endif; if ( bp_is_active( 'friends' ) ) { add_action('bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11); } if (!function_exists('kleo_change_profile_button')): /** * Change default BP button class and text next to profile in members directory * @param array $button * @return array */ function kleo_change_profile_button($button) { $is_friend = bp_is_friend( bp_get_member_user_id() ); if ( empty( $is_friend ) ) return false; switch ( $is_friend ) { case "pending": case "is_friend": $button['link_text'] = '<i class="icon-minus"></i>'; break; default: $button['link_text'] = '<i class="icon-plus"></i>'; break; } $button['link_class'] = 'button small secondary radius'; return $button; } endif;
Is it possible to make the follow-button behave in the same manner? Or at least change its class to “button small secondary radius”?
Forum: Plugins
In reply to: [BuddyPress Follow] Missing follow-button on Members-pageI don’t have that line in the members-loop.php file. I can find the following there though:
<div class="item-list search-list" id="members-list"> <?php while ( bp_members() ) : bp_the_member(); ?> <div class="four columns"> <div class="search-item"> <div class="avatar"> <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=94&height=94&class='); ?></a> <?php do_action('bp_members_inside_avatar');?> </div> <?php do_action('bp_members_meta');?> <div class="search-body"> <?php do_action( 'bp_directory_members_item' ); ?> </div> <div class="bp-member-dir-buttons"> <?php do_action('bp_directory_members_item_last');?> </div> </div> </div> <?php endwhile; ?> </div>
In the bp-functions.php file I can then find the following with regards to “item_last”:
add_action('bp_directory_members_item_last','kleo_bp_member_dir_view_button', 10); if (! function_exists('kleo_bp_member_dir_friend_button')): /** * Render add friend button on members directory */ function kleo_bp_member_dir_friend_button() { add_filter('bp_get_add_friend_button', 'kleo_change_profile_button'); bp_add_friend_button(bp_get_member_user_id()); } endif; if ( bp_is_active( 'friends' ) ) { add_action('bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11); }
Do you have any idea what’s going on and what I could do? I actually don’t want the “add friend”-button on that specific page where the members are listed. I just need the “View profile”-button (which I already have) and the follow-button from this plugin.
I appreciate the help.
Regards,