Jump to content
Sign in to follow this  
jeomiland

How use cform in PlatformPro box area?

Recommended Posts

jeomiland

Hi I wish to have a "newsletter signup" form in one of the standard boxes the show up in Platform Pro. Added the cform code to the box in box edit mode but when I view the page it's not there. Looking at the source HTML code indicates the is indeed in the box, but is not being interpreted as a form, just an HTML comment line. How do ya put a form in a Pagelines box??? View the page at http://lifeoncue.com/ the form is at the bottom of the page for your viewing pleasure (but may be deleted soon). Thanks in advance for your insights. JE

Share this post


Link to post
Share on other sites
catrina

Where did you get the code for the cform? It might be possible to get a shortcode for it instead of HTML so that it could work in the box.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
jeomiland

Hi Catrina Do you know cforms? Don't know where to start in my answer... Cforms is a plugin that allows one to use their interface to create forms (with database tracking and lots of cool stull). Installing the plugin results in a cforms dropdown added at the bottom of the left column in Dashboard - also there is a cforms icon in Visual Editor. Clicking that icon pops up a dialog box that lets ya choose one of your designed forms and pastes it into your post/page/etc. What gets pasted is something like this: which gets interpreted correctly in a Post or Page and the actual HTML form is displayed. However, in PlatformPro BOXES, it is not interpreted and what you see instead is simply the HTML comment line as above. Also, kindly point me to a good tutorial about "shortcuts" as that's new to me. I know I can grab the HTML code of the form by having it on a dummy post/page and view source and copy code. However, this would be Rube Goldberg as would not be able to simply go back into cform form editor, make changes and have new form show - instead would have to view source and copy/paste whenever a form change is made... Thanks for your clarification JOHN ERIK

Share this post


Link to post
Share on other sites
Kate

Hi John, Here's some information on shortcodes: http://codex.wordpress.org/Shortcode_API However, I don't believe CForms supports shortcodes (for some reason). Not 100% sure. But, check out this post: http://www.deliciousdays.com/cforms-forum/troubleshooting/cforms-shortcode/ It gives you the PHP code that will call the forms individually. If you were to add a plugin that allows you to execute PHP code in pages and posts (for instance ExecPHP), then you could use the code shared above.

Share this post


Link to post
Share on other sites
jeomiland
Hi Kate Just getting back to this. Have installed "Executable PHP widget" plugin and have this in the box:
[insert_cform('2');]
and still does not work. More suggestions please?

Share this post


Link to post
Share on other sites
kastelic
I can see in your sourcecode you've got: [code][/code] which will not work. Can you change it to: [code][/code] and remove the shortcode. To test the php plugin use this: [code][/code]

Share this post


Link to post
Share on other sites
jeomiland
Hi kastelic That's curious. What browser/platform are you on? I'm on Mac Firefox and see your second line, not first Also changed 3rd to your suggestion and still no php printout of "what" Again, the problem seems to be within the BOXES feature in platformPro Appreciate any insights on how to get a simple newsletter signup form into a pagelines box

Share this post


Link to post
Share on other sites
Simon
Open sections/boxes/section.boxes.php with a good text editor. Line 220: [code]
post_content); ?>', '', $bpost->ID);?>
[/code]

Share this post


Link to post
Share on other sites
jeomiland
Excellent! Thank you. But now I have the Facebook Share stuff showing up in those small boxes. How can one selectively turn off in boxes? If I turn it off at a higher level, it would not be available on regular posts, since the boxes are special post types? Thanks

Share this post


Link to post
Share on other sites
catrina
The Facebook icons can be hidden using CSS. Please add the following to Custom Code > Custom CSS: [code]div.fboxtext #fb_share_1 {display: none;}[/code]

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×