Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • timothylarson

    (@timothylarson)

    That fixed it, thanks!

    The only thing I had to modify was I had to move the “posts_per_page” into the shortcode rather than the function. When it was in the function, it was skipping a couple results for some reason.

    It all works perfectly now, thanks!

    Got it!

    In the file “wp-content/plugins/church-community-builder-core-api/admin/class-ccb-core-sync.php” after line 371, a new line must be added with this param:

    ‘include_image_link’ => ‘1’

    So the whole services array should read:

    $services[] = array(
    ‘service_name’ => ‘group_profiles’,
    ‘params’ => array(
    ‘include_participants’ => $include_participants,
    ‘include_image_link’ => ‘1’
    ),
    );

    I hope this is helpful to anyone else having this issue!

    I just did this by adding this to my functions.php

    add_action( ‘pre_get_posts’, ‘my_change_sort_order’);
    function my_change_sort_order($query){
    if(is_post_type_archive($CUSTOM-POST-TYPE)):
    //Set the order ASC or DESC
    $query->set( ‘order’, ‘ASC’ );
    //Set the orderby
    $query->set( ‘orderby’, ‘title’ );
    endif;
    };

    Where CUSTOM-POST-TYPE is your custom post type

    I’m getting somewhere on this. I found a changelog from January of 2016 to the API call for group images:

    01.25.16
    Group_profiles and group_profile_from_id: We have added a new optional parameter called “include_image_link” to the group_profiles and group_profile_from_id API Services which will default to “false”. If you are expecting to be able to pull group images from these API services, you will need to update your calls to include this new parameter and change the value to “true”. While some church partners rely on returning the group images through the API others do not. This change ensures the API services stay efficient while continuing to provide access to the group image for those who want it.

    I did a test API call with “&include_image_link=true” at the end of the URL: https://mychurch.ccbchurch.com/api.php?srv=group_profile_from_id&id=230&include_image_link=true

    With this addition, I am now able to get the image, but I still need to figure out where to include this in the plugin. Any help would be appreciated.

    Thanks!

    Did you ever figure this out? I am having the same issue.

    The .png image works great for me, thanks @tameroski

    I’m still working on this site, but here is a link to an example of the responsive signature field using the code above.

    Thank you so much @dtldesign

    For anyone else looking for a solution in the mean time, here’s the javascript I used to make it fully responsive based on the window width. I put in an if statement to make the signature have a max width of 950px.

    My Javascript coding is weak, so there may be a better way, but this is what I came up with:

    <script src="http://code.jquery.com/jquery-1.7.js" type="text/javascript"></script><script>
    $(window).resize(function() { var canvas = document.getElementsByTagName('canvas')[0];
    canvas.width  = (.950*$(window).width()*.85);
    canvas.height = (.2*$(window).width()*.85);
    if (canvas.width > 950) {
    canvas.width = "950";
    canvas.height = "200";
    }
    });
    $(window).trigger('resize');
    </script>

    I don’t know if you are still having this problem, but I found your thread when I was having a similar problem and found a solution by setting my variable to be all lowercase.

    Try:
    [ScaredyCutBox trackingid=”helloworld”]

    I’m using it this on a responsive site and can’t get the signature box to scale correctly with the browser window. I would like the width of the signature box to be 100% of the window.

    When I try adding 100% width as a CSS attribute to the canvas, the canvas appears to be correctly, but when I try and write on it, the position of my cursor and the of the signature don’t match up.

    #wpcf7_signature_signature{
    	border:solid 1px #d8d8d8;
    	border-radius:5px;
    	width: 100%;
    }

    What am I missing?

    I see that I can set a fixed width to the signature box. For example, if I enter [signature* signature 950x] the canvas is 950px wide, but is there a way that I can specify a width as a percentage, either within CF7 or custom CSS?

    Thanks for any help.

    Tim

    I had to change a little CSS, but it works like a charm!
    http://acaaz.org/staff/

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)