Advertisement:

Author Topic: Custom Form Mod  (Read 556923 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,222
    • StoryBB/StoryBB on GitHub
Re: Custom Form Mod
« Reply #1840 on: February 14, 2019, 02:32:06 AM »
Also define “doesn’t work”.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • vgkfan83 on Facebook
    • @vgkfan83 on Twitter
Re: Custom Form Mod
« Reply #1841 on: February 24, 2019, 07:25:03 PM »
Also define “doesn’t work”.


Field 'title' doesn't have a default value
File: /storage/ssd4/929/1691929/public_html/Sources/ManageSettings.php
Line: 2533

Code: [Select]
array('id_form')

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,320
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Form Mod
« Reply #1842 on: February 25, 2019, 07:00:32 AM »
Change the column to allow null:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NULL
or, give it a default value as empty string:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NOT NULL DEFAULT ''
(where table `x` is the table that contains the title column....   not sure which one, off the top of my head)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • vgkfan83 on Facebook
    • @vgkfan83 on Twitter
Re: Custom Form Mod
« Reply #1843 on: February 28, 2019, 12:48:29 PM »
Change the column to allow null:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NULL
or, give it a default value as empty string:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NOT NULL DEFAULT ''
(where table `x` is the table that contains the title column....   not sure which one, off the top of my head)

Is this in ManageSettings.php? If so, I can't find the code or I don't know where to put it.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,435
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Custom Form Mod
« Reply #1844 on: February 28, 2019, 01:03:43 PM »
No, that would be something you would have to do to your database, for example through phpMyAdmin.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Alexa Lynne

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
  • Transgender Women ARE Women!
    • vgkfan83 on Facebook
    • @vgkfan83 on Twitter
Re: Custom Form Mod
« Reply #1845 on: March 04, 2019, 06:09:43 PM »
Change the column to allow null:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NULL
or, give it a default value as empty string:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NOT NULL DEFAULT ''
(where table `x` is the table that contains the title column....   not sure which one, off the top of my head)

I'm about to give up, honestly.  I can't find it anywhere in my database and my hosting provider isn't any help.

Offline dorukum123

  • Newbie
  • *
  • Posts: 5
Re: Custom Form Mod
« Reply #1846 on: April 20, 2019, 04:01:20 PM »
Hey everyone,

I am trying to install this mod to my smf 2.0.15. I was able to install it and I can see index.php?action=form which is empty, however when it comes to access index.php?action=admin;area=modsettings;ff81d36=f2f5d08913f7e09f56d2a68b445a7b72 to create  forms, I see a blank page.

I already reinstalled twice however it is not working. Can you please help?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,320
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Form Mod
« Reply #1847 on: April 21, 2019, 10:01:12 AM »
well, additional problem now -- if you have installed twice, you probably have duplicated code.

original problem -- did you receive any errors on registration?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline dorukum123

  • Newbie
  • *
  • Posts: 5
Re: Custom Form Mod
« Reply #1848 on: April 21, 2019, 10:44:48 AM »
I haven't received any error but removed / reinstalled the pack. Still seeing blank page :(

IS there any other custom form I can use?

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: Custom Form Mod
« Reply #1849 on: April 21, 2019, 12:51:35 PM »
I haven't received any error but removed / reinstalled the pack. Still seeing blank page :(

IS there any other custom form I can use?

What form would you like to make? You could always create one on your own without all the bloat and limitations of a mod

Offline dorukum123

  • Newbie
  • *
  • Posts: 5
Re: Custom Form Mod
« Reply #1850 on: April 21, 2019, 02:40:18 PM »
I haven't received any error but removed / reinstalled the pack. Still seeing blank page :(

IS there any other custom form I can use?

What form would you like to make? You could always create one on your own without all the bloat and limitations of a mod


Hey, I want to create a custom form where the user will answer the questions and it will automatically create a thread on specific category. It is weird that I can't install it :(

fyi; I am new to SMF

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,320
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Form Mod
« Reply #1851 on: April 21, 2019, 07:44:14 PM »
in which case, this mod IS the best option....

Ok...  When you say "removed" - do you mean "uninstalled" or "deleted"? (They are two very different things)

Are you using the default theme? If not, did you select the checkbox to install the mod into your custom theme(s)?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline dorukum123

  • Newbie
  • *
  • Posts: 5
Re: Custom Form Mod
« Reply #1852 on: April 23, 2019, 11:13:59 AM »
Attaching a screenshot. So I only delete / install packages from the package manager.

When I checked now, I can see that the setup goes to my default theme instead of my custom one. But I can't edit the path.

What should I do to apply this to my current theme?

I also go back to old theme however it is still now allowing me to use the mod anyway.

I also added what exactly I see when I try to use the mod.

Thanks.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,320
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Form Mod
« Reply #1853 on: April 23, 2019, 01:26:04 PM »
if you DELETE from the package manager, then you remove any capability of actually uninstalling the mod automatically.
If you delete a version of the mod and then install another version, then you have duplicated the install.

you must uninstall, then delete or install

so, to get it into your custom theme -- uninstall the mod.
reinstall the mod, this time, check your theme during the installation process.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline dorukum123

  • Newbie
  • *
  • Posts: 5
Re: Custom Form Mod
« Reply #1854 on: April 23, 2019, 01:28:58 PM »
if you DELETE from the package manager, then you remove any capability of actually uninstalling the mod automatically.
If you delete a version of the mod and then install another version, then you have duplicated the install.

you must uninstall, then delete or install

so, to get it into your custom theme -- uninstall the mod.
reinstall the mod, this time, check your theme during the installation process.

I understand what you are saying.

Did you check the screenshots? I already uninstalled and then even deleted afterwards.

I am able to remove the mod and install it from scratch. And during the installation, it doesnt ask me to choose the theme. I also tried with the default theme as it is choosing that one.

Do you mind sharing a discord/ts or something for contacting you in private for this?

Please help.. need this one desperately.

Offline Atomixx

  • Semi-Newbie
  • *
  • Posts: 29
Re: Custom Form Mod
« Reply #1855 on: May 01, 2019, 10:27:25 PM »
Change the column to allow null:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NULL
or, give it a default value as empty string:
Code: [Select]
ALTER TABLE `x` CHANGE `title` `title` TEXT NOT NULL DEFAULT ''
(where table `x` is the table that contains the title column....   not sure which one, off the top of my head)

I'm about to give up, honestly.  I can't find it anywhere in my database and my hosting provider isn't any help.

I had the same exact problem. Off the top of my head I cant remember, but if you send me your error message I'll be able to help you fix it. You can fix it through phpmyadmin.

Offline Deathinflames

  • Newbie
  • *
  • Posts: 2
Re: Custom Form Mod
« Reply #1856 on: June 07, 2019, 06:27:32 PM »
This is a great mod, we've been using it for quite some time and the reason i am making this post is to receive clarification on how to deal with people that attempt to the view the forms while not logged in. Currently it just displays a blank page leaving the user confused. How might i go about adding some simple text informing the user that they need to login to see the form?

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,051
  • Gender: Male
    • Macedonian electronics forum
Re: Custom Form Mod
« Reply #1857 on: June 08, 2019, 03:54:44 AM »
Did you set the permissions properly (guests can see the forms)?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."