-
Author
-
July 25, 2015 at 23:19 #70011Santos RamosParticipant
Hello! I have two small problems with the site.
I just created a free membership but I don’t think is working properly.
If I click on the members and groups button it will send you to the memberships levels page where you can select the free membership.
If you click on the forums button it will send you directly to the Crate Account page skipping the free membership page.
If I click on the signup button on top of the page it will open a popup window and then will send you to the Crate Account skipping the free membership page.
Also, the I would like the blog to be public but it requires to login to view it.
Can you please help me fix the problem!
Thanks!
July 25, 2015 at 23:22 #70012Santos RamosParticipantHere is the code I added to the child theme, I’m not sure is the code is the problem.
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/add_action(‘after_setup_theme’,’kleo_my_actions’);
function kleo_my_actions()
{
/* disable matching on member profile */
remove_action(‘kleo_bp_before_profile_name’, ‘kleo_bp_compatibility_match’);/* Replace the heart over images */
add_filter(‘kleo_img_rounded_icon’, ‘my_custom_icon’);/* Replace the heart from register modal */
add_filter(‘kleo_register_button_icon’, ‘my_custom_icon_register’);/* Replace the heart from About us widget */
add_filter(‘kleo_widget_aboutus_icon’, ‘my_custom_icon_about_widget’);
}/* Replace the heart with a camera icon function */
function my_custom_icon () {
return ‘camera’;
}/* Replace the heart from register modal with a user icon function */
function my_custom_icon_register () {
return ‘edit’;
}
/* Replace the heart from about us widget with a user icon function */
function my_custom_icon_about_widget () {
return ‘user’;
}/**
* Sweetdate Child Theme Functions
* Login no spaces code
*/add_action(‘bp_init’,’bpdev_remove_bp_pre_user_login_action’);
function bpdev_remove_bp_pre_user_login_action(){
remove_action( ‘pre_user_login’, ‘bp_core_strip_username_spaces’ );
}//add a filter to invalidate a username with spaces
add_filter(‘validate_username’,’bpdev_restrict_space_in_username’,10,2);
function bpdev_restrict_space_in_username($valid,$user_name){
//check if there is an space
if ( preg_match(‘/\s/’,$user_name) )
return false;//if myes, then we say it is an error
return $valid;//otherwise return the actual validity
}/* Filter the redirect url for login*/
add_filter(“login_redirect”,”kleo_redirect_to_profile”,100,3);
function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
/*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
if(!is_super_admin($user->ID))
return bp_core_get_user_domain($user->ID );
else
return $redirect_to_calculated; /*if site admin*/
}?>
July 27, 2015 at 08:00 #70129LauraModeratorHello, the membership page should apper after an user signs up and if the user doesnt already have a membership, each time he logs in he will see it. That is how it should be 🙂
You can lock all your pages just for free membership so they need to select it to see itHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 28, 2015 at 02:26 #70326Santos RamosParticipantThanks for the help.
Now I understand how the membership works!About the blog.
I would like the blog to be viable by anyone!
Right now I need to login to be bale to see the blog.The blog is not locked to the free membership.
How can I fix this?
Thanks!
July 29, 2015 at 01:42 #70494LauraModeratorHello, that is strange, could you share admin credentials? 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 30, 2015 at 20:11 #70816LauraModeratorHello, your blog is not restricted. Both users see the same, empty blog page. i see ou have posts so maybe the isue is related to a plugin that could be creating a conflict. Please try deactivating one by one until its fixed 🙂
Let me knowHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
July 31, 2015 at 22:07 #71001Santos RamosParticipantThanks Laura,
Paid Memberships Pro is the problem.
I deactivated all the plugins and when I activate Paid Memberships Pro I get the blocked blog.
If I go to Paid Memberships Pro and unselect blog, the blog still blocked.
Can you please help!
Thanks,
SantosAttachments:
You must be logged in to view attached files.August 2, 2015 at 20:04 #71247LauraModeratorHello, you have articles,uncategorized and general checked, this blocks the posts showsn in blog. I unchecked those, and now its fixed 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.