• Resolved equeone

    (@equeone)


    Hi there, awesome plugin saved me a huge headache πŸ™‚

    I was wondering 1 thing, i am i able to have 2 different settings for my stickylist? What i mean is that i need all logged in users to see all the submitted entires on one page, but i also want each user to only see his or her own entires on their private page. Can this be done?

    best regards

    Martin T

    https://ww.wp.xz.cn/plugins/gravity-forms-sticky-list/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author fried_eggz

    (@fried_eggz)

    Hello. Glad that my plugin helped you. Headaches suck! πŸ™‚

    You question can be easily solved by including the list (that should contain only the private entries) in the page template.

    Put this code in the template file where you want the private list to appear:

    <?php
    $current_user = wp_get_current_user();
    echo do_shortcode( "[stickylist id='1' user='" . $current_user->ID . "']");
    ?>

    Note that you need to change id='1' in the code above to the ID of you form.

    Thread Starter equeone

    (@equeone)

    Dude u are the man!!! thanks a lot for your fast reply and once again thanks for a great addon!!

    Thread Starter equeone

    (@equeone)

    Hey mate, i Just tried it.. and you it really does show, but there is some code showing when i view the stickylist..

    <?php
    $current_user = wp_get_current_user();
    echo do_shortcode( ”

    Then the list is shown

    “);
    ?>

    and it ends like this.. am i doing something wrong?

    Plugin Author fried_eggz

    (@fried_eggz)

    You need to put this in the template file (the php file) that you use to display the private page. Edit the file page.php in your theme and put the code there, right after <?php the_content();? >

    Thread Starter equeone

    (@equeone)

    Okay thanks πŸ™‚ IΒ΄ll give it a shot..

    Thread Starter equeone

    (@equeone)

    Sorry man i still suck at this.. Okay so i added the code in Page.php after <?php the_content();? > where do i find the php file that displays the pages?

    Plugin Author fried_eggz

    (@fried_eggz)

    That depends on your theme. When a page is displayed a template is used to render the content. I don’t know what theme you are using or what type of page you want the “private” list to appear in.

    If you could provide some more info regarding this I’m sure we can get it to work.

    Thread Starter equeone

    (@equeone)

    Ahh okay im learning something new everyday.. well i use the theme called “pure and simple” i was thinking that i wanted to add a standart resticted page that only logged in users can accress from the side menu. Called something like “Own actions”(Egne handlinger) or something like that, and when the user enters he can see all the actions his done. So they can keep track instead of having to view all others who are signed up aswell..

    once again thanks a lot for your help πŸ™‚

    Plugin Author fried_eggz

    (@fried_eggz)

    Ok, to simplify things have have updated the shortcode to accept a new parameter: showto

    The showto parameter has three possible settings: “creator”, “loggedin” and “everyone”

    So, in the public page that should display all entries you can use:

    [stickylist id="1" showto="loggedin"]

    and in the private page (egne handlinger) you can use:

    [stickylist id="1" showto="creator"]

    Put this shorecode in the normal content editor, not in the php page.

    Grab the new version (1.2.7) and see if it works for you.

    Again, note that you need to change the form ID in the code above to the ID of your form.

    Thread Starter equeone

    (@equeone)

    Holy!! wow thats really nice of you mate..
    Gonna try it out now.. Thanks a bunch!!

    Plugin Author fried_eggz

    (@fried_eggz)

    Inga problem. Lycka till!

    Thread Starter equeone

    (@equeone)

    Okay i added the shortcode on both sites now. There is only my bosses entries, so its hard to tell if it works, but his entries show up on the list when im logged in as admin. Should they do that?

    Plugin Author fried_eggz

    (@fried_eggz)

    Yes, if you are logged is as admin or editor you will see the entries. Try logging out, or make a test account.

    Thread Starter equeone

    (@equeone)

    yeah i will, thanks a lot.. πŸ™‚

    Thread Starter equeone

    (@equeone)

    Works like a charm πŸ™‚ Was just wondering is there a reason that Date is not shown in the list eventho i choose show in list in GF? Im using the one where you click the date..

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Multiple stickylist settings?’ is closed to new replies.