Support » Plugin: Contact Form DB » [Plugin: Contact Form 7 to Database Extension] Show image and link in same cfdb-html block

  • I am trying to retrieve file link as well as an image from the database using the following code.

    [cfdb-html form="Contact form 1" show="your-title,your-description,file-945,file-580"
    limit="10" orderby="Submitted desc" <strong>filelinks="link"</strong>]
    
    Title:       ${your-title}
    Logo:        ${file-580}
    Description: ${your-description}
    Download:    ${file-945}
    
    [/cfdb-html]

    I need the file-580 to be an “img” and file-945 to be a “link”. I really hope this is a simple oversight on my part. Everything I tried so far breaks the shortcode.

    Chris

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

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

    (@msimpson)

    Try it with filelinks=”url” and explicitly put in the HTML IMG and A tag

    [cfdb-html form="Contact form 1" show="your-title,your-description,file-945,file-580" limit="10" orderby="Submitted desc" filelinks="url"]
    
    Title:       ${your-title}
    Logo:        <img src="${file-580}"/>
    Description: ${your-description}
    Download:    <a href="${file-945}">file</a>
    
    [/cfdb-html]
    Thread Starter ccowell

    (@ccowell)

    Man I am running on fumes. Thanks.

    How and where is the actual file saved? My files are not getting stored on the server (only got mailed)?

    Thread Starter ccowell

    (@ccowell)

    Hi frank,

    I did not write the plugin but having been playing around with it off and on for the past few weeks.

    The file is actually saved to your database. You should be able to view everything in the admin area.

    Go to Contact, then Database.
    Next Select a Form (this is the form you created in Contact Form 7 and use in your test case.)
    The database table should automatically reload. 🙂

    I hope that helps,

    Happy New Years!!!

    Hello ccowell!

    I know what you mean, nevertheless, I only see the title of the file upload/attachment but not the actual upload it self. How can I make the uploaded files getting stored on the server instead of just sending it by mail?

    Best regards and happy new year!

    Thread Starter ccowell

    (@ccowell)

    Double-check your quota in your test contact form, your WP Settings and php.ini. Also check the allowable file extensions in General Settings.

    I hope that helps.

    To bad, I cant get it to work. And I really…really would like to see the files on my server.

    However, I could not find php.ini file, what could I do with(in) this specific file?

    Thread Starter ccowell

    (@ccowell)

    Can you post your code a screen shot of your test database? This will hopefully expedite the solution.

    Im not sure which code you mean (and from where), nevertheless I found out that contact form 7 and the database extender are not able to save and show the uploaded attachements, just the the titles. Many more people faced the same problems as I have researched on this forum.

    Hereby a screenshot of the non clickable uploads:
    [IMG]http://i43.tinypic.com/eg3ic9.png[/IMG]

    Furthermore, the uploads are not keeping stored within the upload map of CF7.

    Thread Starter ccowell

    (@ccowell)

    It’s definitely not linking. Can you also post the CF7 shortcode that generated your table shown in your tinypic?

    Simple as this
    [cfdb-table form="Test formulier"]

    However I also tried the HTML, no problem, however the actual files are not getting stored on the server, they are deleted after a few sec and get send by mail. So the mail problem is that CF7 or the extender does not save the files on the server and make them accessible.

    Html:

    [cfdb-html form="Test formulier" show="your-name,Upload" limit="10" orderby="Submitted desc" filelinks="url"]
    
    His/her name:       ${your-name}
    Download:    <a href="http://myurl.nl/wp-content/uploads/wpcf7_uploads/${Upload}">file</a>
    
    [/cfdb-html]

    And this is the form itself (some Dutch):

    <p>Uw naam (verplicht)<br />
        [text* your-name] </p>
    
    <p>Uw email (verplicht)<br />
        [email* your-email] </p>
    
    <p>Onderwerp<br />
        [text your-subject] </p>
    
    <p>Uw bericht<br />
        [textarea your-message] </p>
    
    [file* upload]
    
    <p>[submit "Verzenden"]</p>
    Thread Starter ccowell

    (@ccowell)

    Ok, your code works perfectly for me. What version of WP are you using and are you using Multisite?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Show image and link in same cfdb-html block’ is closed to new replies.