Forum Replies Created
-
Author
-
May 29, 2015 at 15:25 in reply to: Sort members by current balance (mycred) don't working with sweetdate #60510rudik2Participant
In file members-loop.php is code to display members results:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('buddypress_perpage') ) ) : ?>
In MyCred tutorial i read that i must paste this code in function.php to have option “SORT MEMBERS BY CURRENT BALANCE”:
COPY CODE/** * Add Sort Members Option * @since 0.1 * @version 1.0 */ add_action( 'bp_members_directory_order_options', 'mycred_pro_add_sorting_options' ); function mycred_pro_add_sorting_options() { ?> <option value="points-asc">Points Balance (Ascending)</option> <option value="points-desc">Points Balance (Descending)</option> <?php } /** * Adjust BP User Query * @since 0.1 * @version 1.0 */ add_action( 'bp_pre_user_query', 'mycred_pro_pre_user_query' ); function mycred_pro_pre_user_query( $BP_User_Query ) { // Only run this if one of our custom options is selected if ( in_array( $BP_User_Query->query_vars['type'], array( 'points-asc', 'points-desc' ) ) ) { global $wpdb; // Adjust SELECT $BP_User_Query->uid_clauses['select'] = " SELECT DISTINCT u.{$BP_User_Query->uid_name} as id FROM {$wpdb->users} u INNER JOIN {$wpdb->usermeta} um ON ( u.{$BP_User_Query->uid_name} = um.user_id )"; // Adjust WHERE $BP_User_Query->uid_clauses['where'] = "WHERE um.meta_key = 'mycred_default'"; // Adjust ORDER BY $BP_User_Query->uid_clauses['orderby'] = "ORDER BY um.meta_value+0"; // Adjust ORDER $BP_User_Query->uid_clauses['order'] = ( $BP_User_Query->query_vars['type'] == 'points-asc' ) ? 'ASC' : 'DESC'; } }
I would like to display MEMBERS result by MyCred points balance. I think that i must change something in members-loop.php file in this line? :
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ). '&per_page='.sq_option('buddypress_perpage') ) ) : ?>
Please help with this.
Regards,
TomaszMay 25, 2015 at 15:39 in reply to: Sort members by current balance (mycred) don't working with sweetdate #60043rudik2ParticipantAdmins please help with that problem. Will be greate then members are display in MEMBERS SITE by current balance.
Members maybe then will be more active on the site.March 2, 2015 at 08:35 in reply to: Sort members by current balance (mycred) don't working with sweetdate #48327rudik2ParticipantAndrei will be grate. I tested this code on the buddypress (without sweetdate) and all working ok. I think that problem is in sweetdate.
rudik2ParticipantLaura sorry but i don’t have some instalation to test. You really don’t have instalation for test in your team? 🙂
rudik2ParticipantDoes not work. I have still one column with members list. I would like to have one column right or left to display some widgets, similar to for example profile site.
February 23, 2015 at 15:12 in reply to: Sort members by current balance (mycred) don't working with sweetdate #47248rudik2ParticipantHi,
can you test it?
Please help.February 19, 2015 at 15:39 in reply to: Sort members by current balance (mycred) don't working with sweetdate #46700rudik2ParticipantThis reply has been set as private.February 17, 2015 at 09:53 in reply to: Sort members by current balance (mycred) don't working with sweetdate #46343rudik2ParticipantI added this code in funcions.php files on the child theme.
rudik2ParticipantIt is very good option but missing a field to write text information “Why You report this user?” and then user writing and sending to administrator. Will be greate.
December 18, 2014 at 20:15 in reply to: How to change redirect quest from register page to register form #39621rudik2ParticipantIt is possible to change this code`//Redirect only guests to register page
add_filter(‘kleo_pmpro_url_redirect’, ‘kleo_my_custom_guest_redirect’);function kleo_my_custom_guest_redirect($redirect)
{
if (!is_user_logged_in()){
return home_url().’/register’;
}
else
{
return $redirect;
}
}`to show register form instead of redirect to register page, for quest?
<a href="#" data-reveal-id="register_panel">
December 5, 2014 at 09:17 in reply to: Bug in visibility Password fields "required" and "confirm" #37777rudik2ParticipantWorking good but fields is too small.
December 5, 2014 at 09:13 in reply to: Bug when i click in "plus icon" and the person sent me earlier invitation #37775rudik2ParticipantOk, thanks for information 🙂
December 5, 2014 at 08:58 in reply to: Bug when i click in "plus icon" and the person sent me earlier invitation #37768rudik2Participantor display information in Member Site – “confirm friends” or similar..
rudik2ParticipantI think that this options are not EXTRA functionality…
About extra functionalities I will not write because I know that the site would have to be made “to measure”.Options about i wrote will be when SweetDate started -> BASIC. I think that WE (buyer) need this, not only me.
rudik2Participant1. The option which I wrote is no gender restriction. I will be test Your solution.
2. Why is QUICK PROFILE NAVIGATION? Following your think … Let’s delete it because all members can see these people on MEMBERS site. Can You ever see some online dating site? Please register…
3. Sorry, this mobile version is good for sites created about 7 years ago. Do you like scroll down to content every when you change site?rudik2Participant@Abe, many times you helped me, Thanks for that. You’re really good. But you promised me something in April 2014 https://archived.seventhqueen.com/forums/topic/quick-profile-navigation-no-loops
rudik2ParticipantI have 1 other installation to test and here all working OK. Meabe You know where is some problem in my FIRST site?
rudik2ParticipantAbe, becouse facebook login don’t working i turn off facebook integration. Can you write me when (day, hours) You can test it? I will be then turn on facebook integration in my site.
In yosemite i use chrome and safari but problem is in windows too.rudik2ParticipantI see one more problem. When user click “FORGOT YOUR USERNAME OR PASSWORD?”, write e-mail and click “send my details” the E-mail is not sent, but when user write incorrect login and password and then click to “ERROR: Invalid username. Lost your password?” and then write e-mail and click send – email is sent.
All e-mail working good without e-mail from “forgot yout username or password?”. Maybe this problem has something to do with the fact that it does not work login with facebook.I have demo site with the same plugins and e-mail form “forgot your username or password?” working good and facebook login working good.
November 27, 2014 at 15:46 in reply to: How to generate menu items with links to logged in user profile … ? #36877rudik2ParticipantAbe, don’t work it. I write that:
<a href="/##profile_link##/profile/change-avatar/#item-nav">add photo</a>
and when i click to “add photo” i am redirect to home page.rudik2ParticipantLaura, i use facebook login in SweetDate more as 1 year. All worked OK. After update to 2.7 version i can’t login.
Do You understand me? 🙂rudik2ParticipantWhere i can edit code?
I would like to change icon PLUS to icon with HEART.LOOK
ICON PLUS -> http://s23.postimg.org/qj2k0jifv/image.jpg change to……..
ICON with HEART -> http://s28.postimg.org/pauny4l0d/image.jpgDo You undestand me? 🙂
rudik2ParticipantI try this code for change url for friends:
define ( ‘BP_FRIENDS_SLUG’, ‘friends/#main’ );
but i see 404 page.Anybody help me? 🙂
rudik2ParticipantOk i see that i must add to all buddypress menu link “#main” but where is the file with buddypress menu links?
rudik2ParticipantI would like to scroll down page when user click in Activity, Profile, Messages, Friends, Groups etc. in buddypress menu http://s13.postimg.org/vl0x0ghhz/Bez_nazwy_2.jpg. It is possible?
Will be great when user will be see first scrolled page http://s13.postimg.org/rc0sc13mf/Bez_nazwy_4.jpg
rudik2ParticipantCatalin please visit other dating site… This option will be available in standard option in SweetDate theme.
-
AuthorPosts