Seite 1 von 3

Hilfe! Problem mit dem Avatar Gallery Hack seit 2.0.18

Verfasst: 03.11.2005 00:03
von felixx
Hi,

ich habe ein kleines Problem mit dem Avatar Gallery Hack.

Der lief bis jetzt ohne Probleme, aber seitdem ich die aktuelle usercp_avatar.php von BlueLagoon benutze, geht es nicht mehr.

Wenn ich diesen Einbaue, dann werden nicht mehr in der Gallery die Bilder angezeigt, sondern nur die Namen der Datei.

Hier der geänderte Teil der includes\usercp_avatar.php

Code: Alles auswählen

function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)
{
	global $board_config, $db, $template, $lang, $images, $theme;
	global $phpbb_root_path, $phpEx;
$my_counter = 0;
$my_checker = 0;
$sql = "SELECT user_avatar
	FROM " . USERS_TABLE . "
	WHERE user_avatar_type=3";

if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql);
}

while( $row = $db->sql_fetchrow($result) )
{
	$my_counter++;
	$my_used_list[$my_counter] = $row['user_avatar'];		
}

$db->sql_freeresult($result);
	$dir = @opendir($board_config['avatar_gallery_path']);

	$avatar_images = array();
	while( $file = @readdir($dir) )
	{
		if( $file != '.' && $file != '..' && !is_file($board_config['avatar_gallery_path'] . '/' . $file) && !is_link($board_config['avatar_gallery_path'] . '/' . $file) )
		{
			$sub_dir = @opendir($board_config['avatar_gallery_path'] . '/' . $file);

			$avatar_row_count = 0;
			$avatar_col_count = 0;
while( $sub_file = @readdir($sub_dir) )
{
$my_checker = 0;
for ($i = 1; $i<= $my_counter; $i++ )
{
	$my_temp = $file . '/' . $sub_file;
	if ($my_temp == $my_used_list[$i]) $my_checker=1;
	if ($my_checker==1) break;
}
	if ($my_checker == 0)		
	{
		if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) )
		{
			$avatar_images[$file][$avatar_row_count][$avatar_col_count] = $file . '/' . $sub_file; 
			$avatar_name[$file][$avatar_row_count][$avatar_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file)));

			$avatar_col_count++;
			if( $avatar_col_count == 5 )
			{
				$avatar_row_count++;
				$avatar_col_count = 0;
			}
		}
	}
}
		}
	}

	@closedir($dir);
Was ist falsch?? Danke für eure Hilfe!! 8)

Verfasst: 04.11.2005 13:26
von felixx
Bitte um Hilfe!! :cry: :wink:

Verfasst: 05.11.2005 02:30
von felixx
Hallo,

will ja nicht quängeln, aber kann mir keiner helfen?? :cry:

Habe alle Mods wieder ans laufen bekommen in 2.0.18 nur den Avatar Gallery Hack geht nicht. :roll:

Verfasst: 05.11.2005 18:17
von felixx
schieb... :cry:

Verfasst: 06.11.2005 21:36
von felixx
Weiß keiner eine abhilfe? :cry: :cry:

Verfasst: 07.11.2005 10:38
von felixx
Hallo,

es wäre wirklich nett wenn einer mir helfen könnte. :cry:

Verfasst: 07.11.2005 10:43
von Markus67
Hi ...

verlinke mal bitte die usercp_avatar.php, die usercp_register.php und die funktions.php als txt-Datei.
Hast du mal einen Link zu dem MOD?
KB:datei
welche phpBB Version nutzt du?

Markus

Verfasst: 07.11.2005 10:53
von felixx
Hi Markus,

hier die Dateien:


In meinem Testforum habe ich den Mod drin. Es kam keine Fehlermeldung.



Ich nutze 2.0.18

Verfasst: 07.11.2005 11:28
von felixx
Hier noch der Link zu dem Mod http://www.phpbbhacks.com/download/786

Verfasst: 07.11.2005 11:42
von Markus67
Hi ...

ist das Testboard auch eine 2.0.18?

Markus