News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom Form Mod

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

Previous topic - Next topic

4b11l

LHVWB,

The mod has been working excellently for me. No problems with the multi text issue above.

One thing I want to add is that I have the forms available to regular members so they can submit it, however the board it submits to is off limits to them. So, instead of having them reach a "this board is off limits or either missing to you" error message; how about redirecting them to the main form page? Or something similar.

Thanks.

Nathaniel

Yeah, that's one of the issues which I realised very early on and then did nothing about, because I really wanted to release it. ;)

I will try to introduce and option/setting for each form that allows gives you these options.
Redirect to Board Index.
Redirect to Board. (The current setting)
Redirect to Thread.

I might also think about having it do special stuff if the user has got the "Redirect to Topic" option checked.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

4b11l

Quote from: LHVWB on July 29, 2008, 10:24:12 PM
Yeah, that's one of the issues which I realised very early on and then did nothing about, because I really wanted to release it. ;)

I will try to introduce and option/setting for each form that allows gives you these options.
Redirect to Board Index.
Redirect to Board. (The current setting)
Redirect to Thread.

I might also think about having it do special stuff if the user has got the "Redirect to Topic" option checked.


Very nice. Will keep the thread tag until then. Thanks for the hard work.

Nathaniel

#143
Okay, I am going to do another version, within the next week.

It will include these changes (at the moment):
Fix the Multiline textbox error, when its required.
Add a form option/setting for redirection to topic, board and maybe home.
Maybe have a submit form to certain thread option?
Add checkboxes for stuff like 'parse_bbc' and 'required', maybe a separate box for the size variable?
Investigate adding html and bbc to fields, to stop it if necessary.
Fix the ' in the comments for the template function.
Try to make things clearer.
Fix html errors from templates (Pointed out by Gryphoune).
Make a fix for the bbc tags parsed by the parsecode() function on output post creation/modification in the admin area (Found by cleanfiles).
Choosing of post images.
Redirecting the 'New Topic' button to a certain form.
Count posts for user stats?

I am open to any other suggestions or reports of bugs. I know that it took a while for some of you, to fully understand this mod, so I will try to make it clearer and include more documentation.

Also, if I have left anything out of the list that you think is needed then please point it out, and I will look into it.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Gryphoune

Hey, LHVWB. I had the theme author look at the display problem I was having with the form splitting into 2 columns. He said there are some HTML errors in the display template that is causing this. He also said you will be able to see the code errors at this link.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fekguild.com%2FForums%2Findex.php%3Faction%3Dform%3Bid%3D1#result [nofollow]

Nathaniel

Hmm, okay. Thank you Gryphoune, I will have a look over the errors and fix them in the next version. I have added it to the list. :)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Lady Night Owl

Quote from: LHVWB on July 30, 2008, 02:27:41 AM
Okay, I am going to do another version, within the next week.

It will include these changes (at the moment):
Fix the Multiline textbox error, when its required.
Add a form option/setting for redirection to topic, board and maybe home.
Maybe have a submit form to certain thread option?
Add checkboxes for stuff like 'parse_bbc' and 'required', maybe a separate box for the size variable?
Investigate adding html and bbc to fields, to stop it if necessary.
Fix the ' in the comments for the template function.
Try to make things clearer.
Fix html errors from templates (Pointed out by Gryphoune).

I am open to any other suggestions or reports of bugs. I know that it took a while for some of you, to fully understand this mod, so I will try to make it clearer and include more documentation.

Also, if I have left anything out of the list that you think is needed then please point it out, and I will look into it.

Cool! :) Thank you for working so hard on this mod.

When you work on the documentation, will you be including the difference between 'string, integer, and float' for those of us that have limited knowledge of that sort of thing?
Running SMF 2.0.1

Nathaniel

@Lady Night Owl,
Definetly, I can understand that to some people, much of my documentation might be meaningless giberish. So I will try to improve it by adding explanations of the different types. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Enders

I found a bug... when you make a field "required" you must input an integer to pass that section. How can i fix this?

Nathaniel

Quote from: Enders on July 31, 2008, 01:23:34 AM
I found a bug... when you make a field "required" you must input an integer to pass that section. How can i fix this?

This was already pointed out by Lady Night Owl, it will be fixed in the next version of this mod, I will try to get it out as soon as possible, probably sometime this weekend. It will consist mostly of bug-fixes such as that.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Sudhakar Arjunan

Hi LHVMB,

Have you started the improved version you are speaking earlier .

Anytime frame you could complete it, since i planned to use it after doing upgrades of this mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Nathaniel

I haven't started the actual programming of the new version yet, but I have finished listing the improvements that need to be made and the errors which need to be fixed, which can take a while. I prefer to spend a little bit of time thinking about what an update needs, so that I don't have to update the mod as much.

In terms of a time frame, I basically have a lot of time on weekends and then during the middle of the week, so I will either have a new version finished by the end of the weekend or during the middle of next week (I work on Aus EST Time ;) ). I don't like giving strict timeframes because more things which need fixing may appear, even given that I am usually pretty quick.

To cut things short, hopefully a few days, maybe a week. I would have to run into some serious problems (or get some real homework) for it to take longer, although the field validation stuff is kind of really annoying. ;)

Sorry for being vague, but life is vague! ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

tlknowles

Request...

My forms are long...and detailed.
It would be very helpful for the user to have it broken into sections.

How might I add an additional option to the current list that would display a simple horizontal rule to use as an indicator that this is a new section? (PS...I'm not a coder.)

Type  Text Box (String)
                  Large (Multiline) Text Box
                  Check Box
                  Selection Box
                  Text Box (Float)
                  Text Box (Integer)
                  Horizontal Rule

And, another request/question for LHVWB...
Is there a chance that your next version will also include the option for radio buttons where the end user can select one or more as the answer to a given question?


TIA
tlknowles
Current Installation
SMF 1.1.4 >> SMF 1.1.5 ( Default Theme )

Nathaniel

@tlknowles,
Okay, a Horizontal Rule type shouldn't be very difficult to add. But I'm still not sure about the radio buttons, to me radio buttons only allow you to chose one option, making them the same as select boxes. You are talking about a type which is essentially a series of checkboxes, which could probably be done by using a whole lot of check boxes, the only difference is how the output is presented.

I could investigate making a type, which has multiple checkboxes, where you put a list of strings/options into the setting for the field and then if the user checks that checkbox, the string will be added to a list of values, probably separated by commas.

That is the only use which I can think of for the type which you are describing, if you can explain it differently, preferably with an example then I will look at it.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

tlknowles

#154
@LHVWB...
Yeah...you're correct. ( I'm asleep. )
Radio buttons are not what I was wanting.
Checkboxes with the ability for the end user to select more than one as an answer to the given questoins.

For instance.
Question :: What are your favorite colors?
Options ( Check all that apply ) ::
Red
Green
Brown
Yellow
White

Results :: end user can select one or ( up to ) all.



Anyways...
On the horizontal rule thingy...
Is there any chance you could give me a hint on how I might add it now?

EDITED TO ADD ::
Even a blank line would serve the same purpose.
But...a  horizontal rule would be pretty definative.
Current Installation
SMF 1.1.4 >> SMF 1.1.5 ( Default Theme )

tk2012

Sorry for the question here, but having a little problem.

I installed with no errors.  (v2.0 b3.1)

I went in and first created the Name and supporting text of what the Form Box is called... no problem
I created the form fields for the custom form... no problem
I filled out the info for the form itself including the body of the post with the {} listed... PROBLEM!

When I hit SAVE, the page acts like it is going to go to another page or add something, but instead it ends up erasing all the info in the body of the form, but keeps the info above the body in the fields.  I've tried this four times.  How do you get what you've created to SAVE? 

I'm not getting any errors in the error log for this at all.

Nathaniel

@tlknowles,
I haven't properly investigated this yet, I will just add it to the mod.

@tk2012,
I am not sure why that is happening, I have installed this on clean version of SMF 2 Beta and it worked fine, I am going to have a look into the SMF 2 Beta Version of this mod, because I think that it has some errors.

Note to all:
I am happy to announce that I have began working on the next version of this mod, hopefully it will be finished in a few days, its going to include an overhall of the field adding and editing system so that the information you can add to each type is better defined, ie using checkboxes for parse_bbc and required settings, as well as textboxes for selectbox options and etc. The storage of information in the database will remain the same, but the type vars box will be split into different sections.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Axodious

#157
Would you be able to add a feature as to where to direct the person after they submit?

I am trying to make an application form for my World of Warcraft guild that posts to a hidden forum that only moderators can see. When they submit the forum it tries to forward them to it and it can't.

Perhaps forward them to a page which says "Thank you for submitting." Then forward them back to the main forum ~3 seconds later, kind of like posting.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Nathaniel

Quote from: axodious on August 01, 2008, 04:09:33 PM
Would you be able to add a feature as to where to direct the person after they submit?

I am trying to make an application form for my World of Warcraft guild that posts to a hidden forum that only moderators can see. When they submit the forum it tries to forward them to it and it can't.

Perhaps forward them to a page which says "Thank you for submitting." Then forward them back to the main forum ~3 seconds later, kind of like posting.

This is one of the things which I have almost finished adding to the next version, there will be options to redirect to the home page, to a specific thread, to a specific board and to a specific message. I may also add it for a specific url but I will have to think about that.... ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Axodious

"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Advertisement: