Limit Image Width MOD

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Limit Image Width MOD

Bericht door Laurette » 06 aug 2005, 17:04

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

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 06 aug 2005, 17:18

Ik denk dat die voor de attachment mod is ;)

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 06 aug 2005, 17:47

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.
Als men te veel stapeld word men stapelgek.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 06 aug 2005, 17:49

Die bestanden zijn VAN de attachment mod ;) Met de attachment mod kan je bestanden toevoegen aan een post, die een user dan kan downloaden ;)

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 06 aug 2005, 17:55

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?
Als men te veel stapeld word men stapelgek.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 06 aug 2005, 18:09

Waarschijnlijk omdat of de constants van de attachment mod niet bestaan, of die tabbellen niet bestaan :)

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 06 aug 2005, 18:15

Of ik begrijp jou niet of jij mij niet? :oops:

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 :oops:
Als men te veel stapeld word men stapelgek.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 06 aug 2005, 18:17

Ja, en daar MOET je de attachment mod voor hebben ;)

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 06 aug 2005, 18:44

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
Als men te veel stapeld word men stapelgek.

ElbertF
Berichten: 5803
Lid geworden op: 12 okt 2004, 08:34
Contacteer:

Bericht door ElbertF » 06 aug 2005, 18:47

Die uitbreiding op de attachment mod kan je gewoon negeren als je 'm niet geïnstalleerd hebt..

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 06 aug 2005, 18:52

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. :oops:
Als men te veel stapeld word men stapelgek.

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 06 aug 2005, 21:21

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!
... Maar ik modereer (nog) niet.

XP-Rene
Berichten: 2168
Lid geworden op: 01 dec 2004, 19:33
Locatie: Vlissingen
Contacteer:

Bericht door XP-Rene » 06 aug 2005, 22:52

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
KNAVIVO DIERENHULP
Stimuleer verdraagzaamheid. Wees eens wat vaker irritant.

Gebruikersavatar
Laurette
Berichten: 290
Lid geworden op: 22 jul 2005, 10:40
Locatie: emmen
Contacteer:

Bericht door Laurette » 07 aug 2005, 17:34

Ik heb deze hack geinstaleerd en hij werkt perfect

Ik wil paulus nog wel bedanken voor de hulp :thumb:
Als men te veel stapeld word men stapelgek.

Gesloten