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

SpeedHighway

I was looking at this trying to find the solution..

if(($required

&& (($value == '') || ($value == 0))

&& ($field['type'] != 'checkbox'))

// Failing for selectboxes is far more simple, If there is no valid value, it fails.

|| (($field['type'] == 'selectbox') && ($value == '')))


I can't see any errors offhand, but it may be easier to read if you remove the entire "|| (($field['type'] == 'selectbox') && ($value == '')))" section.  If you are already checking for $value == '' then you don't need to worry about if it's a selectbox or not, I think.

Still looking, but that's all I can see right now :(

Nathaniel

Yeah, I know. That code is ugly, and I haven't really fixed it up properly yet. Fixing up that code will be the main thing that I do for the next update (when it comes).
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.

SpeedHighway

Have you ever heard of this one?  Whenever another one of our guild members tries to get to the index.php?action=form page or to any form it states "No Input File Selected" and he can't get to the page.

GaminGarage

didnt get any forum log errors,

here is what my setup looks like:



my board id 30 goes to:

http://www.gamingarage.com/index.php/board,30.0.html [nofollow]

Jorin

Sorry, is there a possibility that a custom form is only shown at the first post of a thread? So that the answers in that thread are normal postings without a custom form?

tk2012

#285
Hey there -

I just upgraded to b4.0 and I use the default theme.  Everything is working correctly, but one thing; the FORM tab.  It was fine for b3.1

Now, I had no failed tests when I installed this mod after the upgrade.  I even went back and checked every edit in each file to make sure it was complete.  No problems as everything was completed.

Then, I went back and did the things you instructed Angeletos at the beginning of this thread including clearing my cache and still nothing.  I have it visible to all membergroups, but still nothing.

What am I missing?  I've looked at permissions and the admin settings.

If I go to the actual link, I can see everything I created.  I just can't get the tab to be visible to get people to the link.




Possibly related, but not sure...

I've noticed that if I go into permissions of ANY membergroup, the permissions change on the Custom Form Mod when I hit save.

This is what is happening:

*  Go into Admin > Members > Membergroups > Permissions

*  Will just review permissions and then hit save

*  When it returns to the list of membergroups, the # of permissions will be lower than what it was when I originally went in there.  (Even if I didn't make any changes.)

*  Go into the Custom Form settings under Configuration > Modifications and I will notice the permissions for the membergroups (like which forms can be seen) have all been reset.


Nathaniel

Quote from: SpeedHighway on October 03, 2008, 09:28:40 PM
Have you ever heard of this one?  Whenever another one of our guild members tries to get to the index.php?action=form page or to any form it states "No Input File Selected" and he can't get to the page.

No, that is an odd error. Do you have any similar errors in your Forum Error Log that have any more description?

Quote from: GaminGarage on October 04, 2008, 08:54:29 AM
didnt get any forum log errors,

here is what my setup looks like:

my board id 30 goes to:

http://www.gamingarage.com/index.php/board,30.0.html

I really can't see any issues with that setup. What about errors in your hosting account/server error log?
Does this error happen for every one of your forms that you make?

Quote from: nehcregit on October 07, 2008, 03:24:27 AM
Sorry, is there a possibility that a custom form is only shown at the first post of a thread? So that the answers in that thread are normal postings without a custom form?

No, I have no intention o make this mod add forms anywhere in the forum apart from the forms action. Although you could put a link to the relevant form.

@tk2012,
1) Can you please post your 'Subs.php' file?
2) That is definetly an error with this bug, I will have to fix it next time I update it. I am not sure if its related or not.
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

#287
Sure thing.

Like I said... I just can't get the tab to appear on the top nav bar, but it looks like all the edits were completed.  Everything else seems to work fine.



BTW -  If you haven't seen the permisisons error before and want to see it first hand, I can set my TESTaccount logon to be an Admin if you want to jump on and see it. 


tk2012

Use this one!!!  I realized that I installed another mod after that file was attached earlier.


Nathaniel

Try this. I don't believe that the mod actually bothers to add its own tab - Although it should be optional.
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

Well, the Tab appears which is the good news.

The bad news is that the Admin > Modifications > Custom Form screen is completely white when you click on it and can't see anything in order to add, delete, change, or save your forms.   :(

twon

Is there anything that may work with 1.1.6 similar to this....I have been totally out of luck...anyone???

Nathaniel

#292
@tk2012,
Any related errors in your Forum Error Log?

@twon,
This mod should work with any SMF 1.1.x version, you just need to change the versions that it will allow itself to be installed for. ;)

I haven't tested the attached package, but it should install for SMF 1.1.6.
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 just upgraded to b4.0 on Friday and I have ten errors in my log.  I don't see anything that deals with the Custom Form modification.  All I know is when I try to get into the Admin settings for Custom Forms the screen goes blank (white).   :(   I attached my error log in case you can tell something from it.

JonoJames

Hi there, i've just installed this mod.

However when i create the template which will appear once the form has filled in the post is just blank and nothing appears.

Also when i click save after doing this it just refreshes the page and all the information i entered is gone

tk2012

#295
@ JonoJames         Are you using the WYSIWYG as your default editor in your posts?

If so, switch it to the standard editor and then hit save.  Try that.  I had that problem previously and it was fixed just by clicking it to standard editor before saving your form.

twon

Hello,
Thanks for the support. The version worked kinda. I fixed about 5 errors in coding with the modsettings.php.

Also, I have made a form but i cannot make any fields. I click on the link to make a field and it only gives me the option to save.

Any ideas

tk2012

@ LHVWB

I went ahead and reinstalled b4.0 and added that Subs.php edit to it and EVERYTHING is working now.  Something must not have gone correctly during my upgrade!  Thanks for that edit though.  Appreciate it!

Nathaniel

@twon,
Can you please post your 'ModSettings.php' file, there might be another issue there.

@tk2012,
Good, I like it when things work properly. ;)
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.

twon

Ok here it is...
Like i said everything seems to work find except when go to the add field section the only thing you can do is save...and it doesnt even save anything.

Advertisement: