Pagina 1 van 1
Limit Image Width MOD
Geplaatst: 06 aug 2005, 17:04
door Laurette
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
Geplaatst: 06 aug 2005, 17:18
door Paul
Ik denk dat die voor de attachment mod is

Geplaatst: 06 aug 2005, 17:47
door Laurette
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.
Geplaatst: 06 aug 2005, 17:49
door Paul
Die bestanden zijn VAN de attachment mod

Met de attachment mod kan je bestanden toevoegen aan een post, die een user dan kan downloaden

Geplaatst: 06 aug 2005, 17:55
door Laurette
Ok maar ik snap nog niet wat en hoe ik het nu precies moet doen.
Maar komt de fout in het administratiepaneel nu omdat ik (nog) niks met deze bestanden heb gedaan?
Zo niet waar zit de fout in het adminisratiepaneel dan?
Geplaatst: 06 aug 2005, 18:09
door Paul
Waarschijnlijk omdat of de constants van de attachment mod niet bestaan, of die tabbellen niet bestaan

Geplaatst: 06 aug 2005, 18:15
door Laurette
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

Geplaatst: 06 aug 2005, 18:17
door Paul
Ja, en daar MOET je de attachment mod voor hebben

Geplaatst: 06 aug 2005, 18:44
door Laurette
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
Geplaatst: 06 aug 2005, 18:47
door ElbertF
Die uitbreiding op de attachment mod kan je gewoon negeren als je 'm niet geïnstalleerd hebt..
Geplaatst: 06 aug 2005, 18:52
door Laurette
Ik heb hem niet geinstaleerd want ik zou niet weten hoe.
Wat ik zeg ik heb de eerste mod geinstaleerd maar kreeg toen in het amp een fout en ik weet niet hoe ik die moest oplossen.
En hoe goed paulus me ook heeft geholpen ik kom niet verder.

Geplaatst: 06 aug 2005, 21:21
door Bee
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!
Geplaatst: 06 aug 2005, 22:52
door XP-Rene
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:
MOD Title: Limit Image Width MOD Attachment MOD integration
Oftewel:Dit is een MOD om te integreren in de Attachment MOD
Geplaatst: 07 aug 2005, 17:34
door Laurette
Ik heb
deze hack geinstaleerd en hij werkt perfect
Ik wil paulus nog wel bedanken voor de hulp :thumb: