This topic has 12 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #594
     mustafa
    Participant

    I have created a website with the sweet date theme. But the registration page is not working.
    Could anyone please help me on this ?

    This is the website

    http://1web.co/AHC/register

    #600
     rugwarrior
    Participant

    Hi mustafa,

    have you enabled under the “Dashboard” -> “General Settings” -> “Membership” -> “Anyone can register” ?

    #611
     mustafa
    Participant

    Yes its enabled. However when I fill out my details on the registration page and press submit, nothing happens.

    #622
     SQadmin
    Keymaster

    As I can tell it is a problem with POST not being sent. Can you check sending some data trough a form on that server and see if it submits?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #653
     SQadmin
    Keymaster

    You can upgrade to the new v1.4. See if it fixes your problem

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #771
     mustafa
    Participant

    Hi,
    This is my website http://1web.co/marriage/ . I need to make the name field visible only for admin. But there is no option for name. FOr all other fields I can change the visibility
    Could you please tell me how to solve this ?

    #774
     SQadmin
    Keymaster

    Hi
    Indeed, by default Buddypress doesn’t allow you to set visibility options to Name field.
    To achieve that you can add this piece of code into your sweetdate-child/functions.php file(you need to activate the child theme)

    COPY CODE
    
    add_filter(‘bp_xprofile_get_hidden_fields_for_user’,'bp_define_hidden_fields’, 10 ,3 );
    function bp_define_hidden_fields( $hidden_fields, $displayed_user_id, $current_user_id ) {
    //if not admin or if not the the profile of the current userif 
    if ( !is_super_admin( $current_user_id) AND  ($displayed_user_id != $current_user_id) ) {
    //add name field ( id = 1 ) to the hidden fields
    $hidden_fields[] = 1;
    }
    return $hidden_fields;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #779
     mustafa
    Participant

    Got a syntax error when i added the code which you sent

    Parse error: syntax error, unexpected T_STRING in /home/webco/public_html/marriage/wp-content/themes/sweetdate/functions.php on line 405

    Please help me to solve that

    #786
     SQadmin
    Keymaster

    Hi
    I modified a line. It was interpreted wrong by the editor

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #789
     mustafa
    Participant

    so which line I need to modify ?
    please let me know

    #791
     SQadmin
    Keymaster

    Just put the whole new code.
    The line is no. 4 from the snippet.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #793
     mustafa
    Participant

    Yes. Now its not showing the error
    But also its not showing the options of visibility like other fields.
    I need these options ‘Default Visibility
    Anyone
    Logged In Users
    Admins Only

    like other fields.
    How to do this ?
    Also in the current code you are hiding this function for users other than admin right ?
    that is also ok. But if you can give the options in wordpress admin to change the visibility then its great
    please help me

    #798
     SQadmin
    Keymaster

    Hi
    That is how buddypress works and can’t be changed easily
    Maybe it will be available in upcoming buddypress versions.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?