IntegraMod PHPBB Wrapping IntegraMod PHPBB Wrapping
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

IntegraMod PHPBB Wrapping

Started by theclaus, July 28, 2004, 07:04:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theclaus

I currently have Gallery which up to this point was fine but after the support went downhill I decided to look elsewhere.  Now here is my thing.  I want to know if Coppermine can be wrapped inside my forums.  Here is an example of what Gallery looks like.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.clausingclan.com%2Fimages%2Fphpbbgallery.gif&hash=6d99a49f153b2dd6e923bc81a45e638964834a2c)

See the blocks on the left.  Can that be done with Coppermine?  I know that for Gallery there is a module.php that is called to make it work with PHPBB.

Thanks in advance.

Claus

Joachim Müller

not in the way gallery does this (if you don't want to go for an iframes solution). You'd have to modify the coppermine theme to match your layout, and you could include the navigation (needs some fiddling with php though). Could you post a link to your page together with a test user account so we can look how things currently work on your page?

GauGau

theclaus

Okay here is the site.

http://www.clausingclan.com

test account information
Username: CPUser
Password: coppermine


From there you'll see a Gallery Link if you click on that it will take you to Gallery via the module.php that Gallery provided.

theclaus

Also I took a look at this module.php file that makes Gallery do what it does for PHPBB and found it to be pretty generic.  Here is the php code.

<?php

/*
** This file was written by Martin Smallridge <info@snailsource.com>
*/

define('MODULES_PATH''./modules/');

$op = ( isset($HTTP_POST_VARS['op']) ) ? $HTTP_POST_VARS['op'] : (isset($HTTP_GET_VARS['op']) ? $HTTP_GET_VARS['op'] : '');
switch (
$op)
{
    case 
'modload':
// Added with changes in Security for PhpBB2.
define('IN_PHPBB'true);

        
define ("LOADED_AS_MODULE","1");
$phpbb_root_path "./";
// connect to phpbb
include_once($phpbb_root_path 'extension.inc');
include_once($phpbb_root_path 'common.'.$phpEx);
include_once($phpbb_root_path 'includes/functions.'.$phpEx);

// Start session management
//
$userdata session_pagestart($user_ipPAGE_INDEX);
init_userprefs($userdata);
//
// End session management


// Deal with the register_globals issue temporarily
if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS);
}

if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS);
}

// Security fix
        
if (ereg("\.\.",$name) || ereg("\.\.",$file)) {
            echo 
'Nice try :-)';
            break;
        } else {
include(MODULES_PATH."$name/$file.$phpEx");
        }
        break;

    default:
        die (
"Sorry, you can't access this file directly...");
        break;
}
?>


After looking at it I decided to see if I could make it work with Coppermine.  So I installed it in the modules directory and modified the install.php and index.php to get rid of the "YOU ARE TRYING TO INSTALL THIS IN A NUKE" and then added this line to my board nav like I did for gallery.

http://www.clausingclan.com/ccs/modules.php?op=modload&name=coppermine&file=index

and this is the error I get

Notice: Constant already defined in /home/theclaus/public_html/ccs/modules/coppermine/include/init.inc.php on line 196
Coppermine Photo Gallery - Your Online Photo Gallery
Coppermine Photo Gallery seems not to be installed correctly, or you're running coppermine for the first time. You'll be redirected to the installer. If your browser doesn't support redirect, click here.

However it is installed because you can hit it by going to http://www.clausingclan.com/ccs/modules/coppermine/index.php

Hope this along with the test account proves helpful.  I am not a big fan of IFRAME so while you look at this i'll look at modify the theme and try to include the block.

Nibbler

The install prompt is triggered when the include/config.inc.php file doesn't exist.

theclaus

Hmm well I added that to the include_once in the modules.php and now get Not in Coppermine.  Will still try stuff out though.