News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Form Mod

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

Previous topic - Next topic

Sudhakar Arjunan

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):


Hi LHVWB,

When will be the release, or kindly attach the latest version. Will help you in testing it also.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

jimvy

My users seem to be able to use forms I make fine if they are using firefox but they don't even see the forum in IE. Is this a known problem?

Nathaniel

Quote from: asudhakar on August 04, 2008, 12:26:04 AM
When will be the release, or kindly attach the latest version. Will help you in testing it also.

I don't really want to have to say this again, the next version of this mod will be ready when I manage to finish it, hopefully as soon as possible. I am not going to give people early copies of it, because it won't be completed. I want to work out all of the bugs and then test it myself, with a relatively small mod like this, there is no point in having people beta test it, because I can work out all of the bugs and have it working relatively quickly. I just need to find the time to do it! ;)

Thank you for offering but I don't need help with testing,
LHVWB

@jimvy,
That is not a known problem, I can't seem to reproduce it either. Are the people with ie having any other problems with your forums? Or just with the forms for this mod?
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 August 04, 2008, 01:55:55 AM
That is not a known problem, I can't seem to reproduce it either. Are the people with ie having any other problems with your forums? Or just with the forms for this mod?

I have problems with alignment in IE though. Such as the "* required field" normally seen above the Submit button in FF shows out of the table and to the right.

Nathaniel

Quote from: 4b11l on August 04, 2008, 03:15:35 AM
Quote from: LHVWB on August 04, 2008, 01:55:55 AM
That is not a known problem, I can't seem to reproduce it either. Are the people with ie having any other problems with your forums? Or just with the forms for this mod?

I have problems with alignment in IE though. Such as the "* required field" normally seen above the Submit button in FF shows out of the table and to the right.

I can imagine that happening, in fact I just noticed some of the issues you pointed out. I am not particularly good with templates but I will try to make sure that they work with IE and Firefox, I will also try to run them by another coder, who is better with templates to make sure that they work properly. ;)

Thank you for pointing that out,
LHVWB
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

There's a bug with the required setting I'm having, some (most) of the items I mark as required when filled out marks them that it wasn't.

Like I'll fill out a test form with a whole pile of required boxes and it will say half of them that I did fill in were marked that they weren't.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Nathaniel

@axodious,
Could you please post a link to the form where you are having the errors?

There are already known errors with this mod and required fields, are they just multiline textboxes that are having the issues, or are you having issues with other field 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.

Kylezz

You never stop making them! I love it and wont stop downloading Yers.
Why do i post alot? I am not a leecher.

tk2012

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.

YAY!!!   I got it to work after uninstalling it and installing it again. 

Suggestion..  Is it possible to get an actual TAB put in the top nav bar like where "my messages", "profile", and "help" is instead of directing the members to a link to view the forms?  It would make it easier members to access it.

Nathaniel

Quote from: tk2012 on August 05, 2008, 02:02:41 AM
YAY!!!   I got it to work after uninstalling it and installing it again. 

Suggestion..  Is it possible to get an actual TAB put in the top nav bar like where "my messages", "profile", and "help" is instead of directing the members to a link to view the forms?  It would make it easier members to access it.

The reason that I haven't done this, is because not everyone would necessarily want their members to access the list of forms, you can however add your own, I am more than happy to help you to that. In fact I might add a short tutorial to the download page.

If you have SMF 1.1.5: http://docs.simplemachines.org/index.php?topic=564.msg927#msg927.
If you have SMF 2 Beta, then have a look at the setupMenuContext() function at the end of the Subs.php file.
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.

tk2012

#190
That would be great.  I thought the permissions would counter people you don't want to view the form from seeing the tab.  Just like in the way regular members don't have an "Admin" tab show up.

-OR-

If people saw the tab, they wouldn't see the forms that they didn't have permission to use.

Nathaniel

Quote from: tk2012 on August 05, 2008, 02:13:49 AM
That would be great.  I thought the permissions would counter people you don't want to view the form from seeing the tab.  Just like in the way regular members don't have an "Admin" tab show up.

It could do that, and I will add that to the tutorial, but I was leaving the option for people to decide that they want to allow them to see the form list, but not have it really obvious. Anyway, I will add a thing to the download page, I may eventually add it to the mod itself with an option (probably in the next version, if I ever get around to 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.

cleanfiles

Hello all, I installed this mod and it works fine, I have one little prob though.

One form posts an image with a description.
In the out put i used this for the image

[img]{screen1}[/img]

When I hit save it changes it to this
[img]http://{screen1}[/img]

So at the moment I have to tell members not to add the "http://"  to the image links when submitting a form.

The same happens if I try to use
[url={url1}][img]http://image/image.gif[/img][/url]

It changes to this after saving
[url=http://{url1}][img]http://image/image.gif[/img][/url]

So at the moment I have to tell members not to add the "http://"  to  links when submitting a form.


Any help here would be very appreciated,
Thanks.

Nathaniel

@cleanfiles
Hmm, okay I can see where that issue is occurring. Thank you for reporting it. I have added it to the to do list for the next version of this mod. Unfortunately I can't post a simple fix now, because its actually a very annoying issue that I will have to work through for a while.

Thank you again for reporting it,
LHVWB
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.

cleanfiles

#194
No probs, I will be waiting keenly for the next version lol. Oh I'm running 1.1.5 smf too. :)

Edit.
Also for the next version.... A drop down box to choose the post icon would be a great addition.

SlowPaddle

A question.

I installed the Form Mod on my site no problem and set up a test form.

Then I checked the form using index.php?action=form and the list came up.

But when I click on it the page returned says this:

"An appropriate representation of the requested resource /index.php could not be found on this server."

The link the list page provides is /index.php?action=form;id=1

If I change the link to "/index.php?action=form&id=1" it works.

Any idea of the file that displays this link so I can modify it?

Thanks

SlowPaddle

Never mind about the last question. I found all the details in the two files "CustomForm.php" and CustomForm.template.php". I just changed the semi-colons to an ampersand and it works fine.

Is there a way to use one of the fields as the title for the post? And can the poster be redirected to the post so they can continue to add in information?

I'm trying to use this as part of a wilderness canoe trip report section. The poster would have to provide certain details about the trip (length, number of portages, etc.) and then after they submit it they would be redirected to the post in edit mode so they could provide the complete trip report.

Maybe I'm asking a bit much?


Nathaniel

Quote from: cleanfiles on August 05, 2008, 08:43:13 AM
Also for the next version.... A drop down box to choose the post icon would be a great addition.

Do you mean a box in the admin area, or a box for the users. I could do both, I will add it to the list.

@SlowPaddle,
I'll answer your questions in order.

Is there a way to use one of the fields as the title for the post?
Yes, in the admin section there is a subject field for every form. The subject field may contain {variables} just like the output field. So if you create a field called {subject}, you can allow the user to choose the subject by putting {subject} into the subject box on the admin edit form page.

And can the poster be redirected to the post so they can continue to add in information?
That is something which I am working on for the new version.

I am not sure about the error with & for you, it seems odd to me. Do you have any special url related settings, or any url related mods installed?
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.

cleanfiles

Quote from: LHVWB on August 05, 2008, 07:19:34 PM
Quote from: cleanfiles on August 05, 2008, 08:43:13 AM
Also for the next version.... A drop down box to choose the post icon would be a great addition.

Do you mean a box in the admin area, or a box for the users. I could do both, I will add it to the list.



For the user to choose the icon would be great, I was thinking also if it were possible the option to choose which board the form posts to would be good as well. Like a form could then be used as a template to post a structured post on a board chosen from say a dropdown list.

I had a bit of trouble finding the forms as well, i had to leave the semi colon on the link like this to reach the page
/index.php?action=form;

jimvy

Will this work for users to fill out the form but to have the form post into a board that they don't have permission to view? Like if I wanted to make a quiz for members to submit but I don't want to allow them to see each others answers, so it's posted in a board only I can see.

Advertisement: