Dripped Content

Discussion in 'Setting-up protection' started by behaviourneeds, Oct 19, 2012.

  1. behaviourneeds

    behaviourneeds Member

    Joined:
    Jan 26, 2010
    Messages:
    47
    I have the incremental contentent plugin and it works fine as long as I use real folders eg

    www.example.com/member/content/drippedcontent/week1/
    www.example.com/member/content/drippedcontent/week2/
    www.example.com/member/content/drippedcontent/week3/
    www.example.com/member/content/drippedcontent/week4/

    what I actually want to do is
    www.example.com/member/content/drippedcontent/display.php?display=week1

    However I cant seem to workout how to use dynamic urls using this plugin or if its not even possible?

    I am using amember v3.3

    Cheers
    Chris
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    have you used the incremental content in the php page?
    This will display available links:

    PHP:
    <?php
     
    function cmp($a$b)
    {
    if (
    $a['link_url'] == $b['link_url']) {
    return 
    0;
    }
    return (
    $a['link_url'] < $b['link_url']) ? -1;
    }
    if (
    $_SESSION['_amember_links'])
    {
    usort($_SESSION['_amember_links'],'cmp');
    foreach (
    $_SESSION['_amember_links'] as $link_id => $link)
    {
    $link['link_title']= str_replace("_"" "$link['link_title']);
    echo 
    "<li><a href=\"".$link['link_url']."\">".$link['link_title']."</a></li>";
    }
    }
     
    ?> 

    David

Share This Page