Drupal 6?

dpfiffe - April 3, 2008 - 15:01
Project:Image watermark
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:David Stosik
Status:needs work
Description

oh man i would love to have this working on one of my drupal 6 sites.... any plans for porting it?

#1

kbahey - April 3, 2008 - 15:26

As usual, the answer is when one of the following happens:

- Someone submits a working and tested patch.
- We need it for a client site.
- A clients funds the development.
- We have free time to do it (unlikely).

#2

dpfiffe - April 3, 2008 - 18:04

Fair enough. thanks for the response.

#3

David Stosik - June 22, 2008 - 13:57
Version:5.x-1.x-dev» 5.x-1.0
Component:Miscellaneous» Code
Category:support request» task
Priority:normal» critical
Assigned to:Anonymous» David Stosik
Status:active» needs work

Hellon
Here is a first attempt 5 to 6 patch that applies to 1.0 version.
I was not able to make it work on node create, but it works a treat on node update, so any help is welcome.
Here is the link: watermark_5to6.patch.

Regards,
David

As I just realize there's a more recent dev version, going to make a patch for it. :)

Edit: OK, I think I spotted a part of my problem: in Drupal 6, validate operation seems to occur to early in node creation. Thus, image data is not filled in $node object...
Need to find a better hook than nodeapi.

Edit2: here is a link to the same patch applying to 5.x-dev version of watermark module: watermark_5to6_dev.patch.

The problem is the same as stated before: when creating image node, the watermark is not applied, as the "validate" operation of "hook_nodeapi" occurs before image module fills $node (thus, $node->new_file and $node->images are empty...).
I thought of using hook_image_alter, but this would imply that watermark is applied to original file, before resizing (then all images will get the watermark), so this is not a good solution.

Regards,
David

#4

kbahey - June 22, 2008 - 16:22
Priority:critical» normal

The patch does not apply.

Please create the patch against a check out from CVS with the tag DRUPAL-5.

See http://drupal.org/patch for details.

Also, attach patches here rather than to some remote site.

#5

David Stosik - June 22, 2008 - 20:44

I did not attach patch because I have not been able to attach files to my Drupal posts for a while (don't know why...).
The patches I provided apply to: 1.0 for the first, and 1.x-dev (the one available on the project page) for the second.
I don't know how to check out CVS repository, could you tell me please?

Thanks,
David

I forgot to say: to create the patch, I used "diff -Naurp watermark.old watermark", where watermark.old is directory of the version I started with (1.0 or 1.x-dev as I said before), and watermark is the directory I developped in.

#6

kbahey - June 22, 2008 - 20:52

The dev patch does not apply.

patching file watermark.module
Hunk #2 FAILED at 140.
Hunk #3 succeeded at 174 (offset 5 lines).
Hunk #4 succeeded at 255 with fuzz 1 (offset 5 lines).
Hunk #5 FAILED at 285.
Hunk #6 succeeded at 501 (offset 5 lines).
2 out of 6 hunks FAILED -- saving rejects to file watermark.module.rej

This is how you checkout from the cvs repository. http://drupal.org/node/321

Then you use cvs diff, as per here http://drupal.org/patch/create

#7

David Stosik - June 23, 2008 - 05:40

Do you try to apply it to 1.x-dev (the one I can download from project page), or do you still try on HEAD, which will never work, I know? :)

David

#8

David Stosik - June 23, 2008 - 19:43

#9

David Stosik - June 23, 2008 - 19:44

Why is HEAD older than DRUPAL-5 tag?

#10

kbahey - June 23, 2008 - 19:48
Version:5.x-1.0» 5.x-1.x-dev

Why are you confusing yourself?

I said use the DRUPAL-5 tag. Which was updated 5 weeks (for .module) and 2 weeks (for .info).

Why are you asking about HEAD?

Please follow the instructions I gave you.

#11

David Stosik - June 23, 2008 - 20:55
Version:5.x-1.x-dev» 5.x-1.0

Here it is, sorry the confusion.
I was not able to make a patch that renames po/ folder to translations/, so this patch only patchs .module and .info files. :)
PS: I seem to be able to attach file again. :)

The problem I had is still here: watermark is not applied on image creation, but it is well applied on image edition. :-\

AttachmentSize
watermark_5to6.patch 5.66 KB

#12

kbahey - June 23, 2008 - 23:22
Version:5.x-1.0» 6.x-1.x-dev
Status:needs work» fixed

Thank you.

The Drupal 6 dev version will appear here in 24 hours.

http://drupal.org/node/274032

#13

David Stosik - June 24, 2008 - 05:45
Status:fixed» needs work

As I said, it is not completely OK. :)

#14

David Stosik - June 30, 2008 - 13:22

Any help?

#15

BartVG - August 2, 2008 - 20:18

subscribing

#16

Starminder - November 6, 2008 - 17:07

subscribing

#17

Starminder - February 17, 2009 - 21:06

Will there be an official 6x dev release?

#18

kbahey - February 17, 2009 - 21:09

Yes. As soon as enough people test the -dev version and find it working well.

There are a few issues in the queue that says otherwise, so this will not happen spontaneously nor in a short time.

#19

Starminder - June 9, 2009 - 16:37

any new news? thanks

#20

jarizaro2 - June 14, 2009 - 02:31

waiting for news too.
Is this module working now in drupal 6? or is there any similar module working?
Thanks.

#21

inforeto - July 17, 2009 - 16:59

subscribing

#22

scotjam - September 11, 2009 - 18:45

subscribing

#23

parasolx - September 23, 2009 - 17:07

subscribing

#24

Hara Kim - October 13, 2009 - 22:09

Is this project dead?

#25

kbahey - October 13, 2009 - 23:38

It is not dead. If there are tested patches I will apply it.

#26

Hara Kim - October 14, 2009 - 00:45

Is this currently working for Drupal 6? I downloaded the dev version and tried using with no luck

 
 

Drupal is a registered trademark of Dries Buytaert.