ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Looking for drip content solution

April 10, 2012 2:16pm

Subscribe [2]
  • #31 / Apr 13, 2012 11:36pm

    Sarah Bray

    30 posts

    They are the same for all members.

  • #32 / Apr 14, 2012 2:41pm

    glenndavisgroup

    436 posts

    Hi Sarah,

    Can you PM me your contact info so I can take a look at how you have things setup?

    Mike

  • #33 / Apr 15, 2012 11:32am

    glenndavisgroup

    436 posts

    Hi Sarah,

    Try the page now it should all be working. For some reason the {member_id} variable wasn’t getting initialized in the query tag and it was breaking the query. I changed the code in your “updates” template to the following:

    {exp:member:custom_profile_data}
    <?php
    $joinDt = Date("m/d/Y", mktime(0, 0, 0, Date("m",{join_date}), Date("d",{join_date}), Date("Y",{join_date})));
    $currDt = Date("m/d/Y", mktime(0, 0, 0, Date("m",time()), Date("d",time()), Date("Y",time())));
    $start_ts = strtotime($joinDt);
    $end_ts = strtotime($currDt);
    $diff = $end_ts - $start_ts;
    ?>
    
    {embed="group-tour/drip-updates" days_joined="<?php echo round($diff / 86400); ?>"}
    
    {/exp:member:custom_profile_data}

    Now it all works like how it should. Let me know if you have any questions.

    Thank you,

    Mike

  • #34 / Apr 16, 2012 11:26am

    Sarah Bray

    30 posts

    Wow, Mike! I can’t tell you how much I appreciate it. THANK YOU!!!!

  • #35 / Apr 18, 2012 1:09pm

    Sarah Bray

    30 posts

    This is working really well. The only problem is that the categories no longer work (i.e. when I add /category/the_category, it no longer only shows that category’s entries). Is there a special way of displaying categories when you’re using a query to pull in your entries?

  • #36 / Apr 20, 2012 12:08pm

    glenndavisgroup

    436 posts

    Hi Sarah,

    Take a look at the category fix and let me know if you have any questions.

    Thank you,

    Mike

  • #37 / Apr 20, 2012 2:36pm

    Sarah Bray

    30 posts

    Thanks Mike! Perfect-o!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases