Forum Replies Created
-
Author
-
gugga7
ParticipantOk I just checked, I think it’s coming from this code I added:
//reorganize the users array and count the total users again
$users[‘users’] = array_values($users[‘users’]);
$users[‘total’] = count($users[‘users’]);Did I make any error or forgot to declare something in this code?
Thanks
gugga7
ParticipantYou can login using these credentials to reproduce this:
http://arabsinamerica.com/wp-admin
login: karim
pass: queen7Just click “Search Members” in the top menu.
Thanks
gugga7
ParticipantHi Laura,
This is supposed to make the profiles show randomly in the homepage carousel?
Thanks.
gugga7
Participantgugga7
ParticipantHi Laura, yes please 🙂 Can you help me customize the Latest members carousel to achieve this? Thanks.
gugga7
ParticipantHello, thanks for the prompt answer. The CSS tweak doesn’t seem to work. Please see attached screen shot. Also, when I select a search criteria, I get the “Profile Search results” text, how can I remove that as well?
Thanks.
gugga7
ParticipantCan you please help with this? I am trying to limit the search results to 9 members per page only.
gugga7
Participantgugga7
ParticipantOk, yes it works now. I’m trying to tweak it so that Free members are automatically prompted to get a premium membership after the trial period expires. How can I do that please?
gugga7
ParticipantI fixed the inner background issue but still can’t seem to find where to modify the homepage background blue image…
gugga7
ParticipantAlso, where do I style the inner pages header and central background? I am attaching screen shots, as you can see the header changed correctly in the homepage (purple) but not in the inner pages (still blue).
gugga7
ParticipantHello, I have the slider turned on but I can’t seem to find where to change the big blue background image with all the face profiles as mentioned above. Under which setting specifically in RevSlider can I find this option? Thanks
gugga7
ParticipantHello, it’s weird, it didn’t work, I also tried:
COPY CODEli#members-all { display: none ! important; }It didn’t work either.
gugga7
ParticipantJust to make sure I understand, this will change only the colors. If I made any changes in the Child theme CSS, they won’t be erased, right?
gugga7
ParticipantWell this is not good, this should be a basic feature for a dating website. I checked your forum and this is a recurrent request from many users. That’s too bad, your theme is great but it falls behind for what seems to be an easy code correction…
Very frustrating to have to look for another theme after putting so much work fixing things and being ready for launch because of an obvious dating feature, not a happy customer 🙁
gugga7
ParticipantHello, I’m having the same issue. We’re ready for launch pending this crucial issue. Please see my attached bp-custom.php file, I don’t think I missed anything.
The problem: when first loading the Members search page (http://arabsinamerica.com/members), it filters correctly (Man see Woman and Woman see Man) but as soon as you change any search criteria, it goes back to showing both genders in the results…
Any idea how to fix this please?
gugga7
ParticipantMay be I misunderstood but this restriction and code is not installed on your demo so I can’t test it there.
gugga7
ParticipantI also tried Laura’s code below, with no success, it shows only the opposite gender when you load the members page, but when you search by age or any other criteria, it goes back into showing both men and women… This is crucial for a dating website 🙁
‘
class BP_Custom_User_Ids {private $custom_ids = array();
public function __construct() {
$this->custom_ids = $this->get_custom_ids();
add_action( ‘bp_pre_user_query_construct’, array( $this, ‘custom_members_query’ ), 1, 1 );
add_filter( ‘bp_get_total_member_count’, array( $this, ‘custom_members_count’ ), 1, 1 );}
private function get_custom_ids() {
global $wpdb;//figure out if the logged-in user is male or female
$sex = xprofile_get_field_data( 852, bp_loggedin_user_id() );if ( $sex == ‘Muslim’ )
$query = “SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 852 AND value = ‘Muslima'”;
else
$query = “SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 852 AND value = ‘Muslim'”;$custom_ids = $wpdb->get_col( $query );
return $custom_ids;
}function custom_members_query( $query_array ) {
$query_array->query_vars[‘include’] = $this->custom_ids;
}
function custom_members_count ( $count ) {
$new_count = count( $this->custom_ids );
return $new_count;}
}function custom_user_ids( ) {
new BP_Custom_User_Ids ();
}
add_action( ‘bp_before_directory_members’, ‘custom_user_ids’ );
‘
gugga7
ParticipantThis is useless unfortunately. If you change any search criteria, it will go back to showing both genders…
gugga7
ParticipantHello, is this code still accurate? I copied it in functions.php for the Child theme, I changed the membership level ID but nothing happens when a new user registers.
COPY CODEadd_action('user_register', 'kleo_pmpro_default_level'); function kleo_pmpro_default_level($user_id) { pmpro_changeMembershipLevel(1,$user_id); }gugga7
ParticipantThis was fixed, an issue with my htaccess. I re-uploaded a normal wordpress htaccess and if fixed this! Closing.
-
AuthorPosts