• Welcome to Simple Machines Community Forum. Please login or sign up.

Custom Form Mod

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

Previous topic - Next topic

heroclass

Thank you for the reply.

Yes it still happens if we change the theme.

Any thoughts on the matter would be nice.

Kindred

ok....  just reinstalled the new version on a site.


1- the download from the mod site appears to have the ZIP file problem (my package managers sees the zip as empty. rezipping the contents from Windows makes it work)

2- The instructions indicate: use the "form_template_example()" function within the 'CustomForm.template.php' file,
but there is no such function in any of the files included with the mod.

3- This mod still uses tables.  Can we have it use DIVs and other actual CSS? :)

4- The form, when displayed uses "Custom Form: <form name>" for the heading and "Custom Form" for the page title.
IMO, it should use the Form Name for both....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shades.

Getting "403 Forbidden" when I click to download this mod! ???

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

Try downloading version 2.0.1, instead of 2.0

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Ok that worked...Ha I was just clicking on download instead of choosing a package lol! :laugh:

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

Yes although it works but this specific mod is having that issue, is already reported/logged.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Anish87

When I use Large Text in a form, and try to read it in Form Output, it just returns blank.
I'm using v2.0.1, SMF Version: 2.0.18, here's how it is:
Here's the screenshots:




And another problem I'm facing is this:
When I use a field in Subject part of the forms mod, it posts the topic with a [nobbc][/nobbc] tag.
Here's the screenshots:



Please help me out :)

fundamenteel

Quote from: Anish87 on October 14, 2021, 10:32:53 AMWhen I use Large Text in a form, and try to read it in Form Output, it just returns blank.
I'm using v2.0.1, SMF Version: 2.0.18, here's how it is:

And another problem I'm facing is this:
When I use a field in Subject part of the forms mod, it posts the topic with a
[nobbc][/nobbc] tag.

Please help me out :)

Yes i'm getting blanks too in large text fields

For your nobbc question you have to use "parse_bbc" see screenshot




fundamenteel

Aditional info:

smf  2.0.18 Fresh install
Custom form mod 2.0.1
Theme redsy


live627

To fix the large text problem, find in ./Sources/Class-CustomForm.php
$this->input_html = '<textarea name="%s[%d]" ' . (!empty($rows) ? 'rows="' . $rows . '"' : '') . ' ' . (!empty($cols) ? 'cols="' . $cols . '"' : '') . '>' . $this->value . '</textarea>';
Replace with
$this->input_html = sprintf(
'<textarea name="%s[%d]" %s%s>%s</textarea>',
'CustomFormField',
$this->field['id_field'],
!empty($rows) ? 'rows="' . $rows . '"' : '',
!empty($cols) ? 'cols="' . $cols . '"' : '',
$this->value
);

fundamenteel

Thnx! That solved it!!  :)

fundamenteel

Nevertheless the errors still apear in my errorlog

Anish87

Quote from: live627 on October 16, 2021, 02:14:22 AMTo fix the large text problem, hxxp:github.com/live627/smf-custom-forms/blob/1a056571033d1395dbac3d8f508eca1e0bb15e16/src/Class-CustomForm.php#L281 [nonactive]
$this->input_html = '<textarea name="%s[%d]" ' . (!empty($rows) ? 'rows="' . $rows . '"' : '') . ' ' . (!empty($cols) ? 'cols="' . $cols . '"' : '') . '>' . $this->value . '</textarea>';
Replace with
$this->input_html = sprintf(
'<textarea name="%s[%d]" %s%s>%s</textarea>',
'CustomFormField',
$this->field['id_field'],
!empty($rows) ? 'rows="' . $rows . '"' : '',
!empty($cols) ? 'cols="' . $cols . '"' : '',
$this->value
);
Did what you suggested, but now I see "Oops there were errors" and nothing after that...

MisterVertigo

Greetings! I recently upgraded my SMF forums from version 2.0.15 to the latest, 2.0.18. I have the 1.7 version of this mod installed, and it's causing me some trouble. Specifically, there are pages in the admin center that will not load. I have tried removing it (keeping the database) and installing the 2.0.3 version. That fixed my issues with the admin center, but my old forms did not work. My guess is that some changes happened to the database between versions.

So, I'm wondering if there id a way to update the mod from version 1.7 to 2.0.3? Even if I have to do it incrementally that is OK, I just don't want to have to rebuild all my forms.

Thank you!

Shades.

Quote from: MisterVertigo on November 19, 2021, 08:58:44 PMGreetings! I recently upgraded my SMF forums from version 2.0.15 to the latest, 2.0.18. I have the 1.7 version of this mod installed, and it's causing me some trouble. Specifically, there are pages in the admin center that will not load. I have tried removing it (keeping the database) and installing the 2.0.3 version. That fixed my issues with the admin center, but my old forms did not work. My guess is that some changes happened to the database between versions.

So, I'm wondering if there id a way to update the mod from version 1.7 to 2.0.3? Even if I have to do it incrementally that is OK, I just don't want to have to rebuild all my forms.

Thank you!
I am using 1.7 on 2.0.18 as well and here is the fix I used found on another page of this topic...

https://www.simplemachines.org/community/index.php?topic=248871.msg4073887#msg4073887

Back Up your files and database first!

Open Sources>ManageSettings.php

Find:
($nul, $nul, $nul, $id)
Replace with:
($nul, $nul2, $nul3, $id)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kindred

It even works in 2.1, with a few tweaks
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shades.

Quote from: Kindred on November 19, 2021, 10:23:02 PMIt even works in 2.1, with a few tweaks
I haven't been able to get it to work on 2.1 sadly! :'(
(But I'm no coder either lol)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

MisterVertigo

Thank you! I'll give that a shot. After making that modification the 1.7 version will work in 2.1.18? Once working, will it work to then update to the mod version 2.0.3?

Shades.

Quote from: MisterVertigo on November 20, 2021, 12:57:58 PMThank you! I'll give that a shot. After making that modification the 1.7 version will work in 2.1.18? Once working, will it work to then update to the mod version 2.0.3?
It will work on 2.0.18 but I'm not sure about 2.0.3 version cause I still use 1.7 which works best for me! ;)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: