News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Form Mod

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

Previous topic - Next topic

PAPABEAR

So the new update is up? I have v1.1.5 and a couple custom themes and mods. Will this install easily with the package manager? What edited will I have to do on my custom themes if any (imagine that...if any...lol)?

4b11l

^
I don't think the new one is out yet.

Nathaniel

@PAPABEAR,
The new version is not up, the mod is still at version 1.1, the new version will be 1.2. This mod should install perfectly with the package manager, as should all mods unless there are clashes.

You shouldn't have to do any edits for your custom themes as this mod doesn't edit any of the important template files, it just adds its own ('CustomForm.template.php'), if you don't like the look of the form list or form submit pages for your particular theme, then you can copy that file from the default into your custom theme and make some edits to it. I can help you do that if you need help.

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.

Shepx83

#163
Im sorry if this was asked, I searched and saw that really detailed post on how to setup the forms.

The question I have is whats the command to use in the subject to use the posters forum name because we're using this for a application form and we want it to show $Username [Recruitment]. Thanks for your time and like to say this is a great mod.

Edit: Another issue: When I choose to make the field required. It has the * on the form, and when you input anything, it clear the fields out and makes the * red and says fields required when I have data put into the fields.

Nathaniel

@Shepx83,

I will see about adding some special variables that you can access from inside the form, like username, maybe user id and etc. That should be easy, and very useful I think. ;)

In terms of the required field issue, there are some know bugs with the multi line for the SMF 1.1.5 version of this mod. Which field types where you having issues with?

Also, which version of SMF you running?

If you have found a new issue then I would definetly like to work it out and fix it in the next version of this mod which I am working on.
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.

Shepx83

Appericate the fast response and would be greatful if you could come up with those options. :)

I only tested the required permission out on the regular Textarea box (not the large). I am using SMF 1.1.5.

Nathaniel

@Shepx83
Okay, if you find any errors with any other field types then please tell me. I will be doing a full check of all of them, but I am always happy for other people to point out the errors.

I will definetly put in the user information vars, it will be in the format {userinfo[name]} or something like that. I will have to do some work on it.

Thank you for reporting the error,
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.

Shepx83

Thanks! :)

It was the Text Box (string) to be exact , for the required error.

PAPABEAR

Quote from: LHVWB on August 02, 2008, 12:04:57 AM
@PAPABEAR,
The new version is not up, the mod is still at version 1.1, the new version will be 1.2. This mod should install perfectly with the package manager, as should all mods unless there are clashes.

You shouldn't have to do any edits for your custom themes as this mod doesn't edit any of the important template files, it just adds its own ('CustomForm.template.php'), if you don't like the look of the form list or form submit pages for your particular theme, then you can copy that file from the default into your custom theme and make some edits to it. I can help you do that if you need help.



Thank you. I tried installing via Package Manager and came up with:

Execute Modification     ./Sources/ModSettings.php     Test failed

Enders

Can you make a field where you can attach files? This will be useful for reporting bugs with screenshot and such.

Shepx83

I also had 1 more question. Is it possible to have it post to multiple forums? I tried listing 2 board ids, seperated by commas, but it only keeps the first when I save.

Again, using this for our Applicant system and we make a discussion by copying the persons post to our guild forums for members to discuss. So by having it post in 2 places would be great in our case. Just wondering of that was possible, if not, Would I beable to request for that to be thrown in on the next patch?

Also do you have a projected time period on the next release? That username feature is going to be great.  :)

Again, thanks for this awesome mod.

http://www.drakenrising.com/ [nofollow]

bros

I just installed this mod on SMF 2.0 Beta 3.1 Public.

http://thecastlehall.com/boards/index.php?action=form

No forms are showing up.

However, I have two forms set up already.

Could it be because I have over 50 membergroups?

Nathaniel

@PAPABEAR
If that is the only error, then you should be able to install it and then manually fix the error, I can do it if you install the mod and then post your ModSettings.php file.

@Enders,
That has already been suggested and I have thought about it, its easier for me to do that sort of stuff now, but it will require some extra work.

@Shepx83,
At the moment that is not possible, I will however have a think about it. If I also implement the posting to a specific topic then I will also do multiple boards.

@bros,
The number of membergroups should have no effect on the working of this mod, although it will slow down how fast you can physically assign permissions to those groups. ;) Make sure that you have valid fields for the form as well as valid settings.

Note to All:
This new update is becoming quite huge, so I definetly won't have it finished and tested by the end of this weekend, I hope to finished it sometime during the week.
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.

bros

Quote from: LHVWB on August 02, 2008, 07:05:11 PM
@PAPABEAR
If that is the only error, then you should be able to install it and then manually fix the error, I can do it if you install the mod and then post your ModSettings.php file.

@Enders,
That has already been suggested and I have thought about it, its easier for me to do that sort of stuff now, but it will require some extra work.

@Shepx83,
At the moment that is not possible, I will however have a think about it. If I also implement the posting to a specific topic then I will also do multiple boards.

@bros,
The number of membergroups should have no effect on the working of this mod, although it will slow down how fast you can physically assign permissions to those groups. ;) Make sure that you have valid fields for the form as well as valid settings.

Note to All:
This new update is becoming quite huge, so I definetly won't have it finished and tested by the end of this weekend, I hope to finished it sometime during the week.

I have a test one

Details:
Title: Test
Board ID: 4
Custom Template Function is not filled out
I selected A for a bunch of membergroups. It counts secondary Membergroups, correct?
Subject: Hey
Form Output: :)

Nathaniel

@bros,
The permissions system will allow anyone with any of the membergroups that you have given access to, to use the form. It doesn't matter if the group that gives them access is secondary or primary.

Make sure that you have added some valid fields, otherwise it will be ignored by the system.
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.

bros

Quote from: LHVWB on August 02, 2008, 07:33:36 PM
@bros,
The permissions system will allow anyone with any of the membergroups that you have given access to, to use the form. It doesn't matter if the group that gives them access is secondary or primary.

Make sure that you have added some valid fields, otherwise it will be ignored by the system.

So I just read the help thing next to Form Output. I put in {name}
{Time}
Hi


I click save and I goes back to the mod settings page. How would I make the output be something like
Name:
Group Name:
Number of People in Group:
Abbreviation
Forum Link:

Nathaniel

#176
You could easily do that, but I think that you want to access variables from SMF itself. Such as username and etc. I am ggoing to add that to the next version of the mod.

Output would look like:
QuoteName: {name}
Group Name: {groupname}
Number of People in Group: {numpeople}
Abbreviation
Forum Link: {link}

Edit: Progress with the next version of the mod is coming along badly, I am trying to get some work done on it. But I don't have much free time at the moment, so you will have to wait a while longer for it. Also I want to make sure that I do a proper and preferably bug-free version of this mod.

Thank you,
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.

PAPABEAR

I will wait for your update. :)

tlknowles

Quote from: Shepx83 on August 02, 2008, 12:42:50 AM
Im sorry if this was asked, I searched and saw that really detailed post on how to setup the forms.

The question I have is whats the command to use in the subject to use the posters forum name because we're using this for a application form and we want it to show $Username [Recruitment]. Thanks for your time and like to say this is a great mod.

Edit: Another issue: When I choose to make the field required. It has the * on the form, and when you input anything, it clear the fields out and makes the * red and says fields required when I have data put into the fields.

I think I understand what you're trying to do...maybe.
And, if I understand it correctly...it's very easy.

Create a field.
Lets say you create a field called :: new_name

Then...in the Subject box...you want to call the "new_name" field like so ::
Subject   [ {new_name} ]

You can call any created field to the Subject line. Just remember to enclose the field ID in curly brackets. { }
Current Installation
SMF 1.1.4 >> SMF 1.1.5 ( Default Theme )

Nathaniel

@tlknowles,
Shepx83 is actually trying to access information from the $user_info variable that is defined in SMF, so that he can use some data for each member, that the member can't enter into the field.
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.

Advertisement: