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

Nathaniel

@A.SK,
Its an error with SMF 2 RC1, you can avoid it by making a backup of your ''itacumen_smf20beta3_cf_%' tables, deleting them from your SMF database, installing this mod and then restoring the backup of those tables so that you have the data (you will have to delete the new tables that the mod adds when it installs). Its a very annoying error, but its the fault of SMF 2 RC1 not 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.

Garou

Yep I went tracking it down the other day to see if there was a better work around, http://dev.simplemachines.org/mantis/view.php?id=2963

Hopefully it gets fixed in the next version of SMF.

ifwmonster

*Feature Request*
Can you add a hidden field option to the list of input types?

That would be amazing.  I keep finding all sorts of new uses for this mod.

*Feature Request*
Would there also be a way to make it so that it can automagically O:) create a poll with the admin options?

I am using 1.1.8, don't have any plans to switch to 2.*

I look forward to more great things from you guys.

Garou

Define hidden. I'm not sure what you are trying to achieve.


ifwmonster

Like a way in inject the username of the user filling out the form into it automatically.

I see that in the template, there is a hidden field with the session ID.  I was playing around with that part last night, but for some reason I can't for the life of me figure out how to template it.

Spent a few hours searching for in-depth docs on it last night, to no avail.  This thread is good though.

Also, I understand that the original coder for this is busy, so I can wait patiently for any upgrades, but I know that may not always be possible.

You guys did some really good work on it.

zagrom

Is there anyway to get this running on 1.1.8?

if not, then oh well  XD

Garou

The hidden part you see is part of the submit function that posts the form to the forums, it isn't something that gets displayed. Getting the form to pull grab variables from the user DB for registered users is something that has been talked about in the past but I don't know for sure where we are at on that.

Right now LHVWB is planning to rewrite this entire mod to make it more user friendly and he plans to implement many of the requested features from this thread but I'm not sure which ones. In the meantime I'm working on keeping the existing code up to date with the current versions of SMF and adding some features as I can.

One thing I am working on right now is re-doing the documentation with the hopes that it will be easier to understand. I was trying to get a new feature or two in there but its taken me longer then I thought so Ill probably just release with the new documentation in the next day or so.

As far as template's go, when I finally figured it out I posted one here around page 14/15. That might help you see what can be changed a little better.  If you understand basic html you can do some interesting things with the templates. Just try to stay away from the code that the form actually needs, you can break it quite easily as well.

Zagrom, this mod does run on 1.1.8 as of the last update on the download page,  CustomFormMod_v1.3_SMF1.1.x.zip, it should install fine on most versions of the 1.1.x series. If you are running into problems with installing let me know where its failing and what other mods you have on the site already as its most likely a mod conflict. Most mod conflicts can usually be overcome easily by manually installing the code in those files.

Garou

#467
Mod has been updated, it includes the fix for the bug with check boxes in IE and new documentation. If there is still something that doesn't make sense, let me know.

Oh I also added an example_form to the custom forms template that brings attention to areas of the the template that can be changed. Essentially everywhere you see "Example of something..." is a place where you can edit stuff and not have to worry to much about messing things up.

ifwmonster

I will checking this out on my text box within the next 48 hours.  Thank you.

Also, I found another bug.  Some of my forums require the use of the $ symbol, but if it's used, it makes it into a variable and will not display the dollar amount.

Would be great, but I have that will work until another update without rush.  Time produces quality ;-)

Garou

#469
What would it be required for? Where are you trying to enter it at? You should be able to use it in the text area just fine, the post output, and in your users answers.

You cant use it in the title area but try
$
as its the HTML character code equivalent.



Ugh Ok Ive tested this and confirmed it. Its an issue in html as the form as displayed for the user to fill out is in html. I'm sure there is a tag that can be used to get around this but I don't know it off hand. I have to head to work but Ill do more research to find either a fix or work around when I get home tonight.

Garou

Ok I think I got it, hope this works for you.

Title: dollar_sign
Text: Please enter the your cash on hand. <span style="float:right">$</span>
Type: Text Box (Float)
Extra Type Parameters:

Form Output: Cash on hand ${dollar_sign}

In the form you will see...
Please enter your cash on hand.              $[              ]

And lets say the user enters 15.27

Then in the forum post it would display as...
Cash on hand  $15.27

That's the best work around I can come up with.

GinaD

OK, I have installed this and added a form but it's not showing on the Custom Forms page or in the forum I used for it?  Where did I go wrong?  Thanks in advance for any help!
*Hugs,
Gina

Garou

The first thing that comes to mind is did you set a valid Board ID in the form? That's generally the reason nothing shows up on the form page. Also it will only show up for groups that you set the permissions for in the forms settings page but as admin you should be able to see it there at the very least.

As for it showing in the forum, nothing should show other then the actual posts from the form after its been filled out.

The other thing that comes to mind, did you try to modify the CustomForm.template.php. If something is wrong in there it might cause issues as well.

Tinny

#473
Hi ... I would like to say a HUGE thank you for mod

*post edited as I fixed the problem I was having .... my fault lol*

pinoypetfinder

hi. does anyone here have a version for 1.1.7? cuz i'm still on it....
we have a classified ad board and i think this will be perfect for it.

qubbah

when i sett the board can be see only for mod, after filling up the form how can i sett the user not go directly to the board. Because i sett the board is limited to them. I make this because their information is secret for another members.

How can i redirect them after fill up the forum index?

qubbah

can user can uplod their image in form?

Garou

pinoypetfinder, Try using the 1.1.8 version. It should work just fine on 1.1.7

qubbah, redirecting to somewhere other then the board that is posted to, is something that is planed in the future. For now, no you cant redirect someplace else.

Also the mod does not support attachments at this time. Its being looked into but right now I cant make any promises. The best I can recommend is that you have your users host their image someplace else and then they can enter the link in form.

To display thier link as an image...
use the parse_bbc parameter in the Extra Type Parameters

Title: image_link
Text: Enter the url for your image here.
Type: Text Box (String)
Extra Type Parameters: parse_bbc

Then in your forum output wherever you put
[img]{image_link}[/img]
The users image will actually display.

jsanglier

ah, my question answered before I ask! hehe

Yes, it would be nice to redirect somewhere else - a simple thank you page.

I am using this for my members to submit articles to the staff, and also things like messages to the team and so on. These are boards only viewable by the staff, so the members being redirected there, and getting an error is a bit of a shame.

I wait with baited breath!

pinoypetfinder

thanks Garou, will try to install it and let you know what happens :)

Advertisement: