Comments

mikejoconnor’s picture

This is on my list of things to do. I believe it will be the first module I convert. I'm glad your requesting it, it gives me some additional motivation to do so.

dalad’s picture

StatusFileSize
new17.64 KB

I wrote the code for the Drupal 6 port. You can try test it, it works nicely for me.
Attached, the package that contains
* upgrade patches
* tar.gz of the module

I'm looking forward to hear if everything works fine for you too. Give it a try!

mikejoconnor’s picture

Thank you. I'll take a look at this and let you know.

victoria_b’s picture

Category: feature » bug
Priority: Normal » Critical
StatusFileSize
new63.31 KB

dalad - Thanks for porting this module to Drupal 6.

I'm currently using the Drupal 6 module (and not the patches) yet when I upload an avatar I get the following error:
"The selected file sites/default/files/pictures/picture-6.jpg could not be uploaded, because the destination is not properly configured."

The image is uploaded to the pictures directory and an issue is stored in the approval queue for moderation however the image is absent.

Any ideas or feedback would be much appreciated!

Thank you.

dalad’s picture

StatusFileSize
new12.53 KB

Uppss.. so much time has passed I really forgot about this... I made some little modifies since I posted the version you are using. Would you mind try to see if the version I attach here gives you the same (or any other) problems?

victoria_b’s picture

Hi - thanks for the new code. However it's now causing 2 issues:

When uploading an avatar the following errors occur:

* The selected file sites/default/files/avatar_selection/avatar004.jpg could not be uploaded, because the destination is not properly configured.
* warning: copy(http://localhost/website/avatar_selection/approval_avatar.jpeg) [function.copy]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in F:\wamp\www\website\sites\all\modules\avatarapproval\avatarapproval.module on line 187.

Any advice on what could be causing the above?

Regards

Victoria

dalad’s picture

StatusFileSize
new22.28 KB

Hi victoria, sorry for the late response.
The first, is a drupal error. A further investigation revealed it is raised when the files directory (in your case sites/default/files/avatar_selection)
is not writable by apache. Be sure the owner of the directory is apache or an user of the apache group, and that the directory is writable by that user.
Also, if you have a sort of firewall (SELinux for instance), check that it allows the directory to be written. I know this is quite an annoying issue, ask for help if you need.

The second, had to do with my version of the module, and is fixed in this attachment. I have introduced the feature of assigning a temporary avatar for those users which have submitted a picture and are awaiting administrator approval, as this was needed in a project of mine.
I think this version is ready to be tested by the community, and I'd like to hear a word from mikejoconnor about this.
If you are looking for a (co)mainteiner, I'd be happy to apply.

dalad’s picture

Status: Active » Closed (fixed)

version 6.x-1.x-dev is out