I'm using filedepot in OpenAtrium (with the Filedepot feature.) That itself doesn't belong to this project, but I noticed that the currently broken links with the feature can be fixed by creating the URLs to files for notification emails with url() instead of hard coding them. This is probably because Organic Groups hooks into url() and modifies the address to include the group.

As I think using url() is also the Right Way to do it, I'm attaching a patch that I hope will be committed to Filedepot. This makes the URL's work with Organic Groups and also makes them more pretty whenever clean URLs is enabled.

Comments

zeip’s picture

StatusFileSize
new11.72 KB

Attached is a patch that supersedes the previous patch. This one contains a few additional similar url() changes, PLUS I've removed quite a lot of unnecessary global's in different files. Also fixed one typo (Fildepot vs. Filedepot) in the broadcast email. I hope someone would review these changes and, if they're ok, commit them to Filedepot.

cnamade’s picture

Title: Use url() for links in notification emails » errot notification emails when upload files
Issue tags: -url, -Organic Groups +notification

I have this message when i load file in depot folder

mail() [function.mail]: SMTP server response: 501 5.1.3 Invalid address in C:\wamp\www\drupal-6.19-prod\includes\mail.inc on line 194.

my adress mail il correct .

is there a issue for this problems ?

blainelang’s picture

@ZeiP: I was not able to apply your 2nd patch - it fails on the lib-ajaxserver.php changes.

blainelang’s picture

@cnamade: Don't believe anyone has reported this error as far as I know there have not been email sending issues.

cnamade’s picture

how to fix my problem, i'm a newbies.

zeip’s picture

StatusFileSize
new11.76 KB

blainelang, the file has apparently changed, I was able to apply the patch with command ”patch -p0 < file.patch”, but offset on lib-ajaxserver.php was 20 lines.

Attaching a fixed patch against current CVS.

zeip’s picture

Title: errot notification emails when upload files » Use url() for links in notification emails
Issue tags: -notification +url, +Organic Groups

cnamade, please post a new issue instead of using this one. You can use the form at http://drupal.org/node/add/project-issue/filedepot .

blainelang’s picture

Status: Needs review » Fixed

Thanks ZeiP, the patch applied cleanly and is now committed to CVS.

Status: Fixed » Closed (fixed)
Issue tags: -url, -email, -Organic Groups

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 5248b3f on master, 8.x-1.x by blainelang:
    Remove unnecessary globals and fixes to implement the url()
    
    Committing...