Author Topic: Watermark virtuemart 1.1.3  (Read 82210 times)

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Watermark virtuemart 1.1.3
« on: March 28, 2009, 15:31:18 pm »
For all of you that want to watermark productimages with cache, here it is:

Download sript here:
http://www.dushiwebsites.nl/watermark-with-cache.zip

make a folder called "watermark" in your root and put in the files called:
 - cache
 - watermark.php
 - watermark.png --> change this picture to your picture!

Then set the permissions 777 to the folder "cache".

The change the htaccess.txt to the folowing parameters:
Code: [Select]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(gif|jpeg|jpg)$ ../../../../watermark/watermark.php [QSA,NC]

Now upload the htaccess.txt to components/com_virtuemart/shop_image/product/
and if you want to the thumbnails in components/com_virtuemart/shop_image/product/resized.
AND RENAME TO .htaccess

And you are done  8)
Check my site as demo:
http://www.thulefietsdragershop.nl/index.php/Thule/Thule-EuroPower-916/flypage.tpl.html

Works on joomla 1.5.10 and virtuemart 1.1.3.

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #1 on: August 12, 2009, 07:07:19 am »
that's great
thanks a lot man
Création sites web Tunisie
http://www.idealconception.com

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #2 on: August 12, 2009, 09:53:02 am »
Did it work for you ok?

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #3 on: August 12, 2009, 12:20:49 pm »
I just said thank you for sharing but not yet installed!
It dosn't work?
Création sites web Tunisie
http://www.idealconception.com

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #4 on: August 12, 2009, 13:25:19 pm »
O no its works great, just was asking if your install went fine :)

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #5 on: August 12, 2009, 16:21:34 pm »
It works like a charm
Thank youuuuuuuuuuuuuu

NB: permission for cache file 755 works perfect

Thanks
Création sites web Tunisie
http://www.idealconception.com

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #6 on: August 12, 2009, 16:25:53 pm »
Is it possible to change the watermark image position?:)
Now it's showen on the bottom right
Création sites web Tunisie
http://www.idealconception.com

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #7 on: August 12, 2009, 16:46:55 pm »
i know it is but dont know how... sorry

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #8 on: August 13, 2009, 00:29:16 am »
Well now is it possible to make 2 watermark images? One big for the image and one little for the thumb
Because the resized images dosn't read the big (relative) watermark.
Best regards
and thank you
Création sites web Tunisie
http://www.idealconception.com

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #9 on: August 13, 2009, 10:48:36 am »
with me both the images get watermarkt

u4david

  • Beginner
  • *
  • Posts: 4
Re: Watermark virtuemart 1.1.3
« Reply #10 on: August 19, 2009, 19:37:46 pm »
I got it working !
Right now my absolute path is in the .htaccess specified as /home/user/www/joomla/watermark/watermark.php (www is root)

Is there a way to make the path to be NOT absolute so when I end up moving the test site to live hosting space it will not get broken?

i assume on the live hosting space it will be /watermark/watermark.php

Thanx u4davidatgmaildotcom

amorino

  • Jr. Member
  • **
  • Posts: 151
    • Création sites web Tunisie
Re: Watermark virtuemart 1.1.3
« Reply #11 on: August 19, 2009, 19:41:08 pm »
Hello
On the live site you should write :
../../../../watermark/watermark.php

Best regards
Amorino
Création sites web Tunisie
http://www.idealconception.com

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #12 on: August 19, 2009, 23:25:59 pm »
Oeps... forgot to mension that :)

cdwc

  • Beginner
  • *
  • Posts: 1
Re: Watermark virtuemart 1.1.3 HELP
« Reply #13 on: October 24, 2009, 14:50:25 pm »
i can not get this to work...
i uploaded the files, changed permission and renamed htaccess.txt to .htaccess but no watermark shows up..
help :-[ :-[ :-[ :-[ :-[ :-[ :-[ :-[!!

Roderick1

  • Jr. Member
  • **
  • Posts: 111
    • Top Motion
Re: Watermark virtuemart 1.1.3
« Reply #14 on: October 25, 2009, 19:34:48 pm »
did you do this:
On the live site you should write :
../../../../watermark/watermark.php