Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Prayer Connector Extension > Remove "Prayer Request" field
Total Posts: 10 - Pages (1): [1]
Author: Adam Craig
Posted: Feb 25 2008 - 06:16 AM
Subject: Remove "Prayer Request" field
Hello!

I am interested in removing/deactivating the "Prayer Request" text body field from prayer submission and display on the frontend. I would consider manipulating the template files, however, I notice that the field is required, so I hesitate to proceed without further advice from this community.

Thanks,
- Adam
user picture Author: Mark Stephenson
Posted: Feb 25 2008 - 07:55 AM
Subject: re: Remove "Prayer Request" field
Adam,

Are you just wanting people to be able to post a title and that is it?

Mark
Author: Adam Craig
Posted: Feb 25 2008 - 08:29 AM
Subject: re: Remove "Prayer Request" field
Mark,

That is correct. Essentially, as a courtesy to those on the prayer list who may wish to keep their situations confidential, we only want people to be able to post the name of the individual and not elaborate on their condition.

Thanks,
- Adam
Author: Dave Slayback
Posted: Feb 26 2008 - 03:51 PM
Subject: re: Remove "Prayer Request" field
Hi Adam,

I checked and found that if you do just select Subject for Displayed and Required fields in the Flexform, that it does show the Message field too. That issue will be fixed in the next version (released in 2-3 months). However, you can get that functionality working now by editing the template. Just remove the references to ###MESSAGE### and ###FORM_MESSAGE###. So as long as you set the Display/Require fields to Subject only, then the Message field will not be required.

-Dave
Author: Adam Craig
Posted: Feb 26 2008 - 06:32 PM
Subject: re: Remove "Prayer Request" field
Dave,

Thanks for your follow-up and assistance. I have made the changes you recommended, however, the problem now is that when I try to add additional prayer requests to the first one, the following displays: "Your post has already been added. You do not need to send it again."

I presume this comes from a database check or some such thing by which the scripts detect the same thing (nothing) being entered as the "message," triggering the board to reject new entries of the same data.

Thanks,
- Adam
Author: Adam Craig
Posted: Mar 04 2008 - 09:54 AM
Subject: re: Remove "Prayer Request" field
I realise that it is not custom here to "bump" threads, but as a week has passed since the posting of my previous message here, I just thought I would ensure that it was continuing to receive attention.

Thanks for understanding,
- Adam
Author: Dave Slayback
Posted: Mar 04 2008 - 10:31 AM
Subject: re: Remove "Prayer Request" field
Hi Adam,

Sorry missed the message -- a bump is fine. That message comes if you send an email with the same message content within 3 minutes of each other. This is to prevent re-posting of messages or people thinking their post did not go through on slow servers. So it will work, as long as you are not trying to post many requests at once.

That is why the best way to handle this is to make the "message" not the "subject" as supported, and the "subject" as not required. This will require an update of the extension. Also, I can see of allowing an option to turn off the checking of time. It will be at least a month out before I would be able to make these changes. However, your solution should work for now as long as you do not need to post many requests at once.

-Dave
Author: Adam Craig
Posted: Mar 04 2008 - 09:51 PM
Subject: re: Remove "Prayer Request" field
Hey Dave,

Thanks for the response, that explaned alot! If the time check cannot be turned off, do you know of a way to change the time duration requirement (ie. from 3 mins (180000 ms) to 5 ms, or some such thing).

Thanks!
- Adam
Author: Dave Slayback
Posted: Mar 05 2008 - 08:54 AM
Subject: re: Remove "Prayer Request" field
Adam,

There is no way to do it without editing code. That is a feature that would need to be added. If you want to edit the code, and know a little PHP, you can go to Ext Manager->Loaded Extensions->WEC Connector->Edit Files. Then choose the pi1/class.tx_wecconnector_pi1.php

And then edit the line around 1240, and change it:

$last3Minutes = mktime() - (3 * 60);
to:
$last3Minutes = mktime() - 5;


Note that if you do not have a certain flag turned on, you may not be able to edit through Ext Manager. If you have Quixplorer installed you can use that or you can go through FTP and find the file in typo3conf/ext/wec_connector/pi1/class.tx_wecconector_pi1.php.

-Dave
Author: Adam Craig
Posted: Mar 06 2008 - 07:01 AM
Subject: re: Remove "Prayer Request" field
Dave,

Thanks! Your suggestion worked perfectly. I went ahead and set the time check to "0".

Now, one additional question. The subscription emails still show a place for the "Message:". Any way to disable that?

Thanks,
- Adam
Total Posts: 10 - Pages (1): [1]
You must login to post a message to this conference.