Page 1 of 1

portalview and phpbb gallery conflict

Posted: 13. April 2011 15:04
by vova_ob
After editing includes/functions.php
After adding of this code

Code: Select all

	if(!defined('IN_PORTAL'))
	{
		include($phpbb_root_path . 'portal/includes/portalview.' . $phpEx);
	}
After reloading forum page on display is error string

Code: Select all

Fatal error: Cannot redeclare recent_gallery_images() (previously declared in /home/site.com/forum/gallery/includes/functions_recent.php:23) in /home/vovaob/site.com/forum/gallery/includes/functions_recent.php on line 343
who know,why ?

Re: portalview and phpbb gallery conflict

Posted: 13. April 2011 23:50
by vova_ob
+ conflict with mchat mod too :(

A temporary solution?

Posted: 14. April 2011 14:28
by gamingboard
Have you ever try this?:

Find: (gallery/includes/functions_recent.php)

Code: Select all

/**
* Display recent images & comments and random images
*/ 
Add after:

Code: Select all

if(!function_exists('recent_gallery_images'))
{ 
---

Find:

Code: Select all

            'COLLAPSE_COMMENTS'    => $collapse_comments,
        ));
    }
} 
Add after:

Code: Select all

Use at your own risk. I haven't tested this code.

Re: portalview and phpbb gallery conflict

Posted: 7. July 2011 08:50
by vova_ob
thanks