Quite a bit was done to the feedback.module v4.5.0 to help improve its appearance and functionality. All has been tested on a drupal v4.5.1 install.

BUG FIXES:

1. The feedback.module description wasn't showing up correctly in the drupal module admin page. fixed.

2. The feedback permission description was misleading. fixed.

3. The feedback_try_to_feedback_address () function doesn't always work when trying to conenct to certain MX servers. In fact, I couldn't get it to work at all, with several different users trying to send feedback. It doesn't fail gracefully as no mail will be sent.

AND NEW FEATURES:

4. Now, we still want to preserve the nice regex check for email validation, so that became the "basic validation option". The feedback_try_to_feedback_address () became a "advanced validation option" - since I presume it works as-is for some users.

5. I also removed a couple of the hard coded strings for the response messages, so now drupal admins can set their own messages for "response - success" and "response - failure". Helpful if your site is not in English. :)

6. The page header title is now also a configurable option. (removed hard coding)

7. I cleaned up the general admin page, seperating some of the options with line and paragraph breaks. Looks much better now.

That just about covers it.

[bpm]
drupal-dev@rainpepper.com

CommentFileSizeAuthor
#3 feedback_2.patch3.82 KBrainpepper
#1 feedback_1.patch4.68 KBAnonymous (not verified)
feedback_0.patch4.45 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

FileSize
4.68 KB

I just realized I broke the access perms with the previous patch. This patch negates the previous. Access perms fixed.

kbahey’s picture

Hello.

Thanks for these changes, they are really good and make a lot of sense.

A few of them have already been applied to the CVS HEAD.

Since 4.5.0 cannot be fixed and retagged (a very bad practice in development), all changes have to go to the CVS version.

So if you can kindly get the CVS version, and apply the patch to it, I will be more than happy to commit them to CVS.

If it helps, here are the results of a failed attempt to apply them to CVS. You can fix the three sections that failed:

Hunk #1 FAILED at 20.
Hunk #3 succeeded at 58 (offset 1 line).
Hunk #4 succeeded at 74 (offset 1 line).
Hunk #5 succeeded at 105 (offset 1 line).
Hunk #6 FAILED at 141.
Hunk #7 succeeded at 205 (offset -1 lines).
Hunk #8 FAILED at 337.

rainpepper’s picture

FileSize
3.82 KB

Alrighty, this is now patched against the CVS version. Please disregard all previous patches.

A couple of notes --

1. The previous fixes for the sender's address check are no longer neccessary - However, given the poor performance of the MX lookup, I believe it's better to default this feature of OFF. Fixed.

2. Newly settable Page header and response strings from previous patches remain the same, along with the interface cleanup.

3. The 'type' => MENU_CALLBACK setting broke access permissions on my drupal install (v4.5.1), so I commented it out.

4. Access perms description has changed (same as previous patch).

Let me know if there's any other questions.

thnx

kbahey’s picture

Hi

Thanks for the patches.

I applied them all except for the MENU_CALLBACK one. The reason is I have Drupal 4.5.0 and the CVS version of feedback, and it works fine without issues. So I am not sure what is wrong at your end.

What you can do is checkout the new version from here http://cvs.drupal.org/viewcvs/contrib/contributions/modules/feedback/ and give it a test drive.

If you find any bugs let me know.

daniel read’s picture

Thanks for the work on this patch!

FYI, I had to remove the 'type' => MENU_CALLBACK setting also or else the 'feedback' menu item would not show up in either the administer->menus screen or in the menu itself. I'm running on 4.5.1.

Another FYI for those applying this patch: be sure to go back to user permissions and reset your feedback permissions since this patch changes the name of the permission.

A side effect of this patch that could be undesirable for some: you MUST show the user email field on the form or the send won't work. It uses this value as the "From" address. A nice feature for the future might be to allow anonymous feedback such that if this field is ommitted some default "From" address would be used.

Dan

jkinberg@civicspacelabs.org’s picture

Using the latest version from CVS as listed previously in this thread (feedback.module,v 1.27). Having trouble, known error as listed above:
--------------------------------------------------------------
warning: fsockopen(): unable to connect to mx01.1and1.com:25 in /homepages/16/d90044543/htdocs/antnottv/modules/feedback.module on line 385.
--------------------------------------------------------------
Also, Bread Crumb navigation does not display on Feedback node. I would like the link back Home to be present there as it is for other nodes, simply for consistency.

Thanks for your help,
Josh

kbahey’s picture

Assigned: Unassigned » kbahey

> Having trouble, known error as listed above:
> warning: fsockopen(): unable to connect to mx01.1and1.com:25 in
> /homepages/16/d90044543/htdocs/antnottv/modules/feedback.module on line 385.

This may be dependant on your ISP.
Many ISP block all traffic on port 25 (SMTP) from entire subnet blocks that are known to be for home users (e.g. DSL, dialup, cable, ...etc).

The reason they do this, is SPAM, and trojans that create spambots on unsuspecting users' machines. Some ISPs are more aggressive and block host machines that are block listed (rightly or wrongly).

To verify that this is the case, go to the same machine you have Drupal installed, and try to connect manually to that mx host. For example, if this is Linux or some UNIX variant, then do:

telnet mx01.1and1.com 25

See if you get a prompt. I tried from here, and it worked.

If 1and1.com is indeed blocking your host, then you can contact them and ask them to unblock it.

Otherwise, just uncheck the checkbox that says 'validate sender's email address' in the feedback setup.

kbahey’s picture

>Also, Bread Crumb navigation does not display on Feedback node. I would like the link back
> Home to be present there as it is for other nodes, simply for consistency.

OK. I added htis feature to feedback. It now displays a breadcrumb to Home

Get it from here, and give it a try.

http://cvs.drupal.org/viewcvs/contrib/contributions/modules/feedback/fee...

jkinberg@civicspacelabs.org’s picture

Thank you.
Bread Crumb now displays with this latest version.
I did not check if my host is blocking port 25, I would assume so.
I disabled the "validate sender's email address" option, and the form now works.

Anonymous’s picture