News:

Wondering if this will always be free?  See why free is better.

Main Menu

Custom Form Mod

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

Previous topic - Next topic

SlowPaddle

Quote from: LHVWB on August 05, 2008, 07:19:34 PM
I am not sure about the error with & for you, it seems odd to me. Do you have any special url related settings, or any url related mods installed?

Nothing installed that would cause the problem. But like I mentioned, it was a rather simple fix.

I'm looking forward to seeing what the new version has to offer.

And thanks for the hard work putting this together. It's really appreciated.

Nathaniel

Quote from: jimvy on August 06, 2008, 12:05:56 PM
Will this work for users to fill out the form but to have the form post into a board that they don't have permission to view? Like if I wanted to make a quiz for members to submit but I don't want to allow them to see each others answers, so it's posted in a board only I can see.

Yes it will allow them to post to a board they can't see, however at the moment it will try to redirect them to that board, so they will get an error message. I am working on giving admin the option to redirect users to different areas.
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.

tk2012

#202
Ok, the problem that I had previously isn't fixed like I thought.  I had something else confused with this one. 

Here the problem..

I'm in Custom Form Mod Settings -> ERROR ASSISTANCE FORM and am entering all the information.  I've added the title which is shown above here, Board ID, left the Custom Template blank since I'm using the default, set the permissions for everyone other than guests, and filled out the subject line.

All of that works fine.

This is the part which does not work for me.  For the Form Output, I have typed in the following information and then hit save only to have the screen go back to the current screen with the Form Output portion blank, but with all the information above still entact.

Quote

Name: {name}

Action being performed: {action}

When did this occur: {time}

What happened: {result}

Any other information: {additional}

Thanks for reporting the error.  Until I can find a solution, go race a few laps on the game and I'll see what I can do in the meantime!


Am I not making my information in the form correct or what could be wrong?

I've gone to the form listing link and have completed the form.  It does make a post with the title and in the correct board, but the post is blank inside because the actual Form Output keeps erasing after I hit save!  LOL. 

Help Me!

Once again, I'm on v2.0 b3.1

Whatever other information you need I'll get!

EDIT:  I don't seem to have the Modification.english-utf8.php or  Help.english-utf8.php files, but I have all the rest.  I'm attaching what I've done. to here.  I've double checked and the two files listed at the bottom of the mod procedulre are in the directories assigned, too.

Does it matter that there is a space between the two lines in this one?
// Load the language and templates....
loadLanguage('Admin');
loadTemplate('Admin');

loadLanguage('Modifications');

tk2012

Ok, this is what I've noticed and I don't know really the correct terminology, so work with me here...

All of my edits are done correctly in the files.

It appears that the WYSIWYG function is conflicting when you are in the Custom Form Mod Settings and trying to save.  I have the WYSIWYG set to default ON and when you are in the Form Output, this is where the problem is.  If the WYSIWYG is turned on, it will NOT save my entry there.  However, if I turn the WYSIWYG OFF, it WILL save the entry.

I'm not sure if this would be a bug with the WYSIWYG or a bug with this program.  I thought I would let you know because it was frustrating knowing that I double checked my edits and they were fine, but couldn't get this to work properly.  If it works fine on your forum with the WYSIWYG, then... I'm at a loss as to why it wouldn't be working on mine.  Like I said, turn it off and it is good to go!

Nathaniel

@tk2012,
Ah, so that's the problem. I was wondering what it could be. I had already noticed the problems with the WYSIWYG editor in the first version of the mod, but I never found time to actually fix it. I had found that if you made edits in the non-WYSIWYG editor then everything works fine, its only if its in the WYSIWYG editor when you save it. Remember that the red A button, will swap between modes, so for the moment you can use that.

When I update the SMF 2 Beta version of this mod to version 1.2, after I have done the SMF 1.1.5 version. I will make sure that I resolve this issue, because it is indeed quite annoying. For now you can edit the output using the WYSIWYG editor, and it will save it, as long as you change to the normal editor before you save.

Please note that this error only occurs for the SMF 2 Beta version of the 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.

tk2012

Yepp!  I just have to toggle between modes with the "A"   I'm glad I figured it out because I was about to toss the laptop!!  LOL!

cleanfiles

#206
Hello again,
I have a problem. I was making a form and using some html in the title section and it has messed the whole form mod up, now i cant view any forms or edit them please see screen shots attached.
The html i was using was ,

<p> <br/> <xmp>  <a href=....  <img src=...  thats about it i think.

I have tried replacing the CustomForm.php  & the  CustomForm.template.php, this made no difference.
If it's a database issue, could you be basic in your answer please lol.

tk2012

Everything has been working since I turned off the WYSIWYG mode... but, what exactly do you type into the Extra Type Parameters in order to make people make an entry for the form to submit?

I thought it said to put 'required' like that, so I have, but I've been able to submit forms with nothing entered at all on my testaccount.  Am I just typing it in incorrectly?

Thanks again and sorry for the question!

-TK

Nathaniel

@tk2012,
The stuff that you can put into those fields, is explained by pop-up from the little help icon [?] next to the setting. It basically allos you to add more needed variables for certain types, I wouldn't worry too much about it though. The next version actually gets rid of that field and replaces it with the relevant options for each field type, to make it much easier to understand.

If you have been having problems with the required field then could you please tell me which type you are having issues with.

@cleanfiles,
I am having a look at that at the moment. ;)
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.

God Of Mana

Quote from: LHVWB on August 08, 2008, 02:42:00 AM
@tk2012,
The stuff that you can put into those fields, is explained by pop-up from the little help icon [?] next to the setting. It basically allos you to add more needed variables for certain types, I wouldn't worry too much about it though. The next version actually gets rid of that field and replaces it with the relevant options for each field type, to make it much easier to understand.

If you have been having problems with the required field then could you please tell me which type you are having issues with.

@cleanfiles,
I am having a look at that at the moment. ;)

I actually am having a problem with the required fields. Even if I put some input into the boxes, I still get  the "* required fields" thing.

Check the problem out here at http://attish.yfma.com/forums/index.php?action=form;id=3;submit;
Log in as
Username: formtest
Password: 123456

God Of Mana

I say your test... why on earth does it not work for me?

Nathaniel

@God Of Mana,
Those errors are to do with how the current version of the mod, parses the inputted data. Basically it has millions of annoying bugs, which I will have to iron out, I am in the process of doing it at the moment. I hope to have to next version of this mod done when I can find the time.

QuoteI say your test... why on earth does it not work for me?

Which test? There are issues with the demo, if that is what you are refering to. At the moment this mod has quite a few bugs. I have to work through them.

@cleanfiles,
I got a bit distracted, but I can tell you that I will be adding some stuff to the next version, to stop you from adding html into the subject or output fields of the form page, because you should really only need to use bbc.

In terms of fixing the problem, I would use phpMyAdmin or whatever you have, to have a look at the '{db_prefix}custom_form' table for your smf database, you should be able to find the form entry in that table which is the issue and delete 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.

God Of Mana

Quote from: LHVWB on August 08, 2008, 09:25:56 AM
@God Of Mana,
Those errors are to do with how the current version of the mod, parses the inputted data. Basically it has millions of annoying bugs, which I will have to iron out, I am in the process of doing it at the moment. I hope to have to next version of this mod done when I can find the time.

QuoteI say your test... why on earth does it not work for me?

Which test? There are issues with the demo, if that is what you are refering to. At the moment this mod has quite a few bugs. I have to work through them.

@cleanfiles,
I got a bit distracted, but I can tell you that I will be adding some stuff to the next version, to stop you from adding html into the subject or output fields of the form page, because you should really only need to use bbc.

In terms of fixing the problem, I would use phpMyAdmin or whatever you have, to have a look at the '{db_prefix}custom_form' table for your smf database, you should be able to find the form entry in that table which is the issue and delete it.

hmm.. someone used the account i provided to test it. lol

Nathaniel

@God Of Mana,
That was me. I wanted to have a look at specifically what you were talking about, the errors that you are having don't seem to be particularly out of the ordinary for that version of the mod. Like I said, I am working on making a newver and better version.
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.

God Of Mana

Quote from: LHVWB on August 08, 2008, 09:54:00 AM
@God Of Mana,
That was me. I wanted to have a look at specifically what you were talking about, the errors that you are having don't seem to be particularly out of the ordinary for that version of the mod. Like I said, I am working on making a newver and better version.

Ok, umm no offense, but i uninstalled it, because it isn't very stable.  :)

tk2012

#215
I've done the following in my Subs.php file.

I wanted the button to be after the Member List, so I added this code after it.  I'm not a coder.  I have no clue if this is correct or not.  I simply looked at the code in front and behind and gave it my best to try to understand it.  I just want to make a button that when hit, will take my user to the forms page.

I replaced the action with the page location of the form which is action=form.
I put the context thinking that it allows the forms.gif to show in the bar.  (At least I think that is what it does.)
And I didn't list any sub buttons because there are no buttons on that page.


'form' => array(
    'title' => $txt['form'],
'href' => $scripturl . '?action=form',
'show' => $context['allow_forms'],
'sub_buttons' => array(
),
),


I made a button, although I don't know what font they use for these gifs.  I uploaded the button not caring right now what it looked like, but just to see if it would work... no deal.  Not sure what else I need to do.  I attached a button from my default/images/english folder to let you know what i'm talking about.  I'm not even sure if I have to do all this..

cleanfiles

Thank you LHVWB, i deleted the form in phpmyadmin and now all my other forms are functional again. I'm glad it was so easy to fix and I have learned form this lol.
Thanks again.

Nathaniel

@God Of Mana,
No offence taken, I know that its absolutely terrible at the moment. I have to do som serious work on it. ;)

@tk2012,
Try using $txt['CustomForm_tabheader'] or $txt['CustomForm_form] instead of $txt['form'].

@cleanfiles,
I am happy to here that it worked. :D
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.

tk2012

I was able to get the button to appear.  I had to use the following code and needed to switch "show" to a "true" value.  So, the tab always shows, but only works if you have permission which is good.  If you are a guest, you can click on it all you want, but it won't do anything for ya.


'form' => array(
    'title' => $txt['CustomForm_form'],
'href' => $scripturl . '?action=form',
'show' =>[b] true[/b],
'sub_buttons' => array(
),


I know you said that you would be fixing the redirect after posting, so that if a person posting isn't able to see a particular board where the message goes... it would do something else. 

My question is this...  Where is the text that the error message is currently pulling?  I would just like to change the text that is displayed from the message which states something to the effect "the board you are trying to reach is not visible or doesn't exist" to "Thank you for your submission.  Your request will be handled shortly."

I can't find in the file where that is in order to change it.

Nathaniel

@tk2012,
I would recommend against it, because that string is used whenever any of your members type in a board id, that they can't view or doesn't exist. You should however be able to find it, by searching for the error message, in your '/themes/default/languages/errors.english.php' file.

BTW, you probably don't need the b tags inside that code, I suspect that doing that would crash php. ;)
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: