Advertisement:

Author Topic: Custom Form Mod  (Read 558806 times)

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #80 on: July 23, 2008, 02:44:32 AM »
@digit,
Okay, I have added it to the list and I will have a think about it. My only thoughts are about what the output would look like, it would have to put together the output like a list or something and its already possible to get similar functionality with a series of checkboxes. If you want to create a peusdo one then you could use the custom template function setting - I will try to document it better later today. Although if you can show me a good example then you might convince me. ;)

Doh!  That works for me!  If I can think of something more complicated, I'll certainly let you know!   8)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Offline 4b11l

  • Jr. Member
  • **
  • Posts: 355
Re: Custom Form Mod
« Reply #81 on: July 23, 2008, 02:45:55 AM »
^
Yes, that's how I have it setup. It's not showing properly and I just want to know if I'm entering the parameters right or what I'm doing wrong.


Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #82 on: July 23, 2008, 02:55:42 AM »
I did it like this... It's still unfinished.

It might also be nice to create a field that is just for txt or horizontal rulers.

Sigh, and what about radio buttons?

 :P


« Last Edit: July 23, 2008, 02:58:01 AM by digit »
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Offline 4b11l

  • Jr. Member
  • **
  • Posts: 355
Re: Custom Form Mod
« Reply #83 on: July 23, 2008, 03:00:24 AM »
^
Wouldn't that defeat the purpose? Like if they checked both, it would send you both answers right? Or is that the way you have to actually do it? Just curious. ;)
« Last Edit: July 23, 2008, 03:02:27 AM by 4b11l »

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #84 on: July 23, 2008, 03:03:25 AM »
Like I said, the form is unfinished. lol.    I own, a Camaro AND a Corvette, might make more sense. :)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Offline 4b11l

  • Jr. Member
  • **
  • Posts: 355
Re: Custom Form Mod
« Reply #85 on: July 23, 2008, 03:08:47 AM »
Like I said, the form is unfinished. lol.    I own, a Camaro AND a Corvette, might make more sense. :)

I see where you are getting it at.

I was under the impression that it would give you both options in the parameter to checkoff. Either checking off one or the other. After my 100th time reading through the documentation help button; I finally understood it! :D lol

It would have to be like:
Do you have a corvette? Check if yes.

Where checking it will output Yes. Not checking it would output No.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #86 on: July 23, 2008, 03:20:45 AM »
@4b11l,
I am glad that you understood it, if you need any more help then I am always happy to try to explain things better.

@digit,
Radio buttons aren't a bad idea, I will add them to the list, although yet again you could just use the 'selectbox' type and then create a custom template function which shows them differently. Because if you think about it and have a look at the current function (the first one in the 'CustomForms.template.php' file) and how it works, you can see that they are the same except for how they are displayed.
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.

Offline nopity4u

  • Semi-Newbie
  • *
  • Posts: 93
Re: Custom Form Mod
« Reply #87 on: July 23, 2008, 03:37:56 AM »
Quite a nice mod this is. I use it in combination with the "User CP"  Mod and the Post Prefix mod. My users go to their profiles for a request button and it links them to the form. It then posts their answers to a forum and I can modify their post and add the Prefix [ACTIVE] to their requests. They all work well together.

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #88 on: July 23, 2008, 03:47:04 AM »
@nopity4u, could you expound on that a little bit?

Another feature request:  I would like users to be able to use a custom form to send me, the admin pm's (so feedback isn't publicly displayed)  Any chance of that in an upcoming release? (and I will also look at the function, and see why radio buttons are not needed)   :P

« Last Edit: July 23, 2008, 03:56:31 AM by digit »
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #89 on: July 23, 2008, 03:54:48 AM »
@nopity4u,
Its good to hear that you are using the mod effectively with other mods. :)

@digit,
That could indeed be a useful feature, for the moment you could get a similar functionality, where all the posts are private, by creating a board that users cannot see or post in and then setting that as the board for the form and setting the permissions for the form so that normal users have access. The permissions for posting in/viewing a board actually don't matter to this mod in the slightest, it will make a post in the board and then the user won't be able to see the post, to expand on the idea, it would be nice if you could show a specific message to the user after they have submitted the form, just so they know its worked. ;)

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.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #90 on: July 23, 2008, 08:08:29 AM »
@nopity4u,
In response to this post I missed earlier:
Everythings working fine here. A small and rather trivial feature request would be to have the submit button after entering the form information take you directly to the topic rather than the board.

I think that that would be a very useful feature, I will investigate it being either according to the setting that you can chose in your profile area or an extra option that you can allow the user to choose for each form.
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.

Offline erlend_sh

  • Jr. Member
  • **
  • Posts: 307
  • Gender: Male
  • Lack of sleep is my drug
    • jMonkeyEngine
Re: Custom Form Mod
« Reply #91 on: July 23, 2008, 10:23:56 AM »
1.1 is out, yay! Thanks a lot LHVWB! We'll be making great use of this mod.

Quote
I have finally completed this mod for SMF 1.1.5, it took a while and the testing phase ended up being really annoying because it had a lot of bugs. I have implemented a few of the suggestions by people and also fixed a few bugs from the 1.0 version of the SMF 2 Beta mod. I will try to update the SMF 2 Beta version of the Mod sometime in the next few days.  :D
Does this mean the 2.0 version is not yet updated with template capabilities ???

The download page also had me confused...
Quote
CustomFormMod_v1.0_SMF2.zip (13KB) [127]  
CustomFormMod_v1.1_SMF1.1.5.tar.gz (14KB)
So, the 1.1 version is for SMF 1.1.5 then, and 1.0 is for 2.0, correct? Also meaning that the 2.0-compatible version is not yet updated with 1.1 functionality? Guess this means I won't be making a new install right away after all. Also, will I be able to upgrade the 2.0-compatible version straight to v1.1 without uninstalling?

Offline nopity4u

  • Semi-Newbie
  • *
  • Posts: 93
Re: Custom Form Mod
« Reply #92 on: July 23, 2008, 11:14:15 AM »
@nopity4u, could you expound on that a little bit?

Another feature request:  I would like users to be able to use a custom form to send me, the admin pm's (so feedback isn't publicly displayed)  Any chance of that in an upcoming release? (and I will also look at the function, and see why radio buttons are not needed)   :P



User CP Mod allows you to have a nice User Control Panel area in which you can add custom icons to link to where you want. I made one that links to index.php?action=form
I then have a Request form setup for email/ftp accounts. After they submit the form it places their posts into a board where they can only view their own posts and no one elses, nor can they reply or create topics. (The Mod still works fine and creates the topic in their name)  The mod that does this is called "View Any Topic". So I basically ask them for their username and password for their email accounts and ftp. I then go into cpanel and create both and once done I modify their post prefix to [ACTIVE] and they see that they can now use their FTP and EMAIL.

I use Paid Subscriptions for FTP and EMAIL which places them in the usergroup after payment. This subscriber usergroup allows the view access for the request  board that the custom form mod places the submissions into.

That's basically how I am using the mod :)

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Custom Form Mod
« Reply #93 on: July 23, 2008, 01:18:43 PM »
I'm getting this error when I go to features and options:

Code: [Select]
Parse error: syntax error, unexpected '=', expecting ')' in forums/Sources/ModSettings.php on line 1681
I believe it is coming from the following code:

Code: [Select]
// Take us to the newly created field.
redirectexit("action=featuresettings;sa=customform;field_id=".$field_id.";");
}

Thank you for getting the 1.1 version out so quickly. :) I can't wait to get this error fixed so I can get the forms up and running.
Running SMF 2.0.1

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #94 on: July 23, 2008, 05:26:16 PM »
@Sadr,
You are correct in thinking that I have not finished the 1.1 version for SMF 2 Beta, I am currently working on it. It shouldn't take me too long because it will be very similar to the SMF 1.1.5 one, and the main changes were not to do with db queries to I can probably just copy chunks of code to do it relatively quickly. I hope to have it done today or tommorrow so that I can think about finishing another mod. ;)   To upgrade between versions, you will be able to uninstall the old one and then install the new one, the package manager should give you an option not to delete the data that is stored.

@nopity4u,
Sounds good. The trick to an open-ended mod like this, is to be as inventive as possible with the functionality that it has. I have tried to add more with the template functions to make it easier to customize.

@Lady Night Owl,
It would appear to me that that is not the correct line because there is nothing wrond with it. Its possible that the internal error checking in SMF 1.1.5 could be making a mistake due to some iterations or something, I've had it happen before. Could you please post that entire file so I can have a better look at it?

Edit:
Sorry I didn't get around to documenting the new features yet, I will try to do that tonight.
« Last Edit: July 23, 2008, 06:30:27 PM by 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.

Offline Lady Night Owl

  • Jr. Member
  • **
  • Posts: 133
  • Gender: Female
Re: Custom Form Mod
« Reply #95 on: July 23, 2008, 06:11:49 PM »
Ok, here's the file. Thanks for taking a look. Hopefully, it's not another mod interfering with this one.
Running SMF 2.0.1

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #96 on: July 23, 2008, 06:31:13 PM »
Ok, here's the file. Thanks for taking a look. Hopefully, it's not another mod interfering with this one.

Hopefully not, I will have to have a look at this later today now because I am now at school so I can't. ;)
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.

Offline Gryphoune

  • Semi-Newbie
  • *
  • Posts: 18
Re: Custom Form Mod
« Reply #97 on: July 23, 2008, 08:39:56 PM »
I want to use this mod to create an application form for membership to an adult gaming guild. What permissions do I need to set to have the propsed member (guest) view and submit the form which then posts the answers to an officer only board for consideration? I've pretty much created the form but want to make sure I get the permissions set correctly.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #98 on: July 23, 2008, 10:32:30 PM »
For the form you need to change the permissions option so that only guests can view and submit forms, then you need to change board id to the id of the board that you want the applications to be sent to. Finally you will have to make sure that only your staff membergroups have access to that particular board.

I suggest making a test user for each of your membergroups and testing out the permissions if you really want to make sure that it works perfectly.
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.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #99 on: July 24, 2008, 02:11:40 AM »
@Lady Night Owl,
I am very impressed with your 'ModSettings.php' file, its a classic case of mod installations gone wrong, it appears that you had manually/not manually installed this mod twice. I have removed that error, but also instead of having an equals sign or other normal symbols, the code had somehow been changed so that they were HTML entities like '<' and '=>' probably because you manually copied it from a package parser that give you the entities wrongly, which were causing that error that you posted about earlier.

I have fixed these mistakes and uploaded your ModSettings.php file again. Hopefully it should work now, it definitely wasn't a conflict with any of the other mods.
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.