Forum Replies Created
-
Author
-
4bservices
Participant@Catalin Hello. So I know that the code works as when I add the code the hearts go away and where I want it replaced it is showing a dashboard instead. The issue is however that when I add the above code to the child functions then the wp-admin area no longer works due to errors. What is wrong with our functions.php code? Why when we try to remove/replace the hearts does it break the site?
COPY CODEfunction kleo_copyright_text() { echo '<p>'. __("Copyright", 'kleo_framework').' © '.date("Y").' '. get_bloginfo('name').'. <br class="hide-for-large show-for-small"/>'. get_bloginfo( 'description' ).' <a href="http://jeepedin.com/tos/">TOS</a> - <a href="http://jeepedin.com/privacy/">Privacy</a><br/><font size="1.3">JeepedIn is not in any way associated with Jeep or the Chrysler Corporation. <br/>Jeep, Wrangler, Cherokee and Grand Cherokee are copyrighted and trademarked to the Jeep/Chrysler Corporation.</font></p>'; } /* These restrictions will appear to be configured in Sweetdate - Memberships */ add_filter('kleo_pmpro_level_restrictions', 'kleo_my_levels_checkmarks'); function kleo_my_levels_checkmarks($settings) { $settings = array ( //NEW RESTRICTION MESSAGES page with name: message array( 'title' => __('Access exclusive forums','kleo_framework'), 'front' => __('Access exclusive forums','kleo_framework'), 'name' => 'message' ), //NEW RESTRICTION SHOP page with name: shop array( 'title' => __('Eligible for special giveaways','kleo_framework'), 'front' => __('Eligible for special giveaways','kleo_framework'), 'name' => 'shop' ), //NEW RESTRICTION MESSAGES page with name: credits array( 'title' => __('Credits to Place Classified Ads','kleo_framework'), 'front' => __('Credits to Place Classified Ads','kleo_framework'), 'name' => 'credits' ), array( 'title' => __('Restrict members directory','kleo_framework'), 'front' => __('View members directory','kleo_framework'), 'name' => 'members_dir' ), array( 'title' => __('Restrict viewing other profiles','kleo_framework'), 'front' => __('View members profile','kleo_framework'), 'name' => 'view_profiles' ), array( 'title' => __('Restrict access to groups directory','kleo_framework'), 'front' => __('Access group directory','kleo_framework'), 'name' => 'groups_dir' ), array( 'title' => __('Restrict access to single group page','kleo_framework'), 'front' => __('Access to groups','kleo_framework'), 'name' => 'view_groups' ), array( 'title' => __('Restrict users from viewing site activity','kleo_framework'), 'front' => __('View site activity','kleo_framework'), 'name' => 'show_activity' ), array( 'title' => __('Restrict users from sending private messages','kleo_framework'), 'front' => __('Send Private messages','kleo_framework'), 'name' => 'pm' ), array( 'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'), 'front' => __('Add media to your profile','kleo_framework'), 'name' => 'add_media' ) ); return $settings; } // restrict profile area - Messages page //add_action('kleo_pmro_extra_restriction_before_my_profile','kleo_my_custom_restrict1'); function kleo_my_custom_restrict1() { //full current url $actual_link = kleo_full_url(); //our request uri $uri = str_replace(untrailingslashit(home_url()),"",$actual_link); //restrict messaging page url if(preg_match("/^\/".bp_get_members_root_slug()."\/". bp_get_loggedin_user_username()."\/messages\/?/", $uri)) { $my_restrictions = array('message' => array( //2 - restrict certain levels. 0 -restrict none; 1 - restrict all 'type' => 2, //levels that you apply the restrictions to 'levels' => array(2,-1), //'not_member' => 1, //restrict users without a membership level //'guest' => 1 // restrict not logged in users ) ); //We use the name "message" from the new restriction added above kleo_check_access('message',$my_restrictions); } } //Restrict Shop page //add_filter('kleo_pmpro_match_rules', 'kleo_my_custom_restrict2'); function kleo_my_custom_restrict2($restrictions) { //regular expression for shop page $restrictions["/^\/shop\/?$/"] = array('name' => 'shop'); return $restrictions; } function my_reg_page( $register_url ) { return pmpro_url("levels"); } add_filter( 'register_url','my_reg_page',9999); add_filter( 'bp_get_signup_page','my_reg_page',9999); add_action('after_setup_theme','kleo_my_hearts_actions'); function kleo_my_hearts_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 'dashboard'; } /* Replace the heart from register modal with a user icon function */ function my_custom_icon_register () { return 'dashboard'; } /* Replace the heart from about us widget with a user icon function */ function my_custom_icon_about_widget () { return 'dashboard'; }
4bservices
ParticipantAs soon as I add the following to the child functions.php before the closing ?> The entire site messes up.
What is wrong with this code??? I’m trying to make it so the tracometer/dashboard icon shows up instead of the hearts.
code>add_action(‘after_setup_theme’,’kleo_my_hearts_actions’);
function kleo_my_hearts_actions()
{
/* 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 ‘tachometer’;
}
/* Replace the heart from register modal with a user icon function */
function my_custom_icon_register () {
return ‘tachometer’;
}
/* Replace the heart from about us widget with a user icon function */
function my_custom_icon_about_widget () {
return ‘tachometer’;
}4bservices
Participant@Abe it was all fine then it started giving out random errors. I have basic editing and PHP knowledge.
4bservices
ParticipantCatalin,
I read through this and it seems as it’s not a solution. There is still issues? Should I just put that shortcode in a file in the child theme – the forum-archive.php?
The forum is a mess with all the group forums taking over where we wanted a structured forum.
Thank you so much for the help!!
4bservices
ParticipantIt is working now – however the /register page is not the one we use we actually use the PMP membership levels and I got it to work somewhat – but still having issues all over.
We haven’t fixed it 100% but at least people can now register and log in.
4bservices
ParticipantI’m not sure what was going on but I know have it directing to the membership level page like it should. Somewhere, somehow some code got removed that shouldn’t have been.
4bservices
Participantchild functions.php
COPY CODE<?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 */ function kleo_copyright_text() { echo '<p>'. __("Copyright", 'kleo_framework').' © '.date("Y").' '. get_bloginfo('name').'. <br class="hide-for-large show-for-small"/>'. get_bloginfo( 'description' ).' <a href="http://jeepedin.com/tos/">TOS</a> - <a href="http://jeepedin.com/privacy/">Privacy</a><br/><font size="1.3">JeepedIn is not in any way associated with Jeep or the Chrysler Corporation. <br/>Jeep, Wrangler, Cherokee and Grand Cherokee are copyrighted and trademarked to the Jeep/Chrysler Corporation.</font></p>'; } /* These restrictions will appear to be configured in Sweetdate - Memberships */ add_filter('kleo_pmpro_level_restrictions', 'kleo_my_levels_checkmarks'); function kleo_my_levels_checkmarks($settings) { $settings = array ( //NEW RESTRICTION MESSAGES page with name: message array( 'title' => __('Access exclusive forums','kleo_framework'), 'front' => __('Access exclusive forums','kleo_framework'), 'name' => 'message' ), //NEW RESTRICTION SHOP page with name: shop array( 'title' => __('Eligible for special giveaways','kleo_framework'), 'front' => __('Eligible for special giveaways','kleo_framework'), 'name' => 'shop' ), //NEW RESTRICTION MESSAGES page with name: credits array( 'title' => __('Credits to Place Classified Ads','kleo_framework'), 'front' => __('Credits to Place Classified Ads','kleo_framework'), 'name' => 'credits' ), array( 'title' => __('Restrict members directory','kleo_framework'), 'front' => __('View members directory','kleo_framework'), 'name' => 'members_dir' ), array( 'title' => __('Restrict viewing other profiles','kleo_framework'), 'front' => __('View members profile','kleo_framework'), 'name' => 'view_profiles' ), array( 'title' => __('Restrict access to groups directory','kleo_framework'), 'front' => __('Access group directory','kleo_framework'), 'name' => 'groups_dir' ), array( 'title' => __('Restrict access to single group page','kleo_framework'), 'front' => __('Access to groups','kleo_framework'), 'name' => 'view_groups' ), array( 'title' => __('Restrict users from viewing site activity','kleo_framework'), 'front' => __('View site activity','kleo_framework'), 'name' => 'show_activity' ), array( 'title' => __('Restrict users from sending private messages','kleo_framework'), 'front' => __('Send Private messages','kleo_framework'), 'name' => 'pm' ), array( 'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'), 'front' => __('Add media to your profile','kleo_framework'), 'name' => 'add_media' ) ); return $settings; } // restrict profile area - Messages page //add_action('kleo_pmro_extra_restriction_before_my_profile','kleo_my_custom_restrict1'); function kleo_my_custom_restrict1() { //full current url $actual_link = kleo_full_url(); //our request uri $uri = str_replace(untrailingslashit(home_url()),"",$actual_link); //restrict messaging page url if(preg_match("/^\/".bp_get_members_root_slug()."\/". bp_get_loggedin_user_username()."\/messages\/?/", $uri)) { $my_restrictions = array('message' => array( //2 - restrict certain levels. 0 -restrict none; 1 - restrict all 'type' => 2, //levels that you apply the restrictions to 'levels' => array(2,-1), //'not_member' => 1, //restrict users without a membership level //'guest' => 1 // restrict not logged in users ) ); //We use the name "message" from the new restriction added above kleo_check_access('message',$my_restrictions); } } //Restrict Shop page //add_filter('kleo_pmpro_match_rules', 'kleo_my_custom_restrict2'); function kleo_my_custom_restrict2($restrictions) { //regular expression for shop page $restrictions["/^\/shop\/?$/"] = array('name' => 'shop'); return $restrictions; } function my_reg_page( $register_url ) { return pmpro_url("levels"); } add_filter( 'register_url','my_reg_page',9999); add_filter( 'bp_get_signup_page','my_reg_page',9999); ?>
I am now getting tons and tons of errors referencing this page. Do you see anything that isn’t right? I don’t see anything that stands out. Things saying that the header is already called elsewhere and just tons of errors. Also when people click the login button and enter their information it then loads jeepedin.com/wp-admin as a blank white page. I thought it went to the profile?
4bservices
ParticipantI am not getting the error anymore… I don’t think. But now getting new errors and it’s just a mess.
4bservices
ParticipantI removed the following from the functions.php file in the child theme.
COPY CODEadd_action(‘after_setup_theme’,’kleo_my_hearts_actions’); function kleo_my_hearts_actions() { /* 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 ‘tachometer’; } /* Replace the heart from register modal with a user icon function */ function my_custom_icon_register () { return ‘tachometer’; } /* Replace the heart from about us widget with a user icon function */ function my_custom_icon_about_widget () { return ‘tachometer’; }
However things are still not working. It’s all sorts of a mess. So far it’s been 12 hours I’ve been combing through all the pages and all the errors. Oh and the darn hearts are back too…. of course since I removed the code 🙁
4bservices
ParticipantI installed a fresh SweetDate theme and wp-admin folder.
I got the register to work but once the login is clicked it takes you to a blank white jeepedin.com/wp-admin. It is not redirecting to the profile.
4bservices
ParticipantRe-installed the SweetDate theme and the Wp-Admin.
When logging in it still goes to jeepedin.com/wp-admin and it’s blank. It is not redirecting to the profile.
4bservices
ParticipantOkay I fixed the error on that line and now it is working again…. however now once someone logs in it takes them to jeepedin.com/wp-admin and is a blank page. I believe it use to go to their account.
4bservices
ParticipantCatlin I’m getting an error on all the pages…
PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘kleo_my_hearts_actions’ not found or invalid function name in /home/srhart/public_html/wp-includes/plugin.php on line 470
4bservices
ParticipantNot that. Our pages have been set correctly from the beginning. This was a sudden stop of it working. I am getting an error on line 268.
] PHP Parse error: syntax error, unexpected ‘t’ (T_STRING) in /home/srhart/public_html/wp-content/themes/sweetdate-child/registration/register.php on line 268
4bservices
ParticipantOkay all of a sudden our Register page is showing up BLANK. It was working great going to the PaidMembershipPro form like you set but now nothing. Everything is still the same it should be – we haven’t changed a thing.
If we go to the following page jeepedin.com/membership-account/membership-levels it works fine but for all those /register links it goes to nothing???
4bservices
ParticipantGlad to know I’m not the only one. Have you found any work around? Are you using Paid Membership Pro?
4bservices
ParticipantWill this work on this theme???
if you use bbpress shortcode [bbp-forum-index] for this page: http://jeepedin.com/forums/
replace it with this one [ bbp-single-forum id=$forum_id=4]
and add as many shortcode of this type for each forum you want to show on the forum index.For ex:
[ bbp-single-forum id=$forum_id=4]
[ bbp-single-forum id=$forum_id=5]
[ bbp-single-forum id=$forum_id=7]
[ bbp-single-forum id=$forum_id=11]forum-index fetches ALL forums, single-forum fetches only the forum you indicate by his ID.
4bservices
ParticipantHello,
I have run some tests with on your site and the notifications tab point to the right place… Can you please tell me if you changed anything in the code? Or maybe give me an account example…
Thank you,
CatalinIf you actually CLICK on it then it doesn’t get directed to the right area. The only code we have changed is the code provided here on this forum site.
4bservices
ParticipantHere is the video that I recorded showing that I sent a message from one JeepMingle account to another and the NON-admin JeepMingle account can not access the messages.
https://www.dropbox.com/s/4i3nhwh5fzdlgsd/RedirectingToMembershipLevels.mov
4bservices
ParticipantYes that’s what I said. It works but it doesn’t. I wanted to connect FB to the account I already have and instead of doing that it created a NEW account using my Facebook information. I don’t want my user to be @alaina-frederick I want it to be the account I already have. I also don’t want it to pull my FB for my username as then everyone on the site will know me as @alaina-frederick NOT a more anonymous username that I’d pick.
4bservices
ParticipantOkay I updated to the latest theme and turned the FB back on. I tried it and instead of it connecting with an account I already have it created a new one based off of my FB name. That isn’t what was expected. Is there something we should do differently?
4bservices
ParticipantNo haven’t changed a thing. I’m going to make a video showing you what happens.
4bservices
ParticipantJust wondering about the Facebook integration. We are getting complaints about not being able to use that function. We have it turned off for now but why can’t they sign in with Facebook anymore???
4bservices
ParticipantCan anyone help us out. We have a number of people – including the client – very upset that they are getting messages that they can’t see.
I have duplicated their issue over and over and over and there isn’t any fix that I can find.
PLEASE someone help us!
4bservices
ParticipantCan anyone help us out. We have a number of people – including the client – very upset that they are getting messages that they can’t see.
I have duplicated their issue over and over and over and there isn’t any fix that I can find.
PLEASE someone help us!
4bservices
ParticipantIt has been doing it since before the code you helped me with that simplified the checkout process. It’s been happening since almost the beginning.
Thank you for all the help!
4bservices
ParticipantHELP!!! Any time someone tried to get their messages it goes to the membership pricing page.
4bservices
ParticipantI’ve googled this and I can’t find anything anywhere that speaks specifically on how to hide the group forums.
4bservices
ParticipantOkay the simpler registration still works but now it will not sync with Facebook. It will not allow them to sign in or up with FB?? Is it because of the added code. Is there a way to allow it?
4bservices
ParticipantOkay so I got the auto-generated email saying that I had a new message. I clicked on the link in the email to get said message and it took me to the messages page saying I did not have any messages. But the Notifications tab had a 1 by it so I clicked on that and there it showed me that a user had sent me a private message and then I clicked on that to actually get the message.
Does that give any clues as to what could possibly be going on????????
4bservices
ParticipantI’m wondering if the code I used to remove the matching did something and it removed ALL the hearts instead of replacing some of those icons with the dashboard/trachometer icon.
Any suggestions on this code where we might have it wrong and it’s not calling the icon correctly?
4bservices
ParticipantI thought perhaps it was something with how people were signing up. So after changing the way people register per directions in the other thread I created a non-admin account testing the new sign up. I then sent a message to that non-admin user and from there I clicked on the alert for the messages and once again I was redirected to the membership levels page.
Something is not right.
Can someone PLEASE PLEASE help!!!???
-
AuthorPosts