waar zit die map?

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
Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

waar zit die map?

Bericht door Dragonrecon » 08 jan 2005, 16:26

ik zit een mod te instaleren,
maar ik kan die map niet vinden :S \/ \/ \/ \/ \/ \/ \/

#
#-----[ COPY ]------------------------------------------
#
avagallery.cfg to mods/uploader/avagallery.cfg
module_avagallery.php to mods/uploader/module_avagallery.php


#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_upload.php

Gebruikersavatar
LazyTiger
Berichten: 2000
Lid geworden op: 21 okt 2003, 18:21

Bericht door LazyTiger » 08 jan 2005, 16:29

zelf maken..

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 08 jan 2005, 16:31

ik welke map moet ik die map maken?

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

Bericht door Bee » 08 jan 2005, 16:56

de map waarin phpbb is geinstalleerd...
... Maar ik modereer (nog) niet.

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 08 jan 2005, 16:57

phpBB2/mod/uploader dus....

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 08 jan 2005, 17:00

lang_upload.php zit er niet bij mij :S
wat doe ik verkeerd?

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_upload.php

#
#-----[ FIND ]------------------------------------------
#

// Entries for individual modules can be added below, or in separate files.

Gebruikersavatar
Rico
Berichten: 2185
Lid geworden op: 23 okt 2003, 18:45
Contacteer:

Bericht door Rico » 08 jan 2005, 17:01

Om welke mod gaat dit als ik vragen mag?
Guess who's back..

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

Bericht door Bee » 08 jan 2005, 17:02

Rico schreef:Om welke mod gaat dit als ik vragen mag?

Ik vermoed de admin upload...
... Maar ik modereer (nog) niet.

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 08 jan 2005, 17:04

dat je via de admin panel een plaatje in je galery kan uploaden ;)

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 09 jan 2005, 01:51

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_upload.php

---------------------------------------------------------
lang_upload.php zit er bij mij niet in, hoe komt dat?

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

Bericht door Bee » 09 jan 2005, 08:17

Voor deze mod moet je reeds een andere mod geinstalleerd hebben. Instaleer die eerst.
... Maar ik modereer (nog) niet.

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 09 jan 2005, 19:35

Dragonrecon schreef:dat je via de admin panel een plaatje in je galery kan uploaden ;)
ik bedoel remoteavatarsize mod
bee schreef:Voor deze mod moet je reeds een andere mod geinstalleerd hebben. Instaleer die eerst.
welke dan? daar staat niks overin:

Code: Selecteer alles

[list]############################################### 
## Mod Title:   Remote Avatar Size Control
## Mod Version: 1.0.0
## Author:       Michel Renaud < michelr@metalcrypt.com >
## Description:  This mod ensures remote avatars do not exceed the maximum size specified in the configuration
## Web site for updates: http://metalcrypt.bravepages.com
##
## This mod is for phpBB2 ver 2.0.1 (should work with 2.0.0 as well)
## 
## 
## Installation Level:  Easy
## Files To Edit:    3
##   phpBB2/viewtopic.php 
##   phpBB2/admin/admin_users.php
##   phpBB2/includes/usercp_avatar.php
## 
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
## 
## Installation Notes: 
##
##
## if you are using a prefix to you DB tabels then you have to add this to 
## the SQL commands, e.g. "phpbb_users" instead of just "users" - ONLY 
## in the initial SQL commands, not in the php code ! 
## 
## The most important thing to keep in mind is, take your time, make 
## sure you are finding the correct lines to modify, then take care to paste the new code. 
## Please also keep in mind, if you are using more than one language file or theme at your 
## site, you will need to edit the corresponding files for each occurrence.  Good Luck! 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
## and the Database
################################################################# 


# 
#-----[ ADD SQL ]------------------------------------------ 
# 

ALTER TABLE phpbb_users ADD user_avatar_width SMALLINT;
ALTER TABLE phpbb_users ADD user_avatar_height SMALLINT;


# 
#-----[ OPEN FILE:  phpBB2/viewtopic.php ]------------------------------------------ 
#  

# 
#-----[ FIND ]------------------------------------------ 
# 

$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# NOTE!!!! If you have any mod that modifies the user profiles or 
# the individual posts, it is possible that this line has been modified
# by another mod, so you may have to make changes manually.  This mod
# requires adding "u.user_avatar_width, u.user_avatar_height" (without the quotes)
# to the list of fields.

$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_avatar_width, u.user_avatar_height, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid

# 
#-----[ FIND ]------------------------------------------ 
# 

				$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

				if ( $board_config['allow_avatar_remote'] )
				{
					if ( ($postrow[$i]['user_avatar_height'] && $postrow[$i]['user_avatar_height'] > 0) &&
					      ($postrow[$i]['user_avatar_width'] && $postrow[$i]['user_avatar_width'] > 0) )
					{
						$poster_avatar = '<img src="' . $postrow[$i]['user_avatar'] . '" height="' . $postrow[$i]['user_avatar_height'] . '" width="' . $postrow[$i]['user_avatar_width'] . '" alt="" border="0" />';
					}
					else  // No width/height in the user's profile
					{
						$poster_avatar = '<img src="' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />';
					}
				}
				else  // remote avatars not allowed
					$poster_avatar = '';
					
					
# 
#-----[ SAVE FILE:  phpBB2/viewtopic.php ]------------------------------------------ 
# 


# 
#-----[ OPEN FILE:  phpBB2/admin/admin_users.php ]------------------------------------------ 
#  

# 
#-----[ FIND ]------------------------------------------ 
#


		}
		else if( $user_avatar_local != "" && $avatar_sql == "" && !$error )

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# Note: The following block of text goes BEFORE the line with a single '}' above

			$user_avatar_dimensions = GetImageSize($user_avatar_remoteurl);
			if ($user_avatar_dimensions == NULL)
			{
				$user_avatar_xsize = 0; // Remote avatar not found, zero
				$user_avatar_ysize = 0;
			}
			else
			{  // Check avatar dimensions, adjust if necessary
				// Extract the image's width and height
				$firstquote = strpos($user_avatar_dimensions[3],'"');
				$strwidth = substr($user_avatar_dimensions[3],$firstquote+1);
				$lastquote = strpos($strwidth,'"');
				$user_avatar_xsize = substr($strwidth,0,$lastquote);
		
				$strheight = substr($strwidth,$lastquote+1);
				
				$firstquote = strpos($strheight,'"');
				
				$strheight = substr($strheight,$firstquote+1);
			
				$lastquote = strpos($strheight,'"');
				$user_avatar_ysize = substr($strheight,0,$lastquote);
				
				if ($user_avatar_xsize > $board_config['avatar_max_width']) // width exceeds max
				{
					$user_avatar_ratio = $board_config['avatar_max_width'] / $user_avatar_xsize;
		
					$user_avatar_xsize = $user_avatar_xsize * $user_avatar_ratio;
					$user_avatar_ysize = $user_avatar_ysize * $user_avatar_ratio;
				}
				
				if ($user_avatar_ysize > $board_config['avatar_max_height']) // height exceeds max
				{
					$user_avatar_ratio = $board_config['avatar_max_height'] / $user_avatar_ysize;
		
					$user_avatar_xsize = $user_avatar_xsize * $user_avatar_ratio;
					$user_avatar_ysize = $user_avatar_ysize * $user_avatar_ratio;
				}
			}
			$avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_remoteurl) . "', user_avatar_type = " . USER_AVATAR_REMOTE . ", user_avatar_width = " . $user_avatar_xsize . ", user_avatar_height = " . $user_avatar_ysize;
			
# 
#-----[ SAVE FILE:  phpBB2/admin/admin_users.php ]------------------------------------------ 
# 

# 
#-----[ OPEN FILE:  phpBB2/includes/usercp_avatar.php ]------------------------------------------ 
#  

# 
#-----[ FIND ]------------------------------------------ 
#


function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
{



# 
#-----[ ADD AFTER ]------------------------------------------ 
# Note: This goes after the line with a single '{' above

	global $board_config;


# 
#-----[ FIND ]------------------------------------------ 
# 

	return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE : '';


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 


	// Ensures the image doesn't exceed the max width and height specified in the board's configuration
	$user_avatar_dimensions = GetImageSize($avatar_filename);

	if ($user_avatar_dimensions == NULL)
	{
		$user_avatar_xsize = 0; // Remote avatar not found, zero
		$user_avatar_ysize = 0;
	}
	else
	{  // Check avatar dimensions, adjust if necessary
		
		// Extract the image's width and height
		$firstquote = strpos($user_avatar_dimensions[3],'"');
		$strwidth = substr($user_avatar_dimensions[3],$firstquote+1);
		$lastquote = strpos($strwidth,'"');
		$user_avatar_xsize = substr($strwidth,0,$lastquote);

		$strheight = substr($strwidth,$lastquote+1);
		
		$firstquote = strpos($strheight,'"');
		
		$strheight = substr($strheight,$firstquote+1);
	
		$lastquote = strpos($strheight,'"');
		$user_avatar_ysize = substr($strheight,0,$lastquote);
		
		if ($user_avatar_xsize > $board_config['avatar_max_width']) // width exceeds max
		{
			$user_avatar_ratio = $board_config['avatar_max_width'] / $user_avatar_xsize;

			$user_avatar_xsize = $user_avatar_xsize * $user_avatar_ratio;
			$user_avatar_ysize = $user_avatar_ysize * $user_avatar_ratio;
		}
		
		if ($user_avatar_ysize > $board_config['avatar_max_height']) // height exceeds max
		{
			$user_avatar_ratio = $board_config['avatar_max_height'] / $user_avatar_ysize;

			$user_avatar_xsize = $user_avatar_xsize * $user_avatar_ratio;
			$user_avatar_ysize = $user_avatar_ysize * $user_avatar_ratio;
		}
	}

	return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE . ", user_avatar_width = " . $user_avatar_xsize . ", user_avatar_height = " . $user_avatar_ysize : '';
	
# 
#-----[ SAVE FILE:  phpBB2/includes/usercp_avatar.php ]------------------------------------------ 
# 
[/list]

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 09 jan 2005, 21:29

In dit bestand wordt helemaal niets gewijzigt in een languages bestand :roll:
Afbeelding

Headstrong
Berichten: 439
Lid geworden op: 13 aug 2003, 17:21

Bericht door Headstrong » 10 jan 2005, 08:40

En daar staat ook nergens [copy].

Dragonrecon
Berichten: 84
Lid geworden op: 25 sep 2004, 20:31
Locatie: emmen

Bericht door Dragonrecon » 10 jan 2005, 22:58

verkeerde script ^_^"
ik post de goede deze week nog wel ff

Gesloten