Contact Form DB
[resolved] [Plugin: Contact Form 7 to Database Extension] CFDB-HTML Shortcode Issues (7 posts)

  1. pmagony
    Posted 5 years ago #

    Hi Michael,

    I upgraded to 1.8 and attempted to start using the new shortcode for CFDB-HTML but I'm not having any luck. My page stops rendering where the code is executed in the body.

    Here's my code:

    [cfdb-html form="Written Testimonial Form" show="name,testimonial,condition" orderby="Submitted desc"]
    <div class="testimonial">
    <p>-- ${name} (${condition})</p>

    It basically crashes the loop. Any ideas? Are any of the attributes required, like LIMIT? I'm assuming if you want a full dump you leave limit out.

    One more bug/thing I'd like to point out... when viewing the "Database" page in the admin area, the records are not showing. It's showing me there are 4 entries in the db, but nothing below it.


  2. Michael Simpson
    Plugin Author

    Posted 5 years ago #

    Is your version of PHP less than 5.2?

    You shouldn't have to limit. I've seen this issue on someone else's site but I haven't definitively tracked it down.

  3. pmagony
    Posted 5 years ago #

    I'm not sure what transpired from the day I posted this issue, but its now resolved.

    I did not make any changes to the site or upgrade PHP.

    Ill chock it off to a cache issue!

    Thanks (Resolved)

  4. Michael Simpson
    Plugin Author

    Posted 5 years ago #

    Someone else had reported a similar issue and I put in a fix (in I think in 1.8.2) where I thought the code that loops through the result might get hung up but I wasn't sure if it could happen. If you see it again please let me know.

  5. pmagony
    Posted 5 years ago #

    Will do. Quick question, any way to stripslashes on output? Or should I handle this on the insert?

  6. Michael Simpson
    Plugin Author

    Posted 5 years ago #

    There isn't a way to modify/transform a value. But it should be not injecting slashes (like \') if that is what you mean. Submitted values go through a stripslashes call before begin saved to the DB.

  7. pmagony
    Posted 5 years ago #

    I'm surprised the contact form 7 isn't already handling this! yes, that's exactly what I mean...

    "It's" enters in the db as it\s and is consequently outputted with the slash upon performing cfdb-html.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form DB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic