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

live627


kwaka

Quote from: live627 on November 01, 2022, 12:15:25 AMThanks for the detailed bug report. I'm working on a new version of this mod that will fix those problems.

Cheers, glad to help out in some small way.
Thanks also for updating the mod, I'll install the update soon.
Look forward to the modifications to the mod.  8)  :)

kwaka

BTW, what is the best/preferred way to update/upgrade the mod?

Also the mod main page:
Tutorial - View more tutorials [nofollow]

...goes to a 404 page

live627

Uninstall old/install new


live627

I added a new version which allows a direct upgrade via the package manager.

You cannot view this attachment.

samozin

so i tried this mod ...i dont know ..how to get entered data (from the form )  in a datatable like this https://datatables.net
is it possible..?
any one has a video tut for this..? i think its easy but i feel iam missing something..

live627

This mod only outputs data to a forum post as a new topic.

Rick53

Quote from: Nathaniel on August 05, 2008, 07:19:34 PMIs there a way to use one of the fields as the title for the post?
Yes, in the admin section there is a subject field for every form. The subject field may contain {variables} just like the output field. So if you create a field called {subject}, you can allow the user to choose the subject by putting {subject} into the subject box on the admin edit form page.


I apologize if my problem has already been solved elsewhere. But couldn't find anything.

My form should be designed in such a way that the content of a field is also displayed in the board with this individual subject.

As described in the quote above, the designation "Subject" doesn't work for me. Only the standard form subject is entered in the board.

The field type is "Text", but I have already tested with "Information".

Anyone know a solution?
(SMF 2.1.3 )

live627

This mod has gone through two major revisions since that post was made 14 years ago. Is the field's identifier that name? It still works, but is a little bit different now.

Rick53

I'm not very well concerned with programming with PHP/HTML. What is meant by "field's identifier"?
Actually it works fine for me. However, I only work with text fields.

The content is also correctly transferred to a new post. I just don't know how to get the subject/title of the post from the form as well. Automatically.

live627

4.0.0 (2022-12-08)

⚠ BREAKING CHANGES
  • Field descriptions no longer accept raw HTML as part of the security fix (BBC accepted instead)
  • Requires PHP 8 or newer

Features
  • Add update notice for admins (8d88ff6)
  • Form edit box now includes a button to add field macros (445473d)
  • integrate_customform_classlist (bd054cb)

Bug Fixes
  • Tighten security by encoding HTML special characters (430f1f7)

Code Refactoring
  • move to namespace classes (3289cd8)

8vanima88

Quote from: live627 on December 08, 2022, 06:56:03 AMhxxp:github.com/live627/smf-custom-forms/compare/v3.1.0...v4.0.0 [nonactive] (2022-12-08)

⚠ BREAKING CHANGES
  • Field descriptions no longer accept raw HTML as part of the security fix (BBC accepted instead)
  • Requires PHP 8 or newer

Features
  • Add update notice for admins (hxxp:github.com/live627/smf-custom-forms/commit/8d88ff6dc3c107e053dd98eca7a81df6cc516f46 [nonactive])
  • Form edit box now includes a button to add field macros (hxxp:github.com/live627/smf-custom-forms/commit/445473de818f7fd55aac44e67965e3d26c8c6dc5 [nonactive])
  • integrate_customform_classlist (hxxp:github.com/live627/smf-custom-forms/commit/bd054cbc81ae69d8e0b697c33e54a08eeb854f73 [nonactive])

Bug Fixes
  • Tighten security by encoding HTML special characters (hxxp:github.com/live627/smf-custom-forms/commit/430f1f7b35583d35a0ba02ccd275ca24781f70c4 [nonactive])

Code Refactoring
  • move to namespace classes (hxxp:github.com/live627/smf-custom-forms/commit/3289cd80e925a338b33fb3313d141a672a6b0f59 [nonactive])


Installing this results in:

2: Undefined array key "db_add_column"

In the error log

The previous version was fine with installation. Since my update package mod doesn't work, I had to reinstall/install to update the version. I'm facing this error when trying to install 4.0.0 now.

live627

I have pushed a new release, 4.0.1, which addresses this issue. Thanks for reporting!

Shades.

SMF 2.1.3 (Fresh Install)
Custom Form Mod   4.0.1
PHP 8.0

Uploaded through package manager, clicked on install and I'm getting this error:

QuoteError
Type of error
Database
Error message
Database Error: Table '******_******.***_cf_forms' doesn't exist
File
/home/******/public_html/******/Packages/temp/upgrade.php
Line
23
URL of page causing the error
https://******.com/index.php?action=admin;area=packages;sa=install2;package=custom-forms_4-0-1.tgz;pid=0

Backtrace information
#0: smf_db_error()
Called from /home/******/public_html/******/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home/******/public_html/******/Sources/DbPackages-mysql.php on line 361
#2: smf_db_add_column()
Called from /home/******/public_html/******/Packages/temp/upgrade.php on line 23
#3: require()
Called from /home/******/public_html/******/Sources/Packages.php on line 1028
#4: PackageInstall()
Called from /home/******/public_html/******/Sources/Subs.php on line 6016
#5: call_helper()
Called from /home/******/public_html/******/Sources/Packages.php on line 91
#6: Packages()
Called from /home/******/public_html/******/Sources/Admin.php on line 499
#7: AdminMain()
Called from /home/******/public_html/******/index.php on line 191
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
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

live627

damn, I  didn't test a fresh install, only upgrades.

8vanima88

#2055
Type of error: General
The callable CustomForm\Integration::autoload could not be called.

Error log is being spammed this at 1-10k entries per few seconds. The forum is nearly unloadable. I've already uninstalled the package however it's still going nuts. Do you know how I can stop SMF from trying to call this mod since it's uninstalled?

Fixed:
Maintenance > Integration Hooks > Filter: autoload > Remove customForm hook.

live - Even on upgrade, it's still broken.

kwaka

Hello,

After patching SMF to 2.1.3 I tried to upgrade Custom Mod Form from 2.2.4 to 4.0.1. The Package Manager reports the following as per screen print:

You cannot view this attachment.

I don't wont to lose the existing forms so can you advise if I should uninstall the previous version before attempting to Install 4.0.1?

Thanks.
 

Steve

First, backup everything up. Then yes, select uninstall but make sure it has the option to remove data associated with this mod unchecked. If it doesn't have that option, back out and someone will help you.
DO NOT pm me for support!

Shades.

SMF 2.1.3
Custom Forum v4.0.2

When creating or editing a field Type "Information", I am getting this error:

QuoteThe database value you're trying to insert does not exist: text

QuoteError
Type of error
Undefined_vars
Error message
2: Undefined array key "field_text"
File
/home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php
Line
963
URL of page causing the error
https://******.com/?action=admin;area=modsettings;sa=customform;field_id=1;act=savefield

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 963
#1: SaveField()
Called from unknown on line -1
#2: call_user_func()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 66
#3: __construct()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 74
#4: create()
Called from /home/******/public_html/******/Sources/Subs.php on line 6076
#5: call_helper()
Called from /home/******/public_html/******/Sources/ManageSettings.php on line 144
#6: ModifyModSettings()
Called from /home/******/public_html/******/Sources/Admin.php on line 509
#7: AdminMain()
Called from /home/******/public_html/******/index.php on line 192

QuoteError
Type of error
Critical
Error message
The database value you're trying to insert does not exist: text
Function: SaveField
File
/home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php
Line
965
URL of page causing the error
https://******.com/?action=admin;area=modsettings;sa=customform;field_id=1;act=savefield

Backtrace information
#0: smf_db_error_backtrace()
Called from /home/******/public_html/******/Sources/Subs-Db-mysql.php on line 201
#1: smf_db_replacement__callback()
Called from unknown on line -1
#2: preg_replace_callback()
Called from /home/******/public_html/******/Sources/Subs-Db-mysql.php on line 409
#3: smf_db_query()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 965
#4: SaveField()
Called from unknown on line -1
#5: call_user_func()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 66
#6: __construct()
Called from /home/******/public_html/******/Sources/CustomForm/ManageCustomForm.php on line 74
#7: create()
Called from /home/******/public_html/******/Sources/Subs.php on line 6076
#8: call_helper()
Called from /home/******/public_html/******/Sources/ManageSettings.php on line 144
#9: ModifyModSettings()
Called from /home/******/public_html/******/Sources/Admin.php on line 509
#10: AdminMain()
Called from /home/******/public_html/******/index.php on line 192
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
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

PANIC12

SMF Version 2.1.3
Custom Forms 4.0.2

Hi- I had custom forms installed before upgrading to 2.1.3, so I deleted my old packaged, along with the database info so I could have a fresh start. Everything installs successfully, but when I go to create a form, I get a white screen when I try to add a field. I get 400+ error messages, with this being the only critical message:

The database value you're trying to insert does not exist: text
Function: SaveField

Advertisement: