WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
[Plugin: Contact Form 7 to Database Extension] how to calculate only for the user logged (7 posts)

  1. corraini
    Member
    Posted 2 years ago #

    I want to display data in the database only for the user logged
    Thank you for your help

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 2 years ago #

    Do you mean only display data to users who are logged in or only display data that a logged-in user submitted?

  3. simbian
    Member
    Posted 2 years ago #

    Hello Michael, i join this thread and ask a similar question, maybe is a more complex scenario.

    It will be possible with your plugin to limit the number of submissions of a CF7 form per day for each logged-in user? (eg. each one logged-in user could do 2 submissions per day)

    When the limit is reached if the logged in user visit the page where is placed the contact form if he tries to submit again, a warning message will be displayed/popup telling him that can't do more submissions for today.

    Non logged in users will not be considered as i will limit the access to the WordPress page where is the form with another plugin (eg. User Access Manager).

    Thanks in advice
    Simone

  4. corraini
    Member
    Posted 2 years ago #

    Yes,only display data that a logged-in user submitted.
    I wish to make statistics of Golf for registered users on my site: Drive to right, to left, on the fairways ...
    Thank for your help

  5. Michael Simpson
    Member
    Plugin Author

    Posted 2 years ago #

    @simbian
    No way to limit the number of entries. If you are concerned about span bots doing automated form submissions, added a CAPTCHA field to the form might help.

  6. Michael Simpson
    Member
    Plugin Author

    Posted 2 years ago #

    @corraini
    If a user was logged in when he submitted a form, then his user id was captured in the DB and you can filter on that.

    Example:
    [cfdb-table form="your-form" filter="Submitted Login=$user_login"]

    More info: Filter Variable Substitution

  7. corraini
    Member
    Posted 1 year ago #

    I would like create one button in order to delete from the database, the user-logged's data, in order to start again the statistics of this user (statitics of his golf'games) How can I do it ? Can you help me? Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic