• Hi,

    I am the happy user of both the free and paying CFDB modules. You did an amazing job with CFDB and I keep making discoveries when rereading the documentation. Congratulations. However I seem to be stuck here, and maybe you can help :

    I have a “product request” table, built using contact form 7, only accessible to registered users, that contain in a hidden field the user ID of the user submitting the form.
    I need to pull the user info based on this ID in order to display the info next to the product request, and was hoping to use a [cfdb-table] tag nested in a [cfdb-html] tag.

    I realize I have no idea how I can access the users database with CFDB. Is it only possible ?
    All users on my site are created using Ultimate Member, which creates regular WP users plus additional metadata.

    Thanks for your help,
    Thierry

    https://www.ads-software.com/plugins/contact-form-7-to-database-extension/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    I’m not entirely clear on what you want to do here.

    Any form submission captured by CFDB will record the user id in the Submitted Login field if the use is logged into the site when he submits the form. A shortcode can then contain filter="Submitted Login=$user_login" to display on the user’s submissions.

    You can nest shortcodes with certain restrictions.

    I don’t follow what you want to do with user metadata.

    Thread Starter theozefrench

    (@theozefrench)

    Hi Michael

    Sorry for not being clear enough.
    I already use the [hidden hidden-userid “user_id”] to obtain the ID of the user.
    I need to gather other informations for that user ID, like postal code, postal address, etc, and was hoping to be able to do it by nesting a [cfdb-table] within the [cfdb-html], something like
    [cfdb-table form=”????” filter=”UserID=${hidden-userid}”] but of course I do not have a form to refer to since I am trying to address the user base.
    Also, all my users were created using ultimate members.

    So I believe my question is : knowing the user ID, how do I display within a [cfdb-html] tag other informations from that user record ?

    Below is the code I currently use :
    _______________________________________
    [cfdb-html form=”Demande d’appareil” filter=”device-statut=A matcher” show=”Submitted,dest-prenom,dest-nom,hidden-username,hidden-useremail,hidden-userid,dest-parente,dest-age,dest-suivi,dest-suivi-autre,dest-commentaires,dest-photo1,dest-photo2,dest-photo3,device-statut,device-matcher-name,device-match-date,device-end-date” role=”Administrator” permissionmsg=”true” filelinks=”url”]
    <table border=”1″>
    <tbody>
    <tr>
    <td bgcolor=”#FFFFFF”>Date de demande : ${Submitted}
    Demandeur : ${hidden-username} – ${hidden-useremail} – ID# ${hidden-userid}
    Destinataire : ${dest-prenom} ${dest-nom} – Parenté : ${dest-parente} – Age : ${dest-age}
    photos : Photo 1Photo 2Photo 3
    Suivi : ${dest-suivi} ${dest-suivi-autre}
    Commentaires : ${dest-commentaires}</td>
    <td bgcolor=”#FFFFFF”><span style=”color: #ff0000;”>Statut : ${device-statut}</span>
    Maker : ${device-matcher-name}
    Date de matching : ${device-match-date}
    Date de livraison finale : ${device-end-date}</td>
    </tr>
    </tbody>
    </table>
    [/cfdb-html]

    Thanks for your time,
    Thierry

    Plugin Author Michael Simpson

    (@msimpson)

    I think you are saying this:

    You have a form with submissions from users. You want a user to come to a page and view:
    – Information from his form submission
    – Information that is meta-data saved in Ultimate Member Support about the user.

    The CFDB shortcodes retrieves only data from form submissions. It does not retrieve other data in WP. You would need to create your own shortcode to write code to pull information from Ultimate Member Support or other parts of WordPress and add that information into the CFDB information.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ultimate Member support’ is closed to new replies.