Forum Replies Created

Viewing 40 posts - 1 through 40 (of 97 total)
  • Author
  • in reply to: Customize Call to Action Heart #30031
     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 CODE
    
    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);
    
    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';
    }
    in reply to: Customize Call to Action Heart #30025
     4bservices
    Participant

    As 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’;
    }

    in reply to: Customize Call to Action Heart #30024
     4bservices
    Participant

    @Abe it was all fine then it started giving out random errors. I have basic editing and PHP knowledge.

    in reply to: Hide Group Forums on Main Forums Page #27383
     4bservices
    Participant

    Catalin,

    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!!

    in reply to: Register Page is Blank #26486
     4bservices
    Participant

    It 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.

    in reply to: Register Page is Blank #26484
     4bservices
    Participant

    I’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.

    in reply to: Customize Call to Action Heart #26483
     4bservices
    Participant

    child 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?

    in reply to: Customize Call to Action Heart #26482
     4bservices
    Participant

    I am not getting the error anymore… I don’t think. But now getting new errors and it’s just a mess.

    in reply to: Customize Call to Action Heart #26481
     4bservices
    Participant

    I removed the following from the functions.php file in the child theme.

    COPY 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’;
    }

    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 🙁

    in reply to: Customize Call to Action Heart #26480
     4bservices
    Participant

    That error that I copied above I have pages and pages and pages of it.

    in reply to: PaidMembershipPro Forms #26479
     4bservices
    Participant

    I 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.

    in reply to: Register Page is Blank #26478
     4bservices
    Participant

    Re-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.

    in reply to: Register Page is Blank #26477
     4bservices
    Participant

    Okay 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.

    in reply to: Customize Call to Action Heart #26476
     4bservices
    Participant

    Catlin 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

    in reply to: Register Page is Blank #26475
     4bservices
    Participant

    Not 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

    in reply to: Register Page is Blank #26466
     4bservices
    Participant

    So what is it? Ours is still blank.

    in reply to: PaidMembershipPro Forms #26462
     4bservices
    Participant

    Okay 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???

    in reply to: Register Page is Blank #26461
     4bservices
    Participant

    Glad to know I’m not the only one. Have you found any work around? Are you using Paid Membership Pro?

    in reply to: Register Page is Blank #26455
     4bservices
    Participant

    Anyone have ideas? No one can sign up at all. Everything has been updated.

    in reply to: Hide Group Forums on Main Forums Page #25718
     4bservices
    Participant

    Will 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.

    in reply to: Error in Page Redirection for Member Messages #25602
     4bservices
    Participant
    This reply has been set as private.
    in reply to: Error in Page Redirection for Member Messages #25468
     4bservices
    Participant

    Hello,

    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,
    Catalin

    If 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.

    in reply to: Error in Page Redirection for Member Messages #25460
     4bservices
    Participant

    Here 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

    in reply to: PaidMembershipPro Forms #25459
     4bservices
    Participant

    Yes 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.

    in reply to: PaidMembershipPro Forms #25429
     4bservices
    Participant

    Okay 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?

    in reply to: Error in Page Redirection for Member Messages #25427
     4bservices
    Participant

    No haven’t changed a thing. I’m going to make a video showing you what happens.

    in reply to: PaidMembershipPro Forms #25308
     4bservices
    Participant

    Just 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???

    in reply to: Error in Page Redirection for Member Messages #25307
     4bservices
    Participant

    Can 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!

    in reply to: PaidMembershipPro Redirecting Weird #25306
     4bservices
    Participant

    Can 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!

    in reply to: Error in Page Redirection for Member Messages #25268
     4bservices
    Participant

    I saw you created an account – did you find anything helpful?

    in reply to: Error in Page Redirection for Member Messages #25199
     4bservices
    Participant

    It 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!

    in reply to: Customize Call to Action Heart #25198
     4bservices
    Participant
    This reply has been set as private.
    in reply to: PaidMembershipPro Redirecting Weird #25197
     4bservices
    Participant
    This reply has been set as private.
    in reply to: Error in Page Redirection for Member Messages #25057
     4bservices
    Participant

    HELP!!! Any time someone tried to get their messages it goes to the membership pricing page.

    in reply to: Hide Group Forums on Main Forums Page #24910
     4bservices
    Participant

    I’ve googled this and I can’t find anything anywhere that speaks specifically on how to hide the group forums.

    in reply to: PaidMembershipPro Forms #24660
     4bservices
    Participant

    Okay 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?

    in reply to: PaidMembershipPro Redirecting Weird #24641
     4bservices
    Participant

    Okay 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????????

    in reply to: Error in Page Redirection for Member Messages #24640
     4bservices
    Participant

    Tested again and it’s still happening.

    Does anyone else have this going on?

    in reply to: Customize Call to Action Heart #24639
     4bservices
    Participant

    I’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?

    in reply to: PaidMembershipPro Redirecting Weird #24638
     4bservices
    Participant

    I 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!!!???

Viewing 40 posts - 1 through 40 (of 97 total)

Log in with your credentials

Forgot your details?