Advertisement:

Author Topic: Custom Form Mod  (Read 543667 times)

Offline nopity4u

  • Semi-Newbie
  • *
  • Posts: 93
Re: Custom Form Mod
« Reply #40 on: July 17, 2008, 07:33:06 PM »
Waiting on the 1.1.5 myself :)

Offline Marduke

  • Semi-Newbie
  • *
  • Posts: 10
Re: Custom Form Mod
« Reply #41 on: July 17, 2008, 09:15:24 PM »
REALLY glad to hear 1.1.5 version is almost done  :D


Will help with organization a TON.  I like things looking nice a neat.  Can never depend on people to follow a template.

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #42 on: July 18, 2008, 04:25:37 AM »
REALLY glad to hear 1.1.5 version is almost done  :D


Yay!  Me too!
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 #43 on: July 18, 2008, 05:24:57 AM »
Yeah, I'm working on it....

The SMF 1.1.5 version will be at version 1.1 for the mod when I release it, so the next version of the SMF 2 Beta part of the Mod will be coming out soon after as well...
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 Shortrnd

  • Semi-Newbie
  • *
  • Posts: 27
Re: Custom Form Mod
« Reply #44 on: July 18, 2008, 12:54:42 PM »
Yeah, I'm working on it....

The SMF 1.1.5 version will be at version 1.1 for the mod when I release it, so the next version of the SMF 2 Beta part of the Mod will be coming out soon after as well...

Great news!  Patiently awaiting your next release.  Again, thanks for offering this mod and all the support you've given.

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #45 on: July 19, 2008, 12:18:05 PM »
I don't know is this is an issue with the Package manager or this mod...  but I just did a fresh install of SMF 2.0 Beta 3.1 Public,

Then I tried to use the package manager to install the custom form mod.

The tests pass, but I see no way to apply the mod..... see attachment.

There are no mods visible under admin>Configuration>Modifications either.

What gives?
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 #46 on: July 19, 2008, 07:31:40 PM »
@digit,
No idea what the issue is, it may be with your package manager. Have you tried installing any other Mods to see if the same issue occurs?  ???

I have tested this mod on multiple clean copies of SMF 2 Beta 3.1 so it should work.  :(
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 digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #47 on: July 19, 2008, 09:35:17 PM »
Hi....

I think my problem has to do with the fact that my server uses sftp - when I changed my "ftp" details, somehow it got cached, then broke things.  I am having the same problem with other mods.  NOT FUN.  >:(

I normally manually install my mods because of this, but install.php looks greek to me! (I am used to manually installing mods on 1.1.5)  Do you have a manual install version of that file?

For example - I don't understand....

$smcFunc['db_create_table']('cf_forms', $columns, $indexes, array(), 'update_remove');

Thanks!

Edit: woo hoo - I did a fresh re-install, and this time, instead of entering my ftp info - I noticed a small link that says "some files need to be writable see a list of files effected".  I clicked on that and saw I needed to chmod 777 these files....

chmod 777 /mysite/index.php
chmod 777 /mysite/Sources/Admin.php
chmod 777 /mysite/Sources/ManageSettings.php
chmod 777 /mysite/Sources
chmod 777 /mysite/Sources/CustomForm.php
chmod 777 /mysite/Themes/default
chmod 777 /mysite/Themes/default/CustomForm.template.php
chmod 777 /mysite/Themes/default/languages/Modifications.english.php
chmod 777 /mysite/Themes/default/languages/Help.english.php

I did that, and voila - my Install button (submit button) appeared!

It installed perfectly.

Thanks - now I need to see the power of this baby. :)
« Last Edit: July 19, 2008, 09:46:11 PM 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 #48 on: July 19, 2008, 11:03:08 PM »
Glad to hear it is working now. :D

If you want to learn more about the "$smcFunc['db_create_table']('cf_forms', $columns, $indexes, array(), 'update_remove');" code, then you can read about it below. It basically creates a new table. :)
http://www.simplemachines.org/community/index.php?topic=224166.0
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 #49 on: July 20, 2008, 12:33:47 AM »
This 1.1.5 update is coming at the best time for my new forum.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #50 on: July 20, 2008, 12:52:09 AM »
Yeah, I'm working on it... Its taking me a bit longer than expected because I'm releasing it at version 1.1 for this mod and I also had to fix up another mod which had some issues. ;)

But hopefully sometime tonight, (for me). Or tomorrow...
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 #51 on: July 20, 2008, 03:01:07 AM »
Thank you, kind sir  :D

It's selfless people like you who enable idiotic people like me to be able to create fully featured websites/forums.

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #52 on: July 20, 2008, 04:28:22 AM »
This 1.1.5 update is coming at the best time for my new forum.

lol...  you have hungry wolves hanging around in here (including me!)  8)


ok, I have it working.... are you ready for a few feature requests?

1. I am not sure how the field order works.  I would like to be able to set the field order. (where they appear on the page)

2. I would like to have a text area field option that contains the BBC code stuff. :)

3. I would like these custom fields to appear (optionally) on the standard post page, so users can control the title of the post.

4.  I would like to add fields to the Advanced Search page, so users can search only these new fields.

VERY cool mod, but until I can do #3 & 4, it's not quite what I had in mind / needed.    :(

Thanks again!

« Last Edit: July 20, 2008, 04:30:58 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 #53 on: July 20, 2008, 05:10:26 AM »
@digit,
Okay I will go through the requests systematically.

1. The order that fields are placed in, is exactly the same as they are presented on the admin page, which is the order they are created in. I must admit that there probably should be a way of moving them around, I will try to include this in version 1.1 of the mod.

2. Okay, that's actually quite possible and 'easy', only because I've already done it once for this mod. I will consider adding that as a new type to the next version.

3. I am sorry, but this is not the point of the mod at all. I'm not trying to allow you to edit your Post pages, I am trying to allow you to create 'Custom Forms' so that you can allow/force users to submit information in a in a highly structured manner. If I add the 2nd request, it will be fairly similar anyway..

4. With this request, I get the feeling that you are completely misinterpreting how this mod works. This mod does not store the values that are entered into the separate fields by a user, it merely creates a post, thus if a user searches for the correct term then it will come up in the post that was created.

The process works like this,
1) Admin creates a form, adds fields to it, gives it a subject, a body, a board id and etc.
2) User fills in the form and then submits it.
3) The mod then uses the 'output' post for the form, and replaces all necessary {vars} with their values from the user. Then finally the end result is submitted as a post. All other data submitted by the user is ignore and not stored.

I hope that I have cleared up the aims of this mod, I believe that they can be summarized by the sentence below.

"To Allow admin to create their own Custom Forms, thus meaning that users can/have to submit information as a post in a structure manner"

I am more than happy to consider any feature requests though, so thank you for your suggestions. I will definitely implement requests 1 and 2 at some stage.

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.

Offline digit

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
Re: Custom Form Mod
« Reply #54 on: July 20, 2008, 05:15:05 AM »
Ok, :)  I wasn't really misunderstanding it, I just wanted something a little different.   ;)  I guess I need to submit a new mod request!  I didn't mean to confuse people here!

It's still a GREAT mod - and I do intend to use it for, as you said...  it's intended use... support forms, etc!
  8)

digit.

p.s., about the field order...  I created three fields...  1, a select pull down menu... 2, a text area, and 3 another select menu. I decided I wanted both select menus above the text area field.  So, I deleted the text area field, and recreated it in last position, but when I went back to the form, it was in the middle again.  I repeated all that and the text area field was at the bottom where I wanted it!  quien sabe!
« Last Edit: July 20, 2008, 05:18:42 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 #55 on: July 21, 2008, 02:24:40 AM »
I know that its possible to move fields around, but I have implemented a way (more of a nasty hack) with allows you to swap them around, thus saving rebuilding your entire form when you want to add a new field near the top of your 20 field form. Anyway, because of that and some more testing, this mod for SMF 1.1.5 didn't get done last night so I will try to finish my testing and release it tonight. But I want to make sure that there are no bugs below I release it, otherwise that would get really annouying. ;)
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 #56 on: July 21, 2008, 03:24:54 AM »
I'm fine with bugs, just send it my way ;)


Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #57 on: July 21, 2008, 07:09:38 AM »
I'm fine with bugs, just send it my way ;)

I would, but I want to make sure that the SMF 1.1.5 version is completly bug-free when I release it because otherwise I would have to spend even more time, sorting out exactly what the bugs are, its much easier if I have done a through check and I know about an problems - I would eventually like to move onto some other mod ideas that I have. Anyway, I haven't gotten as much work done on this as I would like so It''ll take some more time... :'(
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 #58 on: July 21, 2008, 10:54:04 AM »
I'll pass on this mod idea to ya and see what you think. When you make posts (and replies) you see how you can link pictures or add attachments right? Well I sometimes want my pictures displayed in the post but I don't want to link them and instead want to host them locally. So why not have a mod that is a button above posts/replies that you click to upload a picture. Right after it uploads the picture it links to it.

Example:

Above, by the picture icon there is another picture icon with an up arrow on it. I click this and select the picture and it uploads. After uploading it inserts
the img tag along with the picture already linked. In the Admin panel there could be a place to set the default upload directory.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Custom Form Mod
« Reply #59 on: July 21, 2008, 05:55:06 PM »
I'll pass on this mod idea to ya and see what you think. When you make posts (and replies) you see how you can link pictures or add attachments right? Well I sometimes want my pictures displayed in the post but I don't want to link them and instead want to host them locally. So why not have a mod that is a button above posts/replies that you click to upload a picture. Right after it uploads the picture it links to it.

Example:

Above, by the picture icon there is another picture icon with an up arrow on it. I click this and select the picture and it uploads. After uploading it inserts
the img tag along with the picture already linked. In the Admin panel there could be a place to set the default upload directory.

It sounds like quite a good idea, but maybe you should post it in the Mod Requests Board.  I might have a furthur look into it when I get some time, but its probably best to make a new thread, to see if anyone else is interested in creating 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.