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

nopity4u

Will do :)

A Question, or possibly suggestion for your mod would be to have conditional options for each custom profile field (perhaps adding 4 more too..)

Right now I am trying to go into usercp.template.php and create an if statement to allow only a certain membergroup from seeing this particular icon.

The icon was supposed to function as a one time click for each member. I have an email/ftp request form that I will be setting up with your mod and I have only one membergroup that is allowed to request it. These members have basically paid for these features through the paid subscriptions mod and were assigned into this group. So, what I am wanting to happen is to have an Icon/Summary show 'ONLY' for this membergroup.

How would I go about editing the template file to enable this?

Thanks!

Marduke

#61
Never been looking forward to a script so much!   :P


Edit:  And jesus people, let him release 1.1.5 version before making a ton of requests!  Many of us would just love to be able to use this modification, and don't want to wait for things to be added.  The base modification is practically perfect anyways!  ;D

Marduke

If you need any help testing, I'd be more than willing :)

Nathaniel

@Marduke, thanks for offering, but its no longer necessary.  :D

Mod Changes v1.1:
Added SMF 1.1.5 version.
Added the new custom template stuff.
Some minor bugfixes.

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

I will also try to update the documentation later today when I have some more time.

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

nopity4u

Thanks good sir, you rock.

nopity4u

Just realized I was asking you a question about the User CP mod. Haha :P

4b11l

Woohoo! Thanks a lot bro! Been waiting for a while.

digit

Yeah - very cool!  Installed it w/o problem.

Any chance we are going to have the BBC stuff and attachments doohickies in the text area box any time soon?

This is going to be a fun mod to play with.  :)  Thanks!
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!)

Nathaniel

#68
Hmm, at the moment I am just really happy that I've actually finished it and It doesn't have many bugs. ;)

I am happy to take more suggestions for types of fields that I could add to this mod in the future. Although I make no promises as to a timeframe for adding them. ;)

Possible New Field Types:

  • Attachment Field
  • Multiline textbox with BBC Controls.
  • A Multi-checkbox field
  • Radio Buttons (Just a sub type of the selectbox type).
I will add to this list if anyone has any other ideas.

Edit:
@nopity4u,
I hadn't even realised that you had made a post in this thread about the "User CP" mod until you pointed it out, I've been too busy concentrating on finishing the mod for SMF 1.1.5. ;)
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

Great mod once again LHVWB.

Just want to put this out in case someone have the same problem as I did.

My modsettings.php failed the Test.

I ended up doing that file manually, but then Features and Options in ACP didn't work. So, I moved the
'customform' => 'CustomFormSettings',

down below
'sig' => 'ModifySignatureSettings',

That got my Features and Options working and the link can be accessed via ACP>Features and Options.

Sudhakar Arjunan

Hey LHVWB,

I have installed your mod and found its really interesting.

I showed me one error in modsettings page and i have manually modified it.

Went through the admin panel , selected custom form. Created a form and entered the text.

But it does not showed me as done and refresh with fields.

First in mod settings , i entered title as support and form text . Clicked Save - nothing happen.
Second went to add form, added a board number, given name , title etc and clicked save. - nothing happened.

came out of add form page and saw the page is already showing . ok then entered setting - saved - nothing happened.

Went to forum support link and it shows only index page.

Any suggestion , and using 1.1.5 and no error while install . Manually modded mod settings page.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

digit

Small suggestion....  A multi-checkbox field would be nice...  instead of the current yes or no checkbox.


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

4b11l

#72
Quote from: digit on July 23, 2008, 02:09:10 AM
Small suggestion....  A multi-checkbox field would be nice...  instead of the current yes or no checkbox.




Hey bro, how did you get the checkboxes to work.

I tried "Yes, No" but that didn't show up correctly. What are you suppose to use when he say Strings. Thanks.

EDIT:
Getting an error after submitting about no board id? The form is posting to the board correctly.
8: Undefined index: article_category
File: /home/xpeng065/public_html/Sources/Subs-Post.php
Line: 1548


FIXED:
Deleted what was on that line:
'ID_CATEGORY' => $topicOptions['article_category'],

Was it something for the smfbeta 2?

digit

Hmm, I guess it's just a single check box.  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!)

nopity4u

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.

nopity4u

Quote from: 4b11l on July 23, 2008, 02:17:08 AM
Quote from: digit on July 23, 2008, 02:09:10 AM
Small suggestion....  A multi-checkbox field would be nice...  instead of the current yes or no checkbox.




Hey bro, how did you get the checkboxes to work.

I tried "Yes, No" but that didn't show up correctly. What are you suppose to use when he say Strings. Thanks.

EDIT:
Getting an error after submitting about no board id? The form is posting to the board correctly.
8: Undefined index: article_category
File: /home/xpeng065/public_html/Sources/Subs-Post.php
Line: 1548


I think that error has to do with Simple Portal.

Nathaniel

@4b11l, #1
I think that that error would only be occuring if you have a mod which changes or removes the 'karma' tab from the modsettings area. I have made a note of that, and I will make a fix for that in the next version although its not that urgent.

@4b11l, #2
If you have put the {var} in the output post and you have named it correctly then it should show "Yes" for true and "No" For false by default, otherwise you can add them to the "Extra Type Parameters" setting, the help button documents it a bit better. ;)

@asudhakar,
I am not entirely sure what you are talking about, but make sure that you have valid board id, title, output, subject and ect. for the form, as well as at least one field with valid text and title.

@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. ;)
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: nopity4u on July 23, 2008, 02:27:39 AM

I think that error has to do with Simple Portal.

I see, I'll look into it some more. Thanks.

4b11l

Quote from: LHVWB on July 23, 2008, 02:29:29 AM
@4b11l, #2
If you have put the {var} in the output post and you have named it correctly then it should show "Yes" for true and "No" For false by default, otherwise you can add them to the "Extra Type Parameters" setting, the help button documents it a bit better. ;)

I'm a little lost, I was lost in the help button documentation also. So in the output, would I put {yes} {no}?

I have it tested as:

Is today monday?
{yesno}


yesno being the field name/title.

Nathaniel

#79
Quote from: 4b11l on July 23, 2008, 02:31:23 AM
Quote from: nopity4u on July 23, 2008, 02:27:39 AM

I think that error has to do with Simple Portal.

I see, I'll look into it some more. Thanks.

@4b11l,
The line from your earlier post was not added by this mod as far as I know. Its possible that there may be some compatibility issues with this mod and the Simple Portal Mod. I will try to have a look into this later and if I find some issues I will post a tutorial to show anybody that comes accross the issue, how they can fix it.

You need to put {field Title} in the output, it will be replaced by the value that is sent by the form. So if you called the field "yesno" then it would be '{yesno}'.
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: