Limit Image Width MOD
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Limit Image Width MOD
Ik heb deze mod geinstaleerd "Limit Image Width MOD"
Alleen krijg ik als ik nu naar het administratie paneel ga en ik klik
bij algemeen beheer link image width aan deze fout;
Informatie
Could not query config information
Make sure that you executed all SQL queries while installing the MOD, and that you modified /includes/constants.php properly
Ik heb de SQL uitgevoerd.
Wat bedoelen ze precies met dit stukje "and that you modified /includes/constants.php properly"
Het enige wat erover stond in de mod was dit
includes/constants.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
define('LIW_CACHE_TABLE', $table_prefix . 'liw_cache');
en dit heb ik gedaan.
Dus waar ben ik fout gegaan?
Verder stond deze attachment mod er ook nog bij
MOD Title: Limit Image Width MOD Attachment MOD integration
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: After installing this MOD images which are attached to a post using
## the Attachment MOD will be resized as well
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
##
## Installation Time: ~1 Minute
##
## Files To Edit: attach_mod/displaying.php
## templates/subSilver/viewtopic_attach_body.tpl
##
## Included Files: none
Maar waar zit dit; Files To Edit: attach_mod/displaying.php
templates/subSilver/viewtopic_attach_body.tpl
Alleen krijg ik als ik nu naar het administratie paneel ga en ik klik
bij algemeen beheer link image width aan deze fout;
Informatie
Could not query config information
Make sure that you executed all SQL queries while installing the MOD, and that you modified /includes/constants.php properly
Ik heb de SQL uitgevoerd.
Wat bedoelen ze precies met dit stukje "and that you modified /includes/constants.php properly"
Het enige wat erover stond in de mod was dit
includes/constants.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
define('LIW_CACHE_TABLE', $table_prefix . 'liw_cache');
en dit heb ik gedaan.
Dus waar ben ik fout gegaan?
Verder stond deze attachment mod er ook nog bij
MOD Title: Limit Image Width MOD Attachment MOD integration
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: After installing this MOD images which are attached to a post using
## the Attachment MOD will be resized as well
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
##
## Installation Time: ~1 Minute
##
## Files To Edit: attach_mod/displaying.php
## templates/subSilver/viewtopic_attach_body.tpl
##
## Included Files: none
Maar waar zit dit; Files To Edit: attach_mod/displaying.php
templates/subSilver/viewtopic_attach_body.tpl
Maar is deze attechment mod nodig om het bovenstaande probleem op te lossen?
Misschien dom maar ik snap de attechment mod niet moet ik de map ergens aan toevoegen?
Ik snap dat normaal gesproken ik in deze mappen Files To Edit:
attach_mod/displaying.php
templates/subSilver/viewtopic_attach_body.tpl
aanpassingen moet doen maar deze mappen bestaan niet.
En waar dient deze attechment mod precies voor, mijn engels is niet zo denderend.
Misschien dom maar ik snap de attechment mod niet moet ik de map ergens aan toevoegen?
Ik snap dat normaal gesproken ik in deze mappen Files To Edit:
attach_mod/displaying.php
templates/subSilver/viewtopic_attach_body.tpl
aanpassingen moet doen maar deze mappen bestaan niet.
En waar dient deze attechment mod precies voor, mijn engels is niet zo denderend.
Als men te veel stapeld word men stapelgek.
Of ik begrijp jou niet of jij mij niet?
Ik heb deze mod in de eerste instantie geinstaleerd
MOD Title: Limit Image Width MOD
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: This MOD will scale each image in a post so it does not exceed
## the maximum image width set by you. Smaller images will retain their
## original size.
## When clicking such a scaled down image it will open at its original
## size in a separate popup window.
## The image dimensions will be cached in order to avoid unnecessary
## delays when loading a page and checking the image dimensions
##
## MOD Version: 1.1.5
##
## Installation Level: Easy
##
## Installation Time: ~5 Minutes
##
## Files To Edit: viewtopic.php
## includes/bbcode.php
## includes/constants.php
## includes/functions.php
## templates/subSilver/overall_header.tpl
## languages/lang_english/lang_main.php
## languages/lang_english/lang_admin.php
##
## Included Files: admin_liw.php
## liw_body.tpl
Dus bij deze mod geeft hij een fout aan in het amp.
Of zit ik er nu helemaal naast
Ik heb deze mod in de eerste instantie geinstaleerd
MOD Title: Limit Image Width MOD
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: This MOD will scale each image in a post so it does not exceed
## the maximum image width set by you. Smaller images will retain their
## original size.
## When clicking such a scaled down image it will open at its original
## size in a separate popup window.
## The image dimensions will be cached in order to avoid unnecessary
## delays when loading a page and checking the image dimensions
##
## MOD Version: 1.1.5
##
## Installation Level: Easy
##
## Installation Time: ~5 Minutes
##
## Files To Edit: viewtopic.php
## includes/bbcode.php
## includes/constants.php
## includes/functions.php
## templates/subSilver/overall_header.tpl
## languages/lang_english/lang_main.php
## languages/lang_english/lang_admin.php
##
## Included Files: admin_liw.php
## liw_body.tpl
Dus bij deze mod geeft hij een fout aan in het amp.
Of zit ik er nu helemaal naast
Als men te veel stapeld word men stapelgek.
Ik heb de mod hier gedownload,
Ik kreeg alleen deze 4 mappen
-limit_image_width_v1.1.5/admin_liw.php
-limit_image_width_v1.1.5/attachment_mod_integration.mod
MOD Title: Limit Image Width MOD Attachment MOD integration
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: After installing this MOD images which are attached to a post using
## the Attachment MOD will be resized as well
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
##
## Installation Time: ~1 Minute
##
## Files To Edit: attach_mod/displaying.php
## templates/subSilver/viewtopic_attach_body.tpl
##
## Included Files: none
##
##############################################################
##
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##
##############################################################
##
## Author Notes:
##
## * The Attachment MOD has to be installed in order to use
## this addon
## * This addon has been tested with Attachment MOD v2.3.10
##
##############################################################
##
## MOD History:
##
## See limit_image_width_v1.1.5.mod for MOD history
##
##############################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
attach_mod/displaying.php
#
#-----[ FIND ]------------------------------------------------
#
$num_attachments = count($attachments['_' . $post_id]);
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
global $board_config, $username_from;
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('postrow.attach.cat_images', array(
'DOWNLOAD_NAME' => $display_name,
'S_UPLOAD_IMAGE' => $upload_image,
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$max_image_width = intval($board_config['liw_max_width']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ( $script_name == '' ) ? $script_name : '/' . $script_name;
if ( $max_image_width != 0 && $board_config['liw_attach_enabled'] == 1 && !isset($username_from) )
{
list($image_width, $image_height) = liw_get_dimensions($server_protocol . $server_name . $server_port . $script_name . '/' . $img_source, $post_id);
if ( $image_width && $image_width > $max_image_width || empty($image_width) || empty($image_height) )
{
$img_code = generate_liw_img_popup($img_source, $image_width, $image_height, $max_image_width);
}
else
{
$img_code = '<img src="' . $img_source . '" alt="' . $display_name . '" border="0">';
}
}
else
{
$img_code = '<img src="' . $img_source . '" alt="' . $display_name . '" border="0">';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
'IMG_CODE' => $img_code,
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_attach_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" />
#
#-----[ REPLACE WITH ]----------------------------------------
#
{postrow.attach.cat_images.IMG_CODE}
#
#-----[ SQL ]-------------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('liw_attach_enabled', '1');
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
-limit_image_width_v1.1.5.mod
-liw_body.tpl
Maar wat ik met de bovenstaande attechment mod moet doen snap ik nog niet.
Maar ik ga het anders proberen.
Ik ga proberen deze hack te instaleren want volgens mij doet deze hetzelfde?
Is het ook zo dat als de handtekening te groot is dat hij deze dan ook automatisch aanpast
Ik kreeg alleen deze 4 mappen
-limit_image_width_v1.1.5/admin_liw.php
-limit_image_width_v1.1.5/attachment_mod_integration.mod
MOD Title: Limit Image Width MOD Attachment MOD integration
## MOD Author: Vic D'Elfant < vic@pythago.net > (Vic D'Elfant) http://www.pythago.net/
## MOD Description: After installing this MOD images which are attached to a post using
## the Attachment MOD will be resized as well
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
##
## Installation Time: ~1 Minute
##
## Files To Edit: attach_mod/displaying.php
## templates/subSilver/viewtopic_attach_body.tpl
##
## Included Files: none
##
##############################################################
##
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##
##############################################################
##
## Author Notes:
##
## * The Attachment MOD has to be installed in order to use
## this addon
## * This addon has been tested with Attachment MOD v2.3.10
##
##############################################################
##
## MOD History:
##
## See limit_image_width_v1.1.5.mod for MOD history
##
##############################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
attach_mod/displaying.php
#
#-----[ FIND ]------------------------------------------------
#
$num_attachments = count($attachments['_' . $post_id]);
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
global $board_config, $username_from;
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('postrow.attach.cat_images', array(
'DOWNLOAD_NAME' => $display_name,
'S_UPLOAD_IMAGE' => $upload_image,
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$max_image_width = intval($board_config['liw_max_width']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ( $script_name == '' ) ? $script_name : '/' . $script_name;
if ( $max_image_width != 0 && $board_config['liw_attach_enabled'] == 1 && !isset($username_from) )
{
list($image_width, $image_height) = liw_get_dimensions($server_protocol . $server_name . $server_port . $script_name . '/' . $img_source, $post_id);
if ( $image_width && $image_width > $max_image_width || empty($image_width) || empty($image_height) )
{
$img_code = generate_liw_img_popup($img_source, $image_width, $image_height, $max_image_width);
}
else
{
$img_code = '<img src="' . $img_source . '" alt="' . $display_name . '" border="0">';
}
}
else
{
$img_code = '<img src="' . $img_source . '" alt="' . $display_name . '" border="0">';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
'IMG_CODE' => $img_code,
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_attach_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" />
#
#-----[ REPLACE WITH ]----------------------------------------
#
{postrow.attach.cat_images.IMG_CODE}
#
#-----[ SQL ]-------------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('liw_attach_enabled', '1');
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
-limit_image_width_v1.1.5.mod
-liw_body.tpl
Maar wat ik met de bovenstaande attechment mod moet doen snap ik nog niet.
Maar ik ga het anders proberen.
Ik ga proberen deze hack te instaleren want volgens mij doet deze hetzelfde?
Is het ook zo dat als de handtekening te groot is dat hij deze dan ook automatisch aanpast
Als men te veel stapeld word men stapelgek.
Vergeet deze mod, volgens mij is er iets veel makkelijkers voor: http://www.phpbbhacks.com/download/4040
Simpele code, zo erin gezet, en resizet afbeeldingen die te groot zijn!
Simpele code, zo erin gezet, en resizet afbeeldingen die te groot zijn!
... Maar ik modereer (nog) niet.
De Limit Widht MOD heb je alleen iets aan als je OOK en EERST de Attachment MOD hebt geinstalleerd.
Anders heeft deze Limit Width MOD totaal geen nut.
De titel van de Mod zegt het al:
Anders heeft deze Limit Width MOD totaal geen nut.
De titel van de Mod zegt het al:
Oftewel:Dit is een MOD om te integreren in de Attachment MODMOD Title: Limit Image Width MOD Attachment MOD integration
KNAVIVO DIERENHULP
Stimuleer verdraagzaamheid. Wees eens wat vaker irritant.
Stimuleer verdraagzaamheid. Wees eens wat vaker irritant.
Ik heb deze hack geinstaleerd en hij werkt perfect
Ik wil paulus nog wel bedanken voor de hulp :thumb:
Ik wil paulus nog wel bedanken voor de hulp :thumb:
Als men te veel stapeld word men stapelgek.
