Advertisement:

Author Topic: Custom Form Mod  (Read 568356 times)

Offline shadav

  • Full Member
  • ***
  • Posts: 607
  • Gender: Female
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Custom Form Mod
« Reply #1860 on: September 12, 2019, 04:15:30 PM »
look in your server error log....   when you get a blank page, it's a php core error....    and you need to look at the server log to figure out what.
unfortunately there is nothing in my error logs, but thank you

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,429
  • Gender: Male
    • Kindred-999 on GitHub
Re: Custom Form Mod
« Reply #1861 on: September 12, 2019, 04:42:23 PM »
not your SMF error log... the SERVER error log.

If you got a blank screen, several times, without the error being recorded, then you have issues with your SERVER configuration - talk to your host
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 sirfpsycho

  • Jr. Member
  • **
  • Posts: 109
Re: Custom Form Mod
« Reply #1862 on: September 24, 2019, 01:40:50 AM »
how does it work? I installed it but opening https://example.com/index.php?action=form
it gives: Screenshot_1.png

I added these setting in admin panel:

Screenshot_2.png
Screenshot_3.png

Offline ladyquack

  • Newbie
  • *
  • Posts: 7
Re: Custom Form Mod
« Reply #1863 on: November 12, 2019, 02:10:55 PM »
I just tried installing this modification on a clean copy of 2.0.15 and it was also throwing HTTP ERROR 500. When I checked my error log, it shows PHP Fatal error: Redefinition of parameter $nul in /home/xcxcx/public_html/Sources/ManageSettings.php on line 3310. The string of coding on that line is "function list_CustomForm_fields($nul, $nul, $nul, $id)". I'm not exactly sure with how to proceed fixing this issue.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,951
Re: Custom Form Mod
« Reply #1864 on: November 12, 2019, 02:21:53 PM »
Change the second $nul to $nul2 and the third to $nul3 but leave the first alone.

Offline ladyquack

  • Newbie
  • *
  • Posts: 7
Re: Custom Form Mod
« Reply #1865 on: November 12, 2019, 02:32:50 PM »
Change the second $nul to $nul2 and the third to $nul3 but leave the first alone.

That seemed to do the trick. Thank you so much!

Offline Atomixx

  • Semi-Newbie
  • *
  • Posts: 30
Re: Custom Form Mod
« Reply #1866 on: November 16, 2019, 08:03:09 PM »
Anyway, for the dropdown box be able to list all the members of a member group for example?

Offline petewadey

  • Jr. Member
  • **
  • Posts: 176
Re: Custom Form Mod
« Reply #1867 on: February 09, 2020, 08:24:13 AM »
I'm running 2.0.17. When updating to php 7.2, I lost a lot of admin functionality on my site. It was suggested that a mod might be the cause, so one by one I uninstalled my mods and retested php 7.2. When I deleted this mod, all was fixed. Any ideas? as I would really like to keep this mod. Thanks

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,597
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Custom Form Mod
« Reply #1868 on: February 09, 2020, 06:36:31 PM »
What kind of problems did you get while using the mod?
Can you describe what functionalities did you lose and did you get any errors in the log that might help identify the issue?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline petewadey

  • Jr. Member
  • **
  • Posts: 176
Re: Custom Form Mod
« Reply #1869 on: February 10, 2020, 04:54:14 AM »
I didn't have any user problems, only Admin. ie Admin>Configuration>Security and Moderation would get a white page with "This page isn't working" message. Same thing on some other Admin pages. No error messages. Thanks

Offline Plus

  • Jr. Member
  • **
  • Posts: 156
  • Gender: Male
    • turkishairforce.org on Facebook
    • Oy Turkiyem
Re: Custom Form Mod
« Reply #1870 on: May 13, 2020, 03:05:19 AM »
I'm running 2.0.17. When updating to php 7.2, I lost a lot of admin functionality on my site. It was suggested that a mod might be the cause, so one by one I uninstalled my mods and retested php 7.2. When I deleted this mod, all was fixed. Any ideas? as I would really like to keep this mod. Thanks

follow this : managesettings.php Change the second $nul to $nul2 and the third to $nul3 but leave the first alone.

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1871 on: July 14, 2020, 05:38:29 AM »
Hi,

so theres actually no way for attachments or ?
cause this would be an awsome mods for Reviews or Announcements, so a User can fill the fields , upload attachments (images) to the Post.

greets
andi

Offline Taelt

  • Newbie
  • *
  • Posts: 3
Re: Custom Form Mod
« Reply #1872 on: July 21, 2020, 09:17:51 PM »
Hi All,

The mod seems to be working fine with the changes done through the topic (Thanks everyone!)

But... i am having an odd "bug" Only the first Custom is showing up.

Even if i try accessing the new ones i created, i cant access them (although i am Admin...) I have even tried duplicating the first entry in the database (and changing its number obviously) and still not working. Only the first custom form shows up when accessing "action=form;" It should show all custom forms here...

Can anyone give me a little hand with this? I have tried searching in Managesettings.php and CustomForm.php but cant find anything that helps regarding the forms access :(

Thanks in advance!

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1873 on: July 25, 2020, 08:30:16 AM »
so, no image attachment option or ?
sorry, havent found others then requests after an image option ....

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,335
  • Gender: Male
    • docsPT
Re: Custom Form Mod
« Reply #1874 on: July 26, 2020, 12:08:56 AM »
This is a feature already requested and discussed in this topic sometimes, but, unfortunately, no one was able to do it.



so, no image attachment option or ?
sorry, havent found others then requests after an image option ....


Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1875 on: August 02, 2020, 06:50:01 AM »
what a shame, that would be the perfect mod , if there would be some sort of image attachment /upload .....

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1876 on: August 16, 2020, 03:54:29 AM »
hi,

is it possible to "copy" a Form to another "Subforum" ?
we have many Subforums and i wanna add the same formular to all the Subforums...

so to specify:
I have a Forum Category: Announcements
with Subforums of Brands (i.e. 20 Brands)
if a user wanna Post in one Subforum, they got the Same Custom Form to fill out, but it will be posted to the correct Forum.
So i dont need to add all fields to a new Form except the Board it will be posted....
i hope you understand what i wanna to say :)
« Last Edit: August 16, 2020, 04:09:00 AM by Sectomy »

Offline FragaCampos

  • Sophist Member
  • *****
  • Posts: 1,335
  • Gender: Male
    • docsPT
Re: Custom Form Mod
« Reply #1877 on: August 16, 2020, 06:09:12 PM »
This mod creates two tables in the database: cf_fields and cf_forms.
I believe you only need to copy those two tables and add them to the database. Just try it.

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1878 on: August 21, 2020, 03:02:33 AM »
yeah, ive done that, and it works :) thanx !
but now i got 2 Errors in my Error Log:

Code: [Select]
8: Undefined index: CustomForm_tabheader
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /Admin.php
Zeile: 226
in this Line:
Code: [Select]
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
225: //Place the Custom Form Mod Link.
==>226:  'customform' => array($txt['CustomForm_tabheader']),
227: // 'shout' => array($txt['shout']),
228: // Note the comma!! The setting with automatically appear with the first mod to be added.

and this one if someone submits a form:

Code: [Select]
2: Invalid argument supplied for foreach()
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: Subs-Post.php
Zeile: 3091

this is in the line:

Code: [Select]
3089: // Ignore any parents on the top child level.
3090: //!!! Why?
==>3091: foreach ($parents as $id => $parent)
3092: {
3093: if ($parent['level'] != 0)

any Ideas ?

greets
andy

Offline Sectomy

  • Semi-Newbie
  • *
  • Posts: 87
Re: Custom Form Mod
« Reply #1879 on: August 21, 2020, 06:59:27 AM »


Code: [Select]
8: Undefined index: CustomForm_tabheader
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: /Admin.php
Zeile: 226
in this Line:
Code: [Select]
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
225: //Place the Custom Form Mod Link.
==>226:  'customform' => array($txt['CustomForm_tabheader']),
227: // 'shout' => array($txt['shout']),
228: // Note the comma!! The setting with automatically appear with the first mod to be added.


Fixed: This line: "$txt['CustomForm_tabheader'] = 'Custom Forms';" is missing from Modifications.english.php' file.