[ABD] Customizable Forms

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] Customizable Forms

Post by keith10456 »

Thanks for the update... Glad to see you're going to continue working on this :)
evshell18
Registered User
Posts: 25
Joined: Mon Aug 06, 2012 9:23 pm
Location: Harrisburg, PA

Re: [BETA] Customizable Forms

Post by evshell18 »

I've added a list of "Planned Features" to the OP, so if you've requested something, please check there to make sure that 1) it's there and 2) it's described how you've envisioned it (or if not exactly the same, at least it will work for your needs).

The only thing I purposefully left out for now is:
Mess wrote:If you click edit on your "application" post it would go back to the actual form. Which made it much easier for my users to keep the form answers updated.
I understand the desire for this feature, but it seems like a whole lot of effort for minimal gain. Unless I actually saved the answers to a data table (which I'm not doing right now, since it's a one-and-done forms mod, not a specialized CMS), I'd have to parse it all out to determine what answers were provided in order to put them back into the form again. If the BBCode formatting is implemented, I'd have to check against that to determine where the answer actually is in the post. It seems like a lot of work when really they could just submit a 2nd form and you'd just go off of that instead of the original, right? or maybe I'm missing something...
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [BETA] Customizable Forms

Post by Mess »

Yes, I realize it is a tall order. The way I get around it right now is like you describe. People just submit a new form.
I was hoping you had a "easy" solution up your sleeve. But I agree, they solution you describe does not sound easy, or worth the effort.

I'm happy to see this is not abandoned. :)
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

Re: [BETA] Customizable Forms

Post by idontwantausername »

Thanks for this MOD it's great and works very well.

Just a quick thing, the posts are formatted fine, but when I click edit on a post submitted from a form, the formatting is lost. This includes the bold and italic text, the spacing, and the bullet points. Any way to correct this?

Thank you.
evshell18
Registered User
Posts: 25
Joined: Mon Aug 06, 2012 9:23 pm
Location: Harrisburg, PA

Re: [BETA] Customizable Forms

Post by evshell18 »

idontwantausername wrote:Thanks for this MOD it's great and works very well.

Just a quick thing, the posts are formatted fine, but when I click edit on a post submitted from a form, the formatting is lost. This includes the bold and italic text, the spacing, and the bullet points. Any way to correct this?

Thank you.
Yeah, that's because I had to actually submit the post as a parsed post for it to show up correctly, due to issues I was having with getting it to work with BBCode. On the site we use it regularly I have a WYSIWYG editor so we never really noticed this issue. I'll see if I can get a real fix to it done.

[Edit] Actually on 2nd look, looks like I did fix that and the newest version has the BBCode if you edit it. Try getting the newest version, and let me know if it is still happening.
idontwantausername
Registered User
Posts: 219
Joined: Fri Nov 09, 2007 8:25 pm

Re: [BETA] Customizable Forms

Post by idontwantausername »

evshell18 wrote:
idontwantausername wrote:Thanks for this MOD it's great and works very well.

Just a quick thing, the posts are formatted fine, but when I click edit on a post submitted from a form, the formatting is lost. This includes the bold and italic text, the spacing, and the bullet points. Any way to correct this?

Thank you.
Yeah, that's because I had to actually submit the post as a parsed post for it to show up correctly, due to issues I was having with getting it to work with BBCode. On the site we use it regularly I have a WYSIWYG editor so we never really noticed this issue. I'll see if I can get a real fix to it done.

[Edit] Actually on 2nd look, looks like I did fix that and the newest version has the BBCode if you edit it. Try getting the newest version, and let me know if it is still happening.
Hi sorry for the late reply.

I've had the latest version (1.0.3) since I installed it.

Also I was wondering if it would be possible to implement something so we can choose who posts the form. I.e. I have a user called "bot" which sends out welcome PMs, mass PMs, ban notifications etc automatically. It would be awesome if it would also post selected forms too.
User avatar
Neo
Registered User
Posts: 113
Joined: Tue Jul 07, 2009 5:02 am
Location: Holland

Re: [BETA] Customizable Forms

Post by Neo »

idontwantausername wrote:Also I was wondering if it would be possible to implement something so we can choose who posts the form. I.e. I have a user called "bot" which sends out welcome PMs, mass PMs, ban notifications etc automatically. It would be awesome if it would also post selected forms too.
+1
User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier

Re: [BETA] Customizable Forms

Post by javiexin »

Great mod.

One caviet though: it does not have any form of multi-language support. So, for example, to have the same form in two languages, there should be two different forms (and not the same one with different language strings). And besides, the form builder has to be in English only (well, unless the installer is changed, and then it will be in another language, not configurable). These are just examples of what I mean.

A very good way to achieve the same result, but with full multi-language support, could be to use the Custom Profile Fields code from the core phpbb, to define fields, names, descriptions, etc., and then use this MOD for building the actual forms, combining the fields and (language specific) text strings... If the way CPFs are stored would be used as well, then the storage of the form responses would be separate from the actual display, so editing would be much easier (as someone requested).

Hope this helps,
-javiexin
User avatar
pertneer
Registered User
Posts: 205
Joined: Tue Dec 05, 2006 3:56 pm

Re: [BETA] Customizable Forms

Post by pertneer »

I had a couple of issue with the install file
  • find in includes/constants.php is out of order so second find fails, I switched order of find and error was solved
  • copy of umil folder incorrect, I changed copy information to root/*.* to *.* and all copied correctly
after first two are fixed then you get this error "Undefined index: custom_forms_enable" this is from a changes made to includes/functions.php line ~4636
changed from

Code: Select all

		'S_FORMS_ENABLED'		=> ($config['custom_forms_enable']) ? true : false,
to this code

Code: Select all

		'S_FORMS_ENABLED'		=> (isset($config['custom_forms_enable']) && $config['custom_forms_enable']) ? true : false,
Also UMIL is not the most current version as well as the

After creating a category I proceeded to create a form.
After clicking the "create form" button I get this error

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_forms.php on line 394: Undefined index: forms_recipients_groups
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_forms.php on line 396: Undefined index: forms_permissions_groups
I would have to assume the permissions need set first
I intend to live forever. So far, so good.
Steven Wright
User avatar
pertneer
Registered User
Posts: 205
Joined: Tue Dec 05, 2006 3:56 pm

Re: [BETA] Customizable Forms

Post by pertneer »

Are you planning on a github repo?
I intend to live forever. So far, so good.
Steven Wright
User avatar
pertneer
Registered User
Posts: 205
Joined: Tue Dec 05, 2006 3:56 pm

Re: [BETA] Customizable Forms

Post by pertneer »

After clicking the "create form" button I get this error

Code: Select all

    [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_forms.php on line 394: Undefined index: forms_recipients_groups
    [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_forms.php on line 396: Undefined index: forms_permissions_groups
open includes/acp/acp_forms.php
find

Code: Select all

					$recipients_groups = $_POST['forms_recipients_groups'];
					$recipients_users = request_var('forms_recipients_users', '', true);
					$permissions_groups = $_POST['forms_permissions_groups'];
change to

Code: Select all

					$recipients_groups = request_var('forms_recipients_groups', '' , true);
					$recipients_users = request_var('forms_recipients_users', '', true);
					$permissions_groups = request_var('forms_permissions_groups', '' , true);
I intend to live forever. So far, so good.
Steven Wright
mKdclan
Registered User
Posts: 51
Joined: Wed Oct 03, 2012 8:17 pm
Location: Boost-CS
Name: b0st3r cs

Re: [BETA] Customizable Forms

Post by mKdclan »

for subsilver2 ??

Code: Select all

https://Boost-cs.net/
User avatar
Stingraynut
Registered User
Posts: 10
Joined: Wed Mar 21, 2012 7:49 am

Re: [BETA] Customizable Forms

Post by Stingraynut »

WOW this is what I've been looking for, took me a few days of searching and it seems many others want this form to post facility too.

I haven't installed a mod before.

I read through three help pages https://www.phpbb.com/kb/article/how-to-install-mods/ and https://www.phpbb.com/mods/installing/ and http://phpbbandbbcodes.com/viewtopic.php?f=7&t=158

It looks like a lot of work and another steep learning curve.
I work a lot with Wordpress, where plugins self install, ditto Joomla.
I use Cpanel to upload/download and edit - quicker than ftp
I know HTML & CSS well, can edit PHP and JS, haven't done much with MySql except replace MF5# passwords

Please could someone give me specific instructions for installing this mod ?
If I have to do MySql queries, then I'm not asking for the whole list, just where the instructions are'
ie a simplified list of steps to take.

My plan is to have the form as a sticky at the top of a topic. When the form is submitted it becomes the top post under that topic.
Hope someone can help.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [BETA] Customizable Forms

Post by Jessica »

Stingraynut wrote:WOW this is what I've been looking for, took me a few days of searching and it seems many others want this form to post facility too.

I haven't installed a mod before.

I read through three help pages https://www.phpbb.com/kb/article/how-to-install-mods/ and https://www.phpbb.com/mods/installing/ and http://phpbbandbbcodes.com/viewtopic.php?f=7&t=158

It looks like a lot of work and another steep learning curve.
I work a lot with Wordpress, where plugins self install, ditto Joomla.
I use Cpanel to upload/download and edit - quicker than ftp
I know HTML & CSS well, can edit PHP and JS, haven't done much with MySql except replace MF5# passwords

Please could someone give me specific instructions for installing this mod ?
If I have to do MySql queries, then I'm not asking for the whole list, just where the instructions are'
ie a simplified list of steps to take.

My plan is to have the form as a sticky at the top of a topic. When the form is submitted it becomes the top post under that topic.
Hope someone can help.
Take a look at this: https://www.phpbb.com/mods/opening/

once you open up the instructions file, you follow them. You have to unzip the mod and upload the mod files -- the ones in the root folder (if there are any files for a mod). The edits are easy. If it says find a line in includes/functions.php, you open that file, find the line, and add before or after or replace with whatever it says to add before or after or replace. Then you follow the DIY instructions, if any

You can also use automod to make installing mods easier. https://www.phpbb.com/customise/db/offi ... tomod/faq/
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
Stingraynut
Registered User
Posts: 10
Joined: Wed Mar 21, 2012 7:49 am

Re: [BETA] Customizable Forms

Post by Stingraynut »

Thanks for the reply - Automod looks good - what chances of success using it with this mod?

Return to “[3.0.x] Abandoned MODs”