Rover12421's Blog

The End.

Wp-watermark

        添加了个图片上传加水印的插件,这类插件挺多了,用了个简单点的wp-watermark,基本功能是有了,感觉还用,就用着了。
        安装说明贴下,很简单的,但是插件里不带readme,到官网速度太慢,到这贴下。

Installation {#post-30}

  1. Download and uncompress the current watermark Zip-file into the plugins-directory of your blog. It should look like this: /wordpress/wp-content/plugins/watermark

  2. WordPress older then v2.1 Open the file /wordpress/wp-admin/inline-uploading.php in your favorite editor and look for the following part:

  3. Since WordPress v2.1: Open the file </wordpress/wp-admin/upload-functions.php in your favorite editor and look for the following part:

  4. Since WordPress v2.3: Open the file /wordpress/wp-admin/includes/upload.php in your favorite editor and look for the following part:

  5. Since WordPress v2.6: Open the file /wordpress/wp-admin/includes/media.php in your favorite editor and look for the following part (about Line 131-134). Please be sure you edit the right file. Look for the media.php file in /wordpress/wp-admin/includes not in /wordpress/wp-includes.
    This file exist thrice, but only the /wordpress/wp-admin/includes/media.php is correct!
     


  6. Since WordPress v2.7: Open the file /wordpress/wp-admin/includes/media.php in your favorite editor and look for the following part (about Line 221-222). Please be sure you edit the right file. Look for the media.php file in /wordpress/wp-admin/includes not in /wordpress/wp-includes.
    This file exist thrice, but only the /wordpress/wp-admin/includes/media.php is correct!

    watermark

      <li>
        <div style="text-align: left;">
          … and insert this code:
        </div>
      </li>

      <li>
        <div style="text-align: left;">
          <code>&lt;span style="font-size: medium;">// INSERT HERE!!!&lt;br />

MM_Execute_WM($file,‘’);</span>

      <li>
        <div style="color: #ff0000;">
          Be careful here not to miss out a single-quote, as there are two <strong>single-quotes</strong> in this line<br /> (see the diagram)!
        </div>
      </li>

      <li>
        If you can execute all these steps successfully, then the watermark-plugin is installed.
      </li>
      <li>
        <hr />
      </li>
      <li>
        <span style="color: #ffff00; text-align: center;">(Optional step)</span><br /> Create your own logo with a transparent background. you can use for example <a href="http://www.gimp.org/" target="_blank"><span style="color: #fd5a1e;">GIMP</span></a> to do this. Then rename your file to <em><strong>stempel.png</strong></em> and save this in to the <em><strong>watermark</strong></em> directory. For the first test, you can use the stempel.png-file that is already included in the archive. </p> <hr />
      </li>
      <li>
        <span style="color: #ffff00; text-align: center;">(Optional step)</span><br /> If you need other fonts, please upload them via <em>ftp</em>, as your favorite font in the <em><strong>fonts</strong></em>-directory of your wordpress installation.<em><strong><br /> /wordpress/wp-content/plugins/watermark/fonts</strong></em>
      </li>
    </ol>

    <p>
      下载链接:<br /> <a href="http://www.wp-watermark.com/download">http://www.wp-watermark.com/download</a>
    </p>

Comments