| Post |
|
New Member | Haddok posts 1 12:31 pm April 23, 2009
| |
|
|
Hi, my question might look awkward but I need to be able to insert a form in one of those text blocks which are available as widgets… I've tried all sorts of syntax like <!--cforms--> and all the variations. None worked...
I'm very unexpert at php.
Would some body give me some understandable guidance…
Thanks a lot
JC
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:11 am April 24, 2009
| |
|
|
Please see the Help page for how to insert cforms using widgets, a direct PHP call or the TinyMCE editor interface.
|
|
|
|
|
Guest
| jond 7:48 pm May 16, 2009
| |
|
|
I am having the same problem. I have tried all the syntax suggested to insert the form into a widget but no joy.
Im a little confused about what the help page says about this. Can i insert a form directly into the "text" widget, or do i need to alter the php code in a file somewhere?
Any help hugely appreciated
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:00 am May 17, 2009
| |
|
|
you can insert cforms 3 ways:
- via TinyMCE post/page editor
- via PHP code (anywhere in your PHP templates/files)
- via your WP Widget / Sidebar control
|
|
|
|
|
Guest
| jond 4:36 pm May 17, 2009
| |
|
|
ok, i understand this. Please clarify if this should work:
I go to widgets> text> insert: <!--cforms name="form name"--> > save changes
I am doing this but the form is not showing. I have used the other syntax too. I am using the right form name. any ideas?
Thanks
|
|
|
Admin
| Oliver Munich, Germany posts 6237 9:05 pm May 18, 2009
| |
|
|
the syntax looks correct, but I don't understand what you're doing there.
cforms only support the default Wordpress widget management (drag & drop).
|
|
|
|
|
Member | rebecca posts 8 8:47 am August 31, 2009
| |
|
|
Hi, I think I know what you're trying to do – use cForms in a sidebar widget, but not the cForms sidebar widget so that you can have text around it. Is that right?
I've managed to do that by using the php syntax: <?php insert_cform('1'); ?>
inside a PHP widget, rather than the cForms widget.
The widget is called php-code-widget, you should be able to find it here: http://wordpress.org/extend/pl…..de-widget/
Hopefully that helps!
|
|
|
Guest
| Kevin 5:52 pm December 23, 2009
| |
|
|
Thank goodness someone was able to answer… this question is plastered all over the forums as well as the WP forums with no other answers.
The instructions on this are way too vague.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:09 pm December 23, 2009
| |
|
|
the documentation clearly spells out the different ways to insert a form.
obviously this does require some level of PHP knowledge.
the general WP widget feature is fully supported.
|
|
|
|
|
Guest
| David Burch 3:32 am January 15, 2012
| |
|
|
Oliver said:
the documentation clearly spells out the different ways to insert a form.
obviously this does require some level of PHP knowledge.
the general WP widget feature is fully supported.
The documentation clearly spells out how to insert a form into a page or post using the "code way" or the the TinyMCE Button. It is also quite clear on how to do it in PHP code. However, the documentation is not at all clear on how to insert a form into a text widget. Neither <!–cforms name="Your default form"–> nor <!–cforms–> work in a text widget which is what the OP asked (not unreasonable as a variety of other plugins do work that way. The answer, which is not in the documentation, is that there is a "cforms" widget which you simply drag over to the sidebar location of your choice. It has a pull-down where you choose the form.
|
|