| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 6705|Reply: 1
Collapse the left

The thumbnail watermark method

[Copy link]
Post time: 2013-08-12 08:42
| Show all posts |Read mode
Addon
Title: The thumbnail watermark method
Version: X2.5 X3.0
Author: -
Author URL:
Description: The thumbnail watermark method
Discuz! X Version: X3 X2.5 
Language(s): ALL
Create Date:
Last Update:
Screenshot: -
① Open source\function\function_post.php

② lookup
  1. $image->Watermark($_G['setting']['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');
Copy the Code
ADD code
  1. // The thumbnail watermark method
  2.          if (file_exists($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg')) {
  3.                     $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg', '', 'forum');
  4.                 }
  5.                 //The thumbnail watermark method  end
Copy the Code
③ lookup
  1. C::t('forum_attachment_unused')->delete($aid);
Copy the Code
ADD code
  1. //
  2. The thumbnail watermark method
  3.        if (file_exists($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg')) {
  4.                 $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg', '', 'forum');
  5.             }
  6.             // The thumbnail watermark method End
Copy the Code
Post time: 2013-08-12 16:45
| Show all posts
thank u
but do you have any preview? screenshot?

Comments

i feel so sorry ,i couldn't change it on my demo.  Post time 2013-08-12 16:48
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-04-25 02:21 GMT+3 , Processed in 0.041156 sec., 13 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list