I recently used CC to connect to a form and am really impressed with how it works so far. I've got a few problems that I cannot clear up, however, even after a few days of doing nothing but troubleshooting my site.
This form collects basic information about people - things like name, e-mail and hometown. There are also two fields (textareas) intended for long fields of text and a file upload for a picture. In ChronoConnectivity, I have it set up so that this data is instantly added to a table which displays everything neatly.
The biggest problem I've run into is how the images behave when they are added into the table. The file upload field is named "file_8" and I can call the picture using {file_8}. Unfortunately, if someone completes the form without uploading an image, Internet Explorer insists on trying to open an image anyway, leaving me with a big box and a red x. This is unacceptable, so I would like to learn how I can either not display the image link if the field is empty or have these empty fields automatically go to a default placeholder image. Requiring an image is not an option.
I really thought it wouldn't be so hard. I tried to run if file_exists on it, but it seems to either see the fields all as empty or all full, depending on how I access the information. I've tried several ways to get it to differentiate between an empty field and a field with a filename in it, but no luck so far.
I also have a concern about the image size. I installed the image resize plugin that I found here on the forums, but it seems to be somewhat out of date and brought up errors in IE. I commented some code out of the plugin and the images do resize, but it's still throwing up some errors. I can discuss that later, as it's not my main concern right now. For now, I have a width set to the image in the table, which seems to be working.
Finally, I'm struggling to get the textarea fields the way I need them to be. I had been struggling with a 250 character limit which I couldn't seem to overcome, but discovered that was a setting that I could edit in the database, via phpMyAdmin. Now the problem lies in the fact that the text's formatting seems to get stripped. I don't need fancy fonts, sizes, colors of any of that. I don't need to edit it from the front end. What I do need it to do, however, is retain its line breaks and paragraph tags. It hasn't been doing that, and when it's displayed in the table, the neat paragraphs that I submitted get thrown into one big lump of unreadable text.
I've been working with CF and CC for two and a half straight days, trying to solve these problems. I'm not the best with PHP, but I'm trying. Hopefully someone can offer me some answers or advice- it would be very much appreciated! Thanks!!!
This form collects basic information about people - things like name, e-mail and hometown. There are also two fields (textareas) intended for long fields of text and a file upload for a picture. In ChronoConnectivity, I have it set up so that this data is instantly added to a table which displays everything neatly.
The biggest problem I've run into is how the images behave when they are added into the table. The file upload field is named "file_8" and I can call the picture using {file_8}. Unfortunately, if someone completes the form without uploading an image, Internet Explorer insists on trying to open an image anyway, leaving me with a big box and a red x. This is unacceptable, so I would like to learn how I can either not display the image link if the field is empty or have these empty fields automatically go to a default placeholder image. Requiring an image is not an option.
I really thought it wouldn't be so hard. I tried to run if file_exists on it, but it seems to either see the fields all as empty or all full, depending on how I access the information. I've tried several ways to get it to differentiate between an empty field and a field with a filename in it, but no luck so far.
I also have a concern about the image size. I installed the image resize plugin that I found here on the forums, but it seems to be somewhat out of date and brought up errors in IE. I commented some code out of the plugin and the images do resize, but it's still throwing up some errors. I can discuss that later, as it's not my main concern right now. For now, I have a width set to the image in the table, which seems to be working.
Finally, I'm struggling to get the textarea fields the way I need them to be. I had been struggling with a 250 character limit which I couldn't seem to overcome, but discovered that was a setting that I could edit in the database, via phpMyAdmin. Now the problem lies in the fact that the text's formatting seems to get stripped. I don't need fancy fonts, sizes, colors of any of that. I don't need to edit it from the front end. What I do need it to do, however, is retain its line breaks and paragraph tags. It hasn't been doing that, and when it's displayed in the table, the neat paragraphs that I submitted get thrown into one big lump of unreadable text.
I've been working with CF and CC for two and a half straight days, trying to solve these problems. I'm not the best with PHP, but I'm trying. Hopefully someone can offer me some answers or advice- it would be very much appreciated! Thanks!!!