Hallo!
Ich habe gerade den Simple Image Resize so abgeändert, dass er mit EasyMOD eingesetzt werden kann.
Funktioniert getestet mit EasyMod 0.3.0 und phpBB 2.0.22.
Code: Alles auswählen
#################################################################
## MOD Title: Simple Image Resize
## MOD Author: likeatim < admin@essential-freebies.de > (likeatim) http://www.efb.nu
## MOD Description:
## This adds a simple Image resize code so your tables won't get screwed by oversized images.
## Works dynamically with every screen resolution.
## Uses Javascript, so resizing might not work if people have adblocker (Proxomitron etc.) installed.
## Solution: Users should then add your site to their trusted sites within the adblocker.
## Orginal Code by opa@invisionpower.de
##
## MOD Version: 1.0.0a
##
## Installation Level: Easy
## Installation Time: 1 Minute
##
## Files To Edit: templates/subSilver/bbcode.tpl
## Included Files: n/a
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
## made EasyMOD-friendly by hanker@rpg-domain.de
##
## the phpBB Group Reserves The Right To Remove/Edit Author Notes,
## Should It Be Warranted
##
##############################################################
## MOD History:
##
## 2007-06-05 - Version 1.0.0a
## - (unofficial) EasyMOD-friendly version
##
## 2006-09-24 - Version 1.0.0 Final
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN img --><img src='{URL}' border='0' onload="javascript:if(this.width > screen.width-300)this.width = (screen.width-300)" onclick="javascript:window.open('{URL}','','scrollbars=1,toolbar=0,resizable=1,menubar=0,directories=0,status=0')" alt="Posted Image, might have been reduced in size. Click Image to view fullscreen." title="Posted Image, might have been reduced in size. Click Image to view fullscreen." /><!-- END img -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
René