China
|
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- $image->Watermark($_G['setting']['attachdir'].'/forum/'.$newattachfile[$aid], '', 'forum');
Copy the Code ADD code- // The thumbnail watermark method
- if (file_exists($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg')) {
- $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $newattachfile[$aid] . '.thumb.jpg', '', 'forum');
- }
- //The thumbnail watermark method end
Copy the Code ③ lookup- C::t('forum_attachment_unused')->delete($aid);
Copy the Code ADD code- //
- The thumbnail watermark method
- if (file_exists($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg')) {
- $image->Watermark($_G['setting']['attachdir'] . '/forum/' . $attach['attachment'] . '.thumb.jpg', '', 'forum');
- }
- // The thumbnail watermark method End
Copy the Code |
|