Recon
Forum Replies Created
-
Fantastic. Thanks for quick reply.
Reading your previous post again, I don’t think this problem is related to
wpautop
.I am looking to preserve line breaks within a field, not between different outputted fields. It looks like the relevant code starts on line 152 in ExportToHtmlTemplate.php. Is it possible to include this in a custom shortcode like the one above?
Actually, it wasn’t the
wpautop
option that fixed this problem with the[cfdb-html]
shortcode. I believe it was a separate fix. Hopefully the same fix for custom shortcodes isn’t too difficult to add.Thanks again!
Great, thanks Michael! That works great ??
I have one more question. When using the
[cfdb-html]
shortcode, fields containing line breaks were displayed correctly. This was fixed when you introduced thewpautop
option.With my own shortcode, this no longer works. I tried adding
wpautop="true"
andwpautop="false"
but neither worked. How can I re-enable this with my own shortcode?Thanks for the link. I think that I could figure out how to make a custom shortcode to display a value only if the value exists in the db, but how could I use this inside a regular [cfdb-html] shortcode?
Would I need to recreate the entire [cfdb-html] shortcode to achieve this? Using a shortcode within a shortcode wouldn’t work, right?
Do you have an idea as to when this will be available?
This is a great plugin and, for my needs, this is the only missing feature.
Thanks for all the help so far.
Forum: Plugins
In reply to: [Contact Form DB] Text Area FormattingFantastic. It works perfectly. Thanks ??
Forum: Plugins
In reply to: [Contact Form DB] Text Area FormattingAh, I see. Yes, I meant data in a field.
Changing “Show line breaks in submitted data table” to “true” only changes the linebreaks in the backend.
Thanks for looking into this.
Forum: Plugins
In reply to: [Contact Form DB] Text Area Formatting[cfdb-html wpautop="true" form="gunma-guide" filter="loc_category=Outdoors" show="loc_name,loc_category,loc_city,loc_latitude,loc_longitude,loc_website,loc_description" orderby="loc_city,loc_category,loc_name"] <h3>${loc_name}</h3> ${loc_city} (${loc_category}) ${loc_description} (<a href="https://maps.google.com/maps?q=${loc_latitude},${loc_longitude}+&z=15&iwloc=A">Map</a>) [/cfdb-html]
If you view the source, you can see that there should be a line break in the
${loc_description}
. I’m using WordPress 3.1.2.Forum: Plugins
In reply to: [Contact Form DB] Text Area FormattingIs this feature still in the development version?
I have just downloaded it again and I’m still unable to make this work. I have tried setting
wpautop
totrue
andfalse
. The line breaks appear correctly in the backend table view, but they disappear when I use the[cfdb-html]
shortcode.Sorry to bug you again but I have no idea why this isn’t working for me.
Forum: Plugins
In reply to: [Contact Form DB] Text Area FormattingNope, still no change with it set to “false”.
Forum: Plugins
In reply to: [Contact Form DB] Text Area FormattingI’ve installed v1.8.7 and have added
wpautop="true"
to the[cfdb-html]
shortcode, but line breaks in form data are still not being wrapped inp
orbr
tags. Am I missing something?Forum: Plugins
In reply to: [Contact Form DB] Escape charactersI’ve just found out that my host (Dreamhost) has magic_quotes_gpc OFF by default.
I also noticed that this function has now been deprecated.
Forum: Plugins
In reply to: [Contact Form DB] Escape charactersThey appear in the backend, too.
I have set up Contact Form 7 so that the data is emailed to me as well as added to the database. The backslashes do not appear in the emailed version but they are saved into the database.
Is it normal for the backslashes to appear in the backend, or should they not appear anywhere?
Forum: Plugins
In reply to: [Contact Form DB] Suppress Blank Lines When Using [cfdb-html]