Custom Form Mod

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

Previous topic - Next topic

live627

[url=https://custom.simplemachines.org/index.php?mod=1279]Link to the mod[/url]


Lady Night Owl

Looks like a good mod - I was actually looking for something like this - but, I'm running 1.1.5

:(
Running SMF 2.0.1

Nathaniel

Okay, I am working on porting this backwards for SMF 1.1.5. It might take a while though...

There are millions of things which need to be changed such as db queries, templates and etc, but I will try...
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.

Paracelsus

Quote from: LHVWB on July 09, 2008, 11:59:49 PM
Okay, I am working on porting this backwards for SMF 1.1.5. It might take a while though...

There are millions of things which need to be changed such as db queries, templates and etc, but I will try...

I second that request ;)

Btw, is there any demo we can see with some kind of form?

4b11l

Quote from: LHVWB on July 09, 2008, 11:59:49 PM
Okay, I am working on porting this backwards for SMF 1.1.5. It might take a while though...

There are millions of things which need to be changed such as db queries, templates and etc, but I will try...

3rd the request.

Lady Night Owl

Quote from: LHVWB on July 09, 2008, 11:59:49 PM
Okay, I am working on porting this backwards for SMF 1.1.5. It might take a while though...

There are millions of things which need to be changed such as db queries, templates and etc, but I will try...

OK, sweet! :D Thanks!
Running SMF 2.0.1

Angelotus

Hi, seems like a nice mod, I installed it, but there is no link in modifications! How to add one? And what is the link to edit?

Nathaniel

@ Paracelsus, I've been a bit slack, I will try to get some demo sites up and running as well as soon as possible, I will also write some decent documentation, because its not very good at the moment. ;)

@ Angelotus, I am not sure why you can't see a link, please make sure that you are viewing it in English because otherwise there will not be text for the link. If you are viewing it in English then see if you can access the settings at "index.php?action=admin;area=modsettings;sa=customform;".

If that doesn't work then the mod may not have installed correctly and you should try to re-install 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.

Angelotus

I have only english installed and the mod does work, only the link in the modifications center doesn't work. I think the necessary language string isn't on it's place because if I take a look in the source I see the link tagged, but no txt for the link.
I have manually gone through all steps adding the language strings, but no succes...

Nathaniel

Okay, there are three possible places where something could have gone wrong:

1. This line: "$txt['CustomForm_tabheader'] = 'Custom Forms';" could be missing from your 'themes/{theme}/languages/Modifications.english.php' file.

2. The line below could be missing from your 'sources/Admin.php' file.
                  //   Place the Custom Form Mod Link.
                  'customform' => array($txt['CustomForm_tabheader']),


3. The code "loadLanguage('Modifications');" could be missing from the beginning of the AdminMain() function from Admin.php.

If you have check your 'Modifications.english.php' file then maybe you could post your Admin.php file and I could check over it?

All of those errors would have only occurred if there was some sort of mistake made by the package manager so it may be fixed by re-installing 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.

Angelotus

#10
Quote from: LHVWB on July 10, 2008, 04:38:07 AM
Okay, there are three possible places where something could have gone wrong:

1. This line: "$txt['CustomForm_tabheader'] = 'Custom Forms';" could be missing from your 'themes/{theme}/languages/Modifications.english.php' file.

2. The line below could be missing from your 'sources/Admin.php' file.
                  //   Place the Custom Form Mod Link.
                  'customform' => array($txt['CustomForm_tabheader']),


3. The code "loadLanguage('Modifications');" could be missing from the beginning of the AdminMain() function from Admin.php.

If you have check your 'Modifications.english.php' file then maybe you could post your Admin.php file and I could check over it?

All of those errors would have only occurred if there was some sort of mistake made by the package manager so it may be fixed by re-installing the mod.

Here is my admin.php, the txt string is in place

Nathaniel

Okay, nothing wrong with your Admin.php file. It should be working as far as I can see...

Are you certain that the "$txt['CustomForm_tabheader']" variable is defined in your 'Modifications.english.php' file?
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.

PfalzNacht

Hi!

Really good mod.

But, how can i get the forms into e post?

I created a form, but i can't choose a form.

Angelotus

Quote from: LHVWB on July 10, 2008, 06:08:54 AM
Okay, nothing wrong with your Admin.php file. It should be working as far as I can see...

Are you certain that the "$txt['CustomForm_tabheader']" variable is defined in your 'Modifications.english.php' file?

Yes very shure! Are there any other files to be editted??

Nathaniel

Quote from: Angelotus on July 10, 2008, 08:16:16 AM
Yes very shure! Are there any other files to be editted??

In terms of that particular link showing/not showing, there should be no other factors which effect it at all. I will have a think about any other possible ways that this error could be occuring, but your Admin.php file is definitely okay, could you post your Modifications.english.php file so I can check it?

@ Cybertec,
I am not entirely sure what you are talking about, but I am going to add more documentation to the downloads page so hopefully that will explain everything. To post a form, you need to access it from the index.php?action=form, also remember that the form settings in the admin area have to be done properly, ie. the board id has to be valid, there have to be fields in the form and etc.
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.

PfalzNacht

Thanks LHVWB!

That's the answer.  ;)

Nathaniel

Okay, I have added some more documentation to the downloads page, I will continue to try to improve the documentation and then I will try to port this mod back to SMF 1.1.5. Which should be fun!  :-\
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.

Sakae

Quote from: LHVWB on July 09, 2008, 11:59:49 PM
Okay, I am working on porting this backwards for SMF 1.1.5. It might take a while though...

There are millions of things which need to be changed such as db queries, templates and etc, but I will try...

Well, I think you saw already how many people thanks for this but it's never too much: THANKS MAN!!!
http://www.tigrelog.com.br
l: simple p: machines

Angelotus

Quote from: LHVWB on July 10, 2008, 08:44:07 AM
Quote from: Angelotus on July 10, 2008, 08:16:16 AM
Yes very shure! Are there any other files to be editted??

In terms of that particular link showing/not showing, there should be no other factors which effect it at all. I will have a think about any other possible ways that this error could be occuring, but your Admin.php file is definitely okay, could you post your Modifications.english.php file so I can check it?

@ Cybertec,
I am not entirely sure what you are talking about, but I am going to add more documentation to the downloads page so hopefully that will explain everything. To post a form, you need to access it from the index.php?action=form, also remember that the form settings in the admin area have to be done properly, ie. the board id has to be valid, there have to be fields in the form and etc.

Here is my modifications.english.php

jossanaijr

Quote from: LHVWB on July 10, 2008, 09:02:47 AM
Okay, I have added some more documentation to the downloads page, I will continue to try to improve the documentation and then I will try to port this mod back to SMF 1.1.5. Which should be fun!  :-\
One more! WOW! Thanks.

Advertisement: