cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Inserting cforms in a widget text
April 23, 2009
12:31 pm
Guest

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 lotSmile

JC

April 24, 2009
7:11 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Please see the Help page for how to insert cforms using widgets, a direct PHP call or the TinyMCE editor interface.

May 16, 2009
7:48 pm
jond
Guest

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

May 17, 2009
10:00 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

you can insert cforms 3 ways:

  1. via TinyMCE post/page editor
  2. via PHP code (anywhere in your PHP templates/files)
  3. via your WP Widget / Sidebar control
May 17, 2009
4:36 pm
jond
Guest

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

May 18, 2009
9:05 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

the syntax looks correct, but I don't understand what you're doing there.

cforms only support the default Wordpress widget management (drag & drop).

August 31, 2009
8:47 am
Guest

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/plugins/php-code-widget/

Hopefully that helps!

December 23, 2009
5:52 pm
Kevin
Guest

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.

December 23, 2009
6:09 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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.

January 15, 2012
3:32 am
David Burch
Guest

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.

March 22, 2013
10:39 am
Carloalberto Fornea
Guest

Hi guys,

I here find an anwser… but I also see a little misunderstanding here.

I think instead of talking about "the general WP widget feature is fully supported" it could be more useful saying something like

"just drag-n-drop the cforms widget – which comes with the plugin itself – inside the sidebar you want to put it"

I say this just because I was wondering about how insert a form in the sidebar and I was looking for some php code or shortcode and I don't even look at the widget list… near the sidebar boxes!

Thanks again guys

Bye

Carlo

April 1, 2014
10:50 am
Madeleine
Guest

After all this discussion I need nevertheless the integration of cforms via the snippet  into an text-widget, because

1. only the text widget supports multiple languages (using "WPML" plugin)
2. I need additional source code to open cforms in a layer (using "form lightbox" plugin)

So again the question to the cforms crew:
Why isn't it possible to integrate cforms via the snippet into a text widget?
Please make it work!

Or could you give me an alternative for my project?
On http://www.thermdrill.com the callback button in the header is linked to an own page with cforms. But I have to link the callback button to cforms in a layer using the plugin "form lightbox" (http://webdesign.myphpmaster.com/form-lightbox-demo/)
The "form lightbox" plugin works fine with the Youtube video for example, but is not interpreted :-/

For each proposal I am very grateful!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
44 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3741

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5341

Posts: 18708

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)