-
Author
-
July 14, 2013 at 06:50 #594mustafaParticipant
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
July 14, 2013 at 13:40 #600rugwarriorParticipantHi mustafa,
have you enabled under the “Dashboard” -> “General Settings” -> “Membership” -> “Anyone can register” ?
July 14, 2013 at 14:38 #611mustafaParticipantYes its enabled. However when I fill out my details on the registration page and press submit, nothing happens.
July 15, 2013 at 10:51 #622SQadminKeymasterAs 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 solutionJuly 16, 2013 at 07:48 #653SQadminKeymasterYou 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 solutionJuly 20, 2013 at 18:15 #771mustafaParticipantHi,
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 ?July 20, 2013 at 20:51 #774SQadminKeymasterHi
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 CODEadd_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 solutionJuly 21, 2013 at 11:08 #779mustafaParticipantGot 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
July 21, 2013 at 19:16 #786SQadminKeymasterHi
I modified a line. It was interpreted wrong by the editorHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 21, 2013 at 21:01 #791SQadminKeymasterJust 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 solutionJuly 21, 2013 at 21:15 #793mustafaParticipantYes. 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 Onlylike 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 meJuly 22, 2013 at 04:53 #798SQadminKeymasterHi
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 -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.