{"id":1014,"date":"2009-04-11T22:15:29","date_gmt":"2009-04-11T14:15:29","guid":{"rendered":"http:\/\/fanhaijun.com\/?p=1014"},"modified":"2009-04-11T22:17:11","modified_gmt":"2009-04-11T14:17:11","slug":"how-to-put-a-watermark-on-the-photos-for-virtuemart","status":"publish","type":"post","link":"https:\/\/fanhaijun.com\/?p=1014","title":{"rendered":"How to put a watermark on the photos of VirtueMart"},"content":{"rendered":"<p>For all of you that want to watermark productimages with cache, here it is:   <br \/>Download sript here:    <br \/><a href=\"http:\/\/fanhaijun.com\/wp-content\/uploads\/files\/watermark-with-cache.zip\" target=\"_blank\">http:\/\/fanhaijun.com\/wp-content\/uploads\/files\/watermark-with-cache.zip<\/a>    <br \/>make a folder called &quot;watermark&quot; in your root and put in the files called:    <br \/> &#8211; cache    <br \/> &#8211; watermark.php    <br \/> &#8211; watermark.png &#8211;&gt; change this picture to your picture!    <br \/>Then set the permissions 777 to the folder &quot;cache&quot;.    <br \/>The change the htaccess.txt to the folowing parameters:<\/p>\n<p>Code:<\/p>\n<blockquote>\n<p>RewriteEngine On     <br \/>RewriteCond %{REQUEST_FILENAME} -f      <br \/>RewriteRule \\.(gif|jpeg|jpg)$ ..\/..\/..\/..\/watermark\/watermark.php [QSA,NC]<\/p>\n<\/blockquote>\n<p>Now upload the htaccess.txt to components\/com_virtuemart\/shop_image\/product\/   <br \/>and if you want to the thumbnails in components\/com_virtuemart\/shop_image\/product\/resized.    <br \/><b>AND RENAME TO .htaccess<\/b>    <br \/>And you are done.<\/p>\n<p>Works on joomla 1.5.10 and virtuemart 1.1.3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For all of you that want to wa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[104],"tags":[168,169,107,166,167],"class_list":["post-1014","post","type-post","status-publish","format-standard","hentry","category-technogy","tag-cache","tag-htaccess","tag-joomla","tag-vituemart","tag-watermark"],"_links":{"self":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1014"}],"version-history":[{"count":0,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=\/wp\/v2\/posts\/1014\/revisions"}],"wp:attachment":[{"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fanhaijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}