• Resolved kassinopious

    (@kassinopious)


    Hi.

    Wonder if you can help? We are running the pro version of wpComplete and would like to add the page completion buttons in to a contents table on the website, such that, a user can click down the list to complete lessons in bulk. At the moment, if I copy the html code from a button created on a page and paste it in to a table, the button will change to “complete” briefly when clicked, but then resets itself back to the incomplete status. I think the problem is that I’ve only copied the html code and I’m assuming there’s some PHP code needed to make the button work correctly and interact with the lesson for that user.

    Can you advise how I can address this, or would it be possible to create a shortcode for the button specific to the lesson, along the lines of [wpcomplete_button id=post_649] for example, so that the button is linked to the user and to the lesson in question.

    Further request, would it be possible to add an “in progress” status to the buttons, so students can mark lessons as “not started”, “in progress” and “complete”?

    Hope you can help.
    Thanks,
    Dan

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey Dan!

    The buttons are definitely tied to the current page/post, so just copying the button html, might not work (as you noted), because, yes there is some PHP that ties it to the correct post ID.

    The only way I could see making this work with our current version, would be to loop through the posts in PHP and include the shortcode for the button. But this seems way too complicated. I really like your idea of being able to pass in the post id with the shortcode though. Keep an eye out for that in an update shortly.

    Your progress request is a little trickier though. I like the idea, but I don’t think we could easily add this. But it’s definitely something we’d consider down the line.

    Feel free to email us with any other requests or questions! That’s definitely the best way to get a quick response from us.

    Dan! (@kassinopious)

    We just released an update adding id support to completion button shortcodes. You can now do something like [wpc_button id="14"] and it’ll specifically show the button for the post/page with an ID of 14.

    Be sure to update your plugin to version 1.4.4 for this new functionality.

    Thread Starter kassinopious

    (@kassinopious)

    Oh you beauty! I’m going to update now and give it a go! I’ll let you know how I get on!

    Thanks so much for your help!!

    Cheers,
    Dan

    Thread Starter kassinopious

    (@kassinopious)

    Sorry didn’t get back to you before Zack, the update worked beautifully! Thanks so much for helping out there!

    Superb plug-in!

    Cheers,
    Dan

    Thanks Dan! (@kassinopious)

    An update on this… starting in version 2.0.0, using the id attribute ([wpc_button id="14"]) will not longer work.

    We changed the attribute to: [wpc_button post="14"]

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Adding buttons to course list’ is closed to new replies.