ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Prompt registration page when posting comment

January 20, 2008 3:46am

Subscribe [2]
  • #1 / Jan 20, 2008 3:46am

    executivebrief

    17 posts

    How can I direct user to register when posting comment?

    The idea is:
    1.)  Show the comment form.
    2.) User fills up the comment form.
    3.) If user is logged out, they will be prompted to login or registration.
    4.) After they login, or registered, the original posted comment will be submitted.

  • #2 / Jan 20, 2008 7:51am

    Mark Bowen

    12637 posts

    Hiya,

    I think you will need to go about this in a slightly different way. As the person is not yet logged-in there wouldn’t be a way for the system to store the text (without some custom programming or clever work-around) and then allow you to log-in and then re-fill the comments form out for you again.

    Your best bet would be this :

    1 Show the existing comments.
    2 If person is not yet registered or logged-in then show a link that states they need to Register or Log-In before they can comment.
    3 User registers or logs-in using links provided and are then returned to the page they were just reading.
    4 User can now comment.

    That should hopefully get you to what you want. Slightly different but a lot easier than trying to remember the text they have entered somewhere and then re-inserting it to the comments form.

    Hope that helps.

    Best wishes,

    Mark

  • #3 / Jan 20, 2008 10:19am

    Robin Sowell

    13255 posts

    Mark’s right- it’s not going to work like that ‘out of the box’.  I’d say the best approach is to conditionally display a ‘you must log in’ message if they’re logged out- otherwise show the comment form.  That’s how I’d handle it.  To do it like you’re wanting to would take some custom work.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases