Portalview + Gallery

Dyos MOD Portalview - to show up Portal blocks in the whole forum.
Dyos MOD Portalview - um Portal Blöcke im gesamten Forum anzeigen zu lassen.

Moderator: Dyo

Forum rules
Please note that this modification is not a official part of the Board3 Portal!
Bitte beachten das diese Modifikation kein offizieller Bestandteil des Board3 Portal ist!
Locked

Topic author
jannicars
Active Member
Posts: 9
Joined: 27. December 2009 21:05

Portalview + Gallery

Post 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
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Portalview + Gallery

Post by Marc »

Probier mal das hier:
viewtopic.php?f=31&t=3299#p21553

Topic author
jannicars
Active Member
Posts: 9
Joined: 27. December 2009 21:05

Re: Portalview + Gallery

Post by jannicars »

super danke funktioniert =)
Echt toller Support ;)

jannicars

juliocbcotta
Active Member
Posts: 6
Joined: 8. August 2010 19:14
phpBB.com User: juliocbcotta

Re: Portalview + Gallery

Post 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
Locked

Return to “MOD Portalview - Portal blocks in whole forum”