cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Generate dyn Form without tag and Submit button

Add a New Topic Reply to Post
Post

navyseal - Guest

1:29 pm - June 30, 2008

1

Please replace the ??? with your data!

  • Your URL: http://???
  • The browser used: Firefox
  • cforms version: 8.5.1
  • Your Wordpress version: 2.5

[desc]:

HI

at first i want to ask if it is allowed to develop plguins that uses / requires your plugin (the tag "cforms contact form by delicious:days " would be always visible) ?

Im trying to develop a plugin to extend the user profile with custom fields. therefore i would like to use the cforms plugin for the input forms, but i only need the genereated forms without the <form> tag and the submit button. are there any functions that generate only these forms?


maybe you can help me with this special problem - sorry for my bad english :D


Oliver - Admin

8:53 pm - June 30, 2008

posts 3909

2

While you can of course create a plugin that requires cforms, it is not permissible to

  • repackage cforms
  • use partial code or in whole as a basis for a new plugin
  • change and redistribute cforms

Concerning your problem, cforms seems to be complete overkill, I'm sure you'll find a much lighter way to do it.

navyseal - Guest

12:53 am - July 1, 2008

3

hi

thx for your fast answer! maybe you could give me a small hint what you mean with "lighter" :D my goal is to build a very flexible plugin ... maybe you could help me to find a way to generate only the raw input forms - but coding such a function is more like reinventing the wheel - maybe there are functions that i could use :)


thx for your time and help!

Oliver - Admin

6:20 am - July 1, 2008

posts 3909

4

but coding such a function is more like reinventing the wheel -

not necessarily, since you need to make it work efficiently and effectively for your purposes. there is no "easy" way of creating a good plugin, it's hard work.


navyseal - Guest

7:53 am - July 1, 2008

5

i agree with you, there is no easy way to create a plugin, but i think its not necessary to recode parts like creating forms (over web ui) when there are already plugins like cforms.

if there is currently no way to generate only the form parts i will code this part in a static way, hoping that maybe one of the following cform versions will support/contain such a function :)


navyseal - Guest

2:37 pm - July 5, 2008

6

hey ho! :)

do you provide a function that returns dynamic generated forms as "text" or something else - so it would be possible to use the function in filters.


schöne grüße :)

Oliver - Admin

2:43 pm - July 5, 2008

posts 3909

7

HTML is text, too, right ;-)

Check your online Help! page for insert_cform() this function call returns the complete form HTML.

Grüße zurück :)

navyseal - Guest

5:29 pm - July 6, 2008

8

Hi :)

i know this function but i need it for the dyn. generated forms (insert_custom_cform) but this function prints the form instantly - so i could use the filter only at the end of all filters.

Oliver - Admin

6:44 pm - July 6, 2008

posts 3909

9

True. I guess you could experiment/get it done with PHP output buffering.

navyseal - Guest

11:33 pm - July 8, 2008

10

thx! i will try this buffer :)

hm i searched in the help to preselect something in the dropdown list. is it actually possible to preselect something ?

Oliver - Admin

6:49 am - July 9, 2008

posts 3909

11

preselection of any item is not supported yet.

Reply to Post


Reply to Topic: Generate dyn Form without tag and Submit button
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Topic Reply:

Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
3 + 3
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

Search