MOD-Title: Advanced Attach Watermark
MOD-Version: 0.1.2
MOD-Autor: 4seven (Bugfixing, Redesign, Advanced)
Credits: Josh18657
Credits: Torstein Hønsi for higslide
Credits: Beta-Tester and Usability-Inspirator: Tim
Credits: Beta-Tester and English Language-File: jonnilaumann
Credits: MODX for v.0.1.3: jonnilaumann (see also tweak on the bottom of the post)
Note: Since the author did not write longer in [BETA]-Thread, i take over the development of this Mod. The Mod is bugfixed and completely re-designed.
MOD-Description: This Mod inserts a watermark in Attachment Pics
phpBB-Version: phpBB 3.0.x
phpBB-Languages: en, de
phpBB-Styles: prosilver, subsilver2
Download:

--------------------
[dev] info und status
[fixed] clean, transparent watermarks without "black flashs"
[fixed] jpeg is now standard output-format (fixes the "encrease-file-size bug")
[fixed] compatibility for "multiple uploads mod" * (see bottom of thread for further info)
[fixed] code optimizing to increase performance and reduce server-load
[feature] quality of output jpg is variable
[feature] thumb-pics watermarking
[feature] watermark-size is dynamic (standard 50% of main-pic) to prevent a "little-watermark" on large pics, which makes it possible to easy stamp it away with photoshop etc.
[feature] backup-copy of original for each watermarked main-pic (standard = files/backup)
[feature] backup-copy of original for each thumb-pic (standard = files/backup)
[feature] auto-deleting of backup'ed thumb- and main-pics by deleting original post or attach
[feature] usage of true type fonts with adjustable size/color of text-watermarks
[feature] insertable genuine resize function (instead of the usual javascript client-side-resize-method, which makes the pic only "optically-smaller" )
[feature] standalone resize function
[feature] resize-function with/without watermark
[feature] convert-function [img]: the picture copied to " images/files/picname-syntax" and inserted in posting by click with [img] - tags.
[feature] convert-function [img] as standalone-feature
[feature] convert-function [img] with/without watermark
[feature] convert-function [highslide]: the picture copied to " images/files/picname-syntax" and inserted in posting by click with [highslide] - tags.
[feature] convert-function [highslide] as standalone-feature
[feature] convert-function [highslide] with/without watermark
[feature] acp orphan-function for [img] and [highslide] convert-mode. acp-deleting of thumb- and main-pics for orphaned [img] or [highslide] pics in deleted posts.
[feature] controlling all functions over ACP
[feature] radical redesign of structure and code-lines
[feature] afterward water-marking of present attach's (with backup)
[feature] compatibility for "multiple uploads mod" for [img] and [highslide] in convert-mode
[feature] compatibility for "multiple uploads mod" for watermarked [img] and [highslide] in convert-mode
[new feature] thumb-preview in postbox for [img] and [highslide] in both convert-modes and both standard-styles
[new feature] combining of "Attachment Watermark Function" with "Convert Function [img]" and "Convert Function [img_higslide]"
--------------------
Newest ACP and Posting-Screens (en)
prosilver http://4seven.bplaced.net/pix/new_screens/a ... ver_en.png
subsilver2 http://4seven.bplaced.net/pix/new_screens/a ... er2_en.png
AeroBlue http://4seven.bplaced.net/pix/new_screens/a ... lue_en.png
ACP-Basics http://4seven.bplaced.net/pix/new_screens/a ... ics_en.png
ACP-Specials http://4seven.bplaced.net/pix/new_screens/a ... als_en.png
--------------------
Demos
prosilver http://4seven.bplaced.net/phpbb3/posting.ph ... e=post&f=7
subsilver2 http://4seven.bplaced.net/phpbb3/posting.ph ... e=post&f=7
AeroBlue http://4seven.bplaced.net/phpbb3/posting.ph ... e=post&f=7
guest-access or username: test / pw: testuser
--------------------
* multiple-uploads-mod
download > mutiple_upload_0.0.3.zip
download/file.php?id=87
upload bar for prosilver
http://www.phpbb.com/community/viewtopi ... 5#p9934415
read original thread for fixes etc.
http://www.phpbb.com/community/viewtopi ... 0&t=579645
--------------------
Credits: jonnilaumann
parafun wrote:Extra tweak with Higslide on Attachment and File Comment under Image when Zooming/Highslide:
Open: styles/prosilver/template/attachment.html
Find:
- Code: Select all
<!-- IF _file.S_THUMBNAIL -->
<dl class="thumbnail">
<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>
<!-- IF _file.COMMENT --><dd> {_file.COMMENT}</dd><!-- ENDIF -->
</dl>
<!-- ENDIF -->
Replace with:
- Code: Select all
<!-- IF _file.S_THUMBNAIL -->
<div class="highslide-gallery">
<a href="{_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" class="highslide" onclick="return hs.expand(this, { captionText: '<!-- IF _file.COMMENT -->{_file.COMMENT}<!-- ENDIF -->' } )"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a>
<div class="highslide-caption"></div>
</div>
<!-- IF _file.COMMENT -->{_file.COMMENT}<!-- ENDIF -->
<!-- ENDIF -->
//////////////////////SUBSILVER2///////////////////////////
Open: styles/subsilver2/template/attachment.html:
Find:
- Code: Select all
<!-- IF _file.S_THUMBNAIL -->
<a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" /></a><br />
<span class="gensmall">{_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>
<!-- ENDIF -->
Replace with:
- Code: Select all
<!-- IF _file.S_THUMBNAIL -->
<div class="highslide-gallery">
<a href="{_file.U_DOWNLOAD_LINK}/{_file.DOWNLOAD_NAME}" class="highslide" onclick="return hs.expand(this, { captionText: '<!-- IF _file.COMMENT -->{_file.COMMENT}<!-- ENDIF -->' } )"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" /></a><br />
<span class="gensmall">{_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]</span>
<div class="highslide-caption"></div>
</div>
<!-- ENDIF -->
In Both Styles :
-styles/subsilver2/template/overall_header.html, before </head>
-styles/prosilver/template/overall_header.html, before </head>
- Code: Select all
<!-- IF SCRIPT_NAME == "viewtopic" or SCRIPT_NAME == "posting" or SCRIPT_NAME == "ucp" or SCRIPT_NAME == "search" -->
<script type="text/javascript" src="{ROOT_PATH}/highslide/highslide-with-gallery.js"></script>
<link rel="stylesheet" type="text/css" href="{ROOT_PATH}/highslide/highslide.css" />
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = false;
hs.dimmingOpacity = 0.75;
hs.wrapperClassName = 'borderless';
hs.captionOverlay.hideOnMouseOut = true;
hs.marginLeft = 85;
hs.marginBottom = 0;
hs.marginTop = 0;
hs.numberPosition = 'caption';
// Adding the controlbar
if (hs.addSlideshow) hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 3000,
repeat: false,
useControls: true,
fixedControls: true,
overlayOptions: {
opacity: .6,
position: 'top center',
hideOnMouseOut: true
},
thumbstrip: {
position: 'middle left',
mode: 'vertical',
relativeTo: 'viewport'
}
});
</script>
<!-- ENDIF -->