Custom Form Mod

Started by live627, July 09, 2008, 10:24:44 PM

Previous topic - Next topic

Vyache

Hello,

I was wondering if it were possible to create a form that after it is filled out, the information is private, not posted in a thread, but posted in the admin panel as a table of users who entered the data for the fields and the answers to the fields. This information should be generated on request of the admin...

Is this possible ?

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Arantor

You could have it posted into a thread in a private admin only board I think... anything else is likely a rewrite of the mod.
Holder of controversial views, all of which my own.


Vyache

Quote from: Arantor on April 28, 2010, 05:24:53 AM
You could have it posted into a thread in a private admin only board I think... anything else is likely a rewrite of the mod.

Oh okay.
Thank you for your reply.

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Vyache

Hello,

Is it possible to route the information submitted in the form to the database so that it will not be posted on any topic, but just to be stored, so that it can be taken out ?

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Arantor

Not without a significant overhaul, I believe.
Holder of controversial views, all of which my own.


Jaymjaym

Hello folks, I was wondering if it was possible to have a {date} variable, or equivalent?

For example, a topic title such as "5/2/10 - Blue", generated from {date} - {favorite_colour}

I'm not particularly worried if that date format is used or not, but just hoping to be able to add the date to it without requiring user input. 

recived

Tell me how to make checkbox? Inserted into the "Extra Type Parameters" test1, test2, test3 but the form does not display them.

SOC Caesar

Works great thanks.  8)

SMF 2.0RC3

SmackDaddy

I have this installed on SMF 2.0 RC3.....I can enter form fields and other information.....but when I put the Form Output in and "Save", nothing that I typed into the "Form Output" block saves.  I have tested the form by going to "http://somethinghere.com/index.php?action=form;id=1", I can fill out the forms, and submit.  It posts a topic in the appropriate forum, but obviously since the Form Output never saves, the topic ends up blank.

I CHMOD'd the CustomForm.template.php and CustomForm.php files to 755 to check to see if that fixed it, but it didn't.... (just was trying something).......

Where should I look for this issue?  What can I do? 

Also, is there any way to auto-create a Yes/No POLL after the form is submitted? 

Thanks in advance for any replies.

C4G-TK

#1169
Quote from: SmackDaddy on May 06, 2010, 08:40:20 PM
I have this installed on SMF 2.0 RC3.....I can enter form fields and other information.....but when I put the Form Output in and "Save", nothing that I typed into the "Form Output" block saves.  I have tested the form by going to "http://somethinghere.com/index.php?action=form;id=1", I can fill out the forms, and submit.  It posts a topic in the appropriate forum, but obviously since the Form Output never says, the topic ends up blank.

I CHMOD'd the CustomForm.template.php and CustomForm.php files to 755 to check to see if that fixed it, but it didn't.... (just was trying something).......

Where should I look for this issue?  What can I do? 

Also, is there any way to auto-create a Yes/No POLL after the form is submitted? 

Thanks in advance for any replies.

Are you using the WYSIWYG as your default editor?  If you are, be sure to hit the red A to change it back to the non-WYSIWYG editor before hitting save.  Try that.  And yes, you will need to do this each time you go in and make a form if you are defaulted with the WYSIWYG.  I reported this problem many many pages ago and have restated this every time someone brings it up.  I don't think it has been corrected, yet, if this is the problem you are experiencing.  Give me a second and I will post the link to where it is discussed here.


Originally brought up posts #294 & 295
Then again in posts #509-510
Then again in posts #746 + 748-752 + 754

-img removed-

SmackDaddy

Quote from: C4G-TK on May 06, 2010, 08:44:22 PM
Quote from: SmackDaddy on May 06, 2010, 08:40:20 PM
I have this installed on SMF 2.0 RC3.....I can enter form fields and other information.....but when I put the Form Output in and "Save", nothing that I typed into the "Form Output" block saves.  I have tested the form by going to "http://somethinghere.com/index.php?action=form;id=1", I can fill out the forms, and submit.  It posts a topic in the appropriate forum, but obviously since the Form Output never says, the topic ends up blank.

I CHMOD'd the CustomForm.template.php and CustomForm.php files to 755 to check to see if that fixed it, but it didn't.... (just was trying something).......

Where should I look for this issue?  What can I do? 

Also, is there any way to auto-create a Yes/No POLL after the form is submitted? 

Thanks in advance for any replies.

Are you using the WYSIWYG as your default editor?  If you are, be sure to hit the red A to change it back to the non-WYSIWYG editor before hitting save.  Try that.  And yes, you will need to do this each time you go in and make a form if you are defaulted with the WYSIWYG.  I reported this problem many many pages ago and have restated this every time someone brings it up.  I don't think it has been corrected, yet, if this is the problem you are experiencing.  Give me a second and I will post the link to where it is discussed here.


Originally brought up posts #294 & 295
Then again in posts #509-510
Then again in posts #746 + 748-752 + 754

Thank you.....I skipped some pages and missed those........(doing some skimming as there was A LOT to read - *facepalm*)

C4G-TK

It seems to be brought up again every 200 posts or so.. lol
I only know about the bug because I brought it up under my other name before I started another forum.

Hope it helps you until it gets fixed.  I know how frustrating it can be to work on your form and then BOOM it isn't there any longer whenyou save and have to do it over and over again. :o

-img removed-

Vyache

Hello,

I mentioned my idea before, a few posts earlier, but I just want to reroute my form data into the sql database to be printed in a table of all the submissions of that particular form.

I'm trying to figure out how to redirect the information sent from the form by changing the variable $context['post_url'] to a url pointing to a php file that I created.

According to the customForm.template.php file the fields are sent as post method, so I was wondering if within my php I can create a table based on that info. However, the table columns (fields) would have to be passed as an array, I believe I have to use $_REQUEST['name']; The reason I think it should be an array is because I don't want to go back to that file to edit it each time I change to a different form.

This way it creates a table of w/e number of fields it needs.

I'm stuck at the part where how to stop the post from making a thread on the actual form and parsing the array of fields to create a actual table in the sql database.

Any idea's on how to do this ?

I'd appreciate any help,
thank you!


AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

rienholt

Hello,
Thanks for the great mod guys it works really well for what I need. I just ran into a little snag when I tried to do a bit of customization work o the forum.
Whenever I turn on "Enable customized message icons:" I get this error when trying to create a new form or edit an old one:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
File: <root>/forum/Sources/ModSettings.php
Line: 627


I am using 1.1.11 and the error even with no other mods installed. If anyone has any ideas or fixes they would greatly appreciated.

fyndler

#1174
My problem or maybe i made it wrong, got it like this for example

Title     Text     Type     Modify
name    Your name    Large (Multiline) Text Box

But when i submit it, it only says for exmaple 55 years in the forum post, the question isent there :/


Second problem seems to have is that all my post i made is not counted anymore :/ Set to 0 for some reason, made a fresh new smf forum made 2 forum rules post, installed the mods, my profile says 0 posts :/ Any ideas ?

*edit*

btw is there a way to make so the name off the topic is the posters username ?

AK_CCM

#1175
Hello,

at first much thanks to the programmers - the mod is very useful.

It would be great for a future version, if users could group fields for a more user-friendly input mask. For example I use a form wich could be used by people to inform other users about fungus poisoning. I would like to group the location data of the toadstools such as country, federal state, regency, district, city or area and ecology. The next group could be the data about the fungi such as poisonous mushroom and the collected alleged edible fungus.

Another idea is to add a selection "post" to the option "Submit Redirect" so users could be redirected to the new topic, wich was generated by the data of the form.

At last a question: Does anyone know how to change a field into a required field?

After I changed the language from german to english a click of the icon with the question mark results help:
QuoteYou can also enter 'required' in the Extra Type Parameters field which will force the user to enter valid data for this field before the form  will submit.

AK_CCM

I found a little bug: If I want to edit the text of a form field and the content contains quote signs:

Quote<b>Country:</b><br>e.g. "Germany" oder shortly "D"

...the text after the first quote sign is cutted off:

Quote<b>Country:</b><br>e.g. "

AK_CCM

It seems that CFM ignores the activated post moderation of the boards in wich the new topics will be saved.

How could I use the post moderation? Because it's important that we could do a sanity and privacy check of the transmitted data before the topics go online.

AK_CCM

Quote from: AK_CCM on June 06, 2010, 05:33:36 PM
How could I use the post moderation?

Sorry, I haven't read the post from Garou before.
After I did the changes in the ./Sources/CustomForms.php the post moderation works fine. :)

bgroins

I was thinking about making a custom form that outputs the result to action=search2 instead of a forum post.  Any idea on how I could achieve that?


Advertisement: