Help needed with incremental content plugin

Discussion in 'Setting-up protection' started by johnkunes, Jul 22, 2008.

  1. johnkunes

    johnkunes New Member

    Joined:
    Aug 22, 2006
    Messages:
    5
    The code provided with the plugin to display the incremental contact links:

    Code:
    <?php
    session_start();
    if ($_SESSION['_amember_links'])
    {
            echo "<ul>";
            foreach ($_SESSION['_amember_links'] as $link_id => $link)
            {
                    echo "<li><a href=\"".$link['link_url']."\">".$link['link_title']."</a></li>";
            }
            echo "</ul>";
    }
    ?>
    does not divide the content links into the groups. Is there code available that will allow me to put the links on my pages sorted into the groups?

    Thanks,
    John
  2. calisolllc

    calisolllc Member

    Joined:
    Feb 19, 2007
    Messages:
    194
    When did you get your plugin?
    I designed a mod with Alex to add groups to the Incremental Content plugin last month. Maye you have had your plugin for more than a few weeks and therefore have the old (non grouped version). If so send a support ticket and ask for the update.
    If you have the very latest version get back to me for help
  3. johnkunes

    johnkunes New Member

    Joined:
    Aug 22, 2006
    Messages:
    5
    Thanks Steve. I do have the latest version. The groups show up fine on ../plugins/protect/incremental_content/?product_id=1, but I want to be able to put them the groups and links on other pages as well. The code I pasted above was from the readme file that came with the plugin.

    -John
  4. calisolllc

    calisolllc Member

    Joined:
    Feb 19, 2007
    Messages:
    194
    John
    I AM a programmer but do NOT program in PHP (and have no intention of ever doing so) .

    I merely designed the plugin how it should work and suggested tables in the database and how it should format etc., so what I am about to tell you to possibly try might be like me trying to decipher chinese. And if I'm talking "shite" here, someone please jump in and correct me.

    I have a funny feeling that readme text file has not been changed from the "pre-mod" version of the plugin

    Have you tried looking at the template index.html in the template directory for the plugin for clues as to how to do it?

    Any PHP / smarty code experts out there feel free to tell John Im leading him up a blind alley if I am ! If nobody knows how to do it John then submit a ticket and ask Alex

    If you or anyone else works it out can you please post the solution back here as I would be interested in it also

Share This Page