Page 1 of 1

Portalview + Gallery

Posted: 10. March 2010 16:04
by jannicars
Hi,

habe ein Problem mit der Bilder Galerie und dem Portalview.
Alles geht bis auf die Galerie und das Forum.
Alles auf aktueller Version.

Fehler ist dieser hier:

Code: Select all

Fatal error: Cannot redeclare recent_gallery_images() (previously declared in C:\Xampp\xampp\htdocs\board\gallery\includes\functions_recent.php:23) in C:\Xampp\xampp\htdocs\board\gallery\includes\functions_recent.php  on line 343
und so sieht es auf Zeile 343 aus:

Code: Select all

		$db->sql_freeresult($result);

		$template->assign_vars(array(
			'S_COMMENTS'	=> true,

			'DELETE_IMG'		=> $user->img('icon_post_delete', 'DELETE_COMMENT'),
			'EDIT_IMG'			=> $user->img('icon_post_edit', 'EDIT_COMMENT'),
			'INFO_IMG'			=> $user->img('icon_post_info', 'IP'),
			'MINI_POST_IMG'		=> $user->img('icon_post_target_unread', 'COMMENT'),
			'PROFILE_IMG'		=> $user->img('icon_user_profile', 'READ_PROFILE'),
			'COLLAPSE_COMMENTS'	=> $collapse_comments,
		));
	}
}   <----- Zeile 343
hoffe ihr könnt mir helfen.

jannicars

Re: Portalview + Gallery

Posted: 10. March 2010 17:10
by Marc
Probier mal das hier:
viewtopic.php?f=31&t=3299#p21553

Re: Portalview + Gallery

Posted: 10. March 2010 17:15
by jannicars
super danke funktioniert =)
Echt toller Support ;)

jannicars

Re: Portalview + Gallery

Posted: 30. August 2010 17:04
by juliocbcotta
The solution above does not work well to me...that make the error stop, but..
When I apply that, the right block of the gallery appear in the portal, but not in the index page or in any orther pages.
to make it work I code in the phpbb/portal/block/gallery.php
find:

Code: Select all

include($phpbb_root_path . $gallery_root_path . 'includes/functions_recent.' . $phpEx);
replace:

Code: Select all

$gallery_root_path = GALLERY_ROOT_PATH;
if(!function_exists('recent_gallery_images'))
{
    include($phpbb_root_path . $gallery_root_path . 'includes/functions_recent.' . $phpEx);
} 
I hope to help someone :D