Add your first post button visible only till posting their first post Answered

Post author
Heather B

Hi all, I am following along this tutorial by Julian Galluzzo about allowing users to post. https://www.loom.com/share/1dff9c7d911b43b5a7d35f842a20f314

On my site's welcome page, I would like to add a 'Add your first post' button that takes you to a create post page similar to whats shown at around the 7:43 mark in the loom tutorial. However I only want this button to show when the user has not posted anything (has no cms posts linked to them). After they have posted, I want that button to be hidden and for another button that simply says 'Add a post' to be visible instead.

This feature isn't make or break, but if its a straightforward fix/script/attribute/html embed to add to the buttons, it would be a nice way to improve the experience and engagement.

Thanks!

Comments

3 comments

  • Comment author
    Julian Galluzzo

    Hey Heather!

    That is definitely possible, but would require writing a custom script.

    Basically, you would need the script to:

    1. Add something to the member JSON when they fill out the post form once
    2. Have the script check the JSON on load, and then hide that first post button if it shows they posted

    Even if you cant write code (most of us here cant), you should be able to get it done using our AI bot! https://rey.memberstack.com/

    0
  • Comment author
    Heather B

    I got a bit lost with how to add something to the member JSON or what to add, but Rey suggested I add a custom field for 'Hasposted' which is more my speed 😅. I've linked the form to a make scenario so it is set to 'true' whenever someone posts and the script checks the custom field. Its a bit hacky but will do. Thank you!

    0
  • Comment author
    Julian Galluzzo

    No problem!! 🥳

    0

Please sign in to leave a comment.