Blisk wrote: I have this MOD installed and it works ok on firefox, but not on IE, what could be wrong?
Blisk wrote: Yes I know but I cannot, force all users of my forum to use Firefox.
Is there a way to make it work in IE too?
Code: Select all
##############################################################
##
## Files To Edit: 6
## admin/admin_board.php
## admin/page_header_admin.php
## includes/page_header.php
## templates/SubSilver/admin/board_config_body.tpl
## templates/SubSilver/overall_header.tpl
## templates/SubSilver/simple_header.tpl
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
INSERT INTO `phpbb_config` ( `config_name` , `config_value` )
VALUES (
'max_image_width', '400'
);
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_ALLOW_BBCODE}</td>
<td class="row2"><input type="radio" name="allow_bbcode" value="1" {BBCODE_YES} /> {L_YES} <input type="radio" name="allow_bbcode" value="0" {BBCODE_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- start mod : Resize Posted Images Based on Max Width -->
<tr>
<td class="row1">{L_MAX_IMAGE_WIDTH} <br /><span class="gensmall">{L_MAX_IMAGE_WIDTH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="20" maxlength="255" name="max_image_width" value="{MAX_IMAGE_WIDTH}" /></td>
</tr>
<!-- fin mod : Resize Posted Images Based on Max Width -->
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Allow_BBCode'] = 'Allow BBCode';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Max_image_width'] = 'Maximum width of images [px]'; // mod : Resize Posted Images Based on Max Width
$lang['Max_image_width_explain'] = 'The maximum width images in messages are allowed to have. Images that are wider than this amount of pixels are resized automatically.'; // mod : Resize Posted Images Based on Max Width
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
"L_ALLOW_BBCODE" => $lang['Allow_BBCode'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- start mod : Resize Posted Images Based on Max Width ----------------------------------
'L_MAX_IMAGE_WIDTH' => $lang['Max_image_width'],
'L_MAX_IMAGE_WIDTH_EXPLAIN' => $lang['Max_image_width_explain'],
//-- fin mod : Resize Posted Images Based on Max Width ------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
admin/page_header_admin.php
#
#-----[ FIND ]------------------------------------------
#
'U_INDEX' => append_sid('../index.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- start mod : Resize Posted Images Based on Max Width ----------------------------------
'MAX_IMAGE_WIDTH' => $board_config['max_image_width'],
//-- fin mod : Resize Posted Images Based on Max Width ------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_RMW_JSLIB' => $phpbb_root_path . 'templates/rmw_jslib.js',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'MAX_IMAGE_WIDTH' => $board_config['max_image_width'],
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
var rmw_max_width = 400;
#
#-----[ REPLACE WITH ]------------------------------------------
#
var rmw_max_width = {MAX_IMAGE_WIDTH};
#
#-----[ OPEN ]------------------------------------------
#
templates/SubSilver/simple_header.tpl
#
#-----[ FIND ]------------------------------------------
#
var rmw_max_width = 400;
#
#-----[ REPLACE WITH ]------------------------------------------
#
var rmw_max_width = {MAX_IMAGE_WIDTH};
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Aquilla wrote: Blisk,
I never could get this mod to work with IE on my forums either, so I ended up using this one instead.
Hope that helps.
Code: Select all
[url=http://mysite.com][img]http://mybanner.jpg[/img][/url]
Code: Select all
[url=http://mybanner.jpg][img]http://mybanner_small.jpg[/img][/url]
Code: Select all
Parse error: parse error, unexpected '<' in /home/www/ivaiva98.freehostia.com/phpBB-2.0.21/phpBB2/includes/bbcode.php(89) : eval()'d code on line 21
Warning: Cannot modify header information - headers already sent by (output started at /home/www/ivaiva98.freehostia.com/phpBB-2.0.21/phpBB2/includes/bbcode.php(89) : eval()'d code:21) in /home/www/ivaiva98.freehostia.com/phpBB-2.0.21/phpBB2/includes/page_header.php on line 483
Code: Select all
Parse error: parse error, unexpected '<' in /home/www/ivaiva98.freehostia.com/phpBB-2.0.21/phpBB2/includes/bbcode.php(89) : eval()'d code on line 21
Code: Select all
<!-- BEGIN img -->
Code: Select all
<!-- BEGIN img --><img src="{URL}" alt="Image" title="Image" border="0" onload="if(this.width > screen.width-454) {this.width=(screen.width-454); this.className='clickable'; }" onclick="if(this.width >= screen.width-454) { window.open('{URL}', '_blank'); return false; }" alt="Klikni za večjo sliko" /><!-- END img -->