forum.coppermine-gallery.net

Support => cpg1.4 bridging => cpg1.4.x Support => Older/other versions => cpg1.4 bridge contributions => Topic started by: Mr T on July 12, 2005, 11:50:35 am

Title: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Mr T on July 12, 2005, 11:50:35 am
I am using a CMS (Content Management System) for making my homepage - it is called PHP-Fusion - it is represented in at least 10 countries, some of them are:

England: http://www.php-fusion.co.uk/
Germany: http://www.php-fusion.de/
Sweden: http://www.php-fusion.se/
Denmark: http://www.phpfusion.dk/

It is similar to PostNuke, PHP2BB, XOOPS and others - and are using PHP and MySQL.

I Denmark where I live, as in England (the UK) - this CMS system is becoming more and more popular.

I would like your excellent Coppermine Photo Gallery to be integrated with PHP-Fusion, so that we are able to use it too.

Is it allready posible, cause I have not seen it on the list yet in your drop diown menu, when I signed up for this forum login account??

It would be excellent and a lot of people with PHP-Fusion would be very happy to be able to use your photo gallery.

Thank you very much!  ;)

/Mr T
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: kegobeer on July 13, 2005, 01:15:21 am
Feel free to develop a port of our standalone product.  We don't make ports, we only provide bridge files (if requested and our bridge writer can find the time to install a BBS and develop a bridge) that allow Coppermine to connect to a BBS's user tables instead of its own.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Mr T on July 14, 2005, 10:25:51 am
Sorry if I ask some stupid questions below... ::)

I am not sure what it takes, maybe it would be just fine to have the bridge files - to use your excellent photo gallery together with PHP-Fusion ??

I did not mean for you to develop a complete integration with PHP-Fusion - if that what you mean by develop a port - but I saw that you allready is compatible with PostNuke, PHP2BB, XOOPS and so on - so I just could not see if your gallery would work with PHP-Fusion allready - or there might be needed some bridge files as you write or ??

Is the bridge files what is needed for the developing team of PHP-Fusion to get it to work with PHP-Fusion, just like you allready have compability with PHP2BB, PostNuke and others or what do the PHP-Fusion developing team need from you, to get it to work within PHP Fusion??

/Mr T ;)
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on July 14, 2005, 11:07:58 am
the existing bridge files almost certainly won't work for PHP-Fusion, you'll have to write separate bridge files for your particular app. You need intermediate to good coding skills to do so. If you don't have those skills, you might want to hire a coder. As kegobeer suggested: we usually don't create bridges, especially not for nuke clones, as a bridge file won't visually integrate coppermine into the other app, but only in terms of user management. People who use nuke clones want visual integration as well. To achieve this, not only a bridge file is needed, but a port (this means a lot of re-coding of coppermine's core code, losing compatibility on the way).
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 25, 2005, 04:34:54 am
I hope this bumps this thread up. I am also developing a site with PHP-Fusion. It does have an image gallery mod available but I am much happier with Coppermine. Anyway. No recoding necessary. I just need a bridge to share user info. Can anyone help me get started. I can adapt or create a theme to visually match well enough and I will just link to gallery using href target=_Blank.

Running on Fedora Core 4. I would like to learn how to do this as opposed to having someone else do it for me but I will be happy either way.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on November 25, 2005, 03:58:45 pm
I'll look into it.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 25, 2005, 05:25:02 pm
Thanks Nibbler. Let me know if there is anytihng you need. The server is not production so if you need access to it you can have it. Let me know and if I can PM you then I can give you address and access to the site.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on November 26, 2005, 11:56:23 pm
See how this works. You'll need to edit in the details:

Code: [Select]
// URL of your fusion
$this->boardurl = 'http://localhost/fusion';

// local path to your fusion config file
require_once('../fusion/config.php');

Then upload into your bridge folder and use it as a custom bridge file in the bridge manager. Unfortunately php-fusion does not appear to support redirection back to Coppermine after login/logout.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 28, 2005, 09:30:17 pm
Nibbler. Thanks for all the help on moving photos. A repartition and reinstall along with restoring files and DB's made for a much happier server. Regarding the bridge.

went through the wizard - all looked fine. Went to gallery and got......

Fatal error: fusion_cpg_udb::fusion_cpg_udb() [function.require]: Failed opening required '../fusion/config.php' (include_path='.:/usr/share/pear') in /var/www/html/mattc/gallery/bridge/phpfusion.inc.php on line 33
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on November 28, 2005, 09:33:31 pm
Is ../fusion/ the correct location of your php-fusion ?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 28, 2005, 09:37:39 pm
Darn you are fast. I posted the reply, read it, went DOH, edited and uploaded new bridge and all is good!

You are the bomb! I have got to learn more php
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 29, 2005, 12:07:26 am
OK Nibbler. The bridge seems to be sort of bridging. I have to set albums to allow visitors to post in order to upload even logged in as Administrator. Let me know if you want an admin account to check on it and I will PM it to you
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on November 29, 2005, 12:18:00 am
That's normal behavior.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 29, 2005, 02:33:10 am
ok. I cant find anything else wrong at all. Looks like one to move to done!! Thanks bunches
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on November 29, 2005, 10:42:41 am
@Nibbler: is this stable enough to go into cpg1.4.3?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on November 29, 2005, 10:46:47 am
I should think so. Would you like me to add it ?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: idontno on November 29, 2005, 04:54:41 pm
Gau Gau - I have tested it pretty hardily and I am quite pleased. May I announce its existance to the PHP-Fusion gang?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on November 30, 2005, 09:49:09 am
I should think so. Would you like me to add it ?
Yes, I think you should. Excellent work, as usual!

Gau Gau - I have tested it pretty hardily and I am quite pleased. May I announce its existance to the PHP-Fusion gang?
Yes, please go ahead  ;D
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Dominator69 on December 24, 2005, 06:42:17 pm
is there newer file i tried this file here i did bridge it i can see that im login from php fusion in the gallery but when i try to go to admin section and add album i got this error "Fatal error :"  any help apriciated. thanx in advance.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 24, 2005, 06:44:51 pm
That's almost certainly unrelated. Search the board.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Dominator69 on December 24, 2005, 06:58:22 pm
         
Code: [Select]
// URL of your fusion
$this->boardurl = 'http://localhost/fusion';

// local path to your fusion config file
require_once('../fusion/config.php');

is there anything else to edit on that file or just this
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Dominator69 on December 24, 2005, 07:39:13 pm
i turn on debug mode and i got this  Fatal error:
Code: [Select]
While executing query "SELECT u.user_id AS id, u.user_name AS username,
 u.user_password AS password, u.user_level AS group_id FROM ``.fusion_users AS u WHERE u.user_id='1'" on 0

mySQL error: Incorrect table name 'fusion_users'
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 24, 2005, 07:45:08 pm
Looks like it didn't pickup your database name, try specifying it.

Code: [Select]
// Database connection settings
$this->db = array(
'name' => 'type_the_name_of_your_fusion_database_here',
'host' => $db_host,
'user' => $db_user,
'password' => $db_pass,
'prefix' =>$db_prefix
);
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Dominator69 on December 25, 2005, 09:07:01 am
thanx a lot that worked  ;D
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Dominator69 on December 25, 2005, 12:16:17 pm
i got new problem everything works fine but when i click on photo to enlarge popup window come out but not the photo that i click just the parts of my site "header and footer", what could be the problem
Code: [Select]
<script type="text/javascript" src="scripts.js"></script>
this is good in template.html.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Surfer_D on February 22, 2006, 03:16:49 pm
Hi nibbler,

Can you help me too. I've read this post 10 times already but still no success.

I've created the file test.inc.php with the content:
Code: [Select]
// URL of your fusion
$this->boardurl = '';

// local path to your fusion config file
require_once('config.php');

I then used the bridging wizard where I wrote the word "test" as a bridge. I finished the wizard, but after I finish and click on the users to see if the users are linked from Fusion I get an error message:
// URL of your fusion $this->boardurl = 'divjaki.com'; // local path to your fusion config file require_once('config.php');
Fatal error: Call to a member function on a non-object in /home/sce/public_html/divjaki.com/galerija/include/init.inc.php on line 265


Can you please help me!

Thanks
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on February 22, 2006, 03:23:14 pm
You don't create a file, you use the one I posted.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Surfer_D on February 22, 2006, 03:51:46 pm
Just 4 words: YOU ARE THE BEST


THANKS

P.S: I have no idea how I mislooked your file
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on February 22, 2006, 03:52:34 pm
What did you edit in the bridge file ?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Surfer_D on February 22, 2006, 03:57:41 pm
$this->boardurl = ''  //I left blank

the ../config.php line stayed default

I just tested it and it works perfect!

Thanks
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Surfer_D on February 22, 2006, 04:15:01 pm
The only thing I found is that the web publishing is not working if the users are taken from the fusion. It asked me for a password even if I was logged in the gallery and then nothing happenes. If I disable bridging then it works.

Got any ideas mate?  ;D
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Surfer_D on February 27, 2006, 12:52:09 pm
Hi Nibbler,

There seems to be some issues to the bridbe integration with fusion.

I can login with my fusion password, but I can't upload pictures, I have some script errors, can't make any comments to the pictures,... Do you have any similar feedback from other users? If not I could have specified wrong parameters in bridge file.

Thanks
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Tommi on March 06, 2006, 06:22:48 pm
hm! i have any problems to create the bridge file!!
can any where help me please??
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: pcboy123 on March 08, 2006, 05:28:22 am
did it all works except in Coppermine i get this

There was an error while processing a database query.

While executing query "SELECT COUNT(*) FROM `xmex_fusion`.fusion_users" on 0

mySQL error:

?? dont know what happend!!
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Frasse on October 22, 2006, 05:24:22 pm
I have been using PHP-Fusion and Coppermine for several years now and today I found the CPG-PHP-Fusion bridge. I really became glad since my users aren't computer specialists and by just having to login twice makes them very confused. Thats my real life problems...  ;)

I installed the bridge, but it gives some strange results. My groups seems to have been "reset" in some way. Can anyone explain how groups are handled when bridging CPG with PHP-Fusion? Is it not possible to activate the bridge in a site that has been active for a while?

Is it not possible to use groups other than predefined groups.
I also get an error message when trying to manage users in CPG when bridge is activated. Empty page with only text "No input file specified."

Has anyone faced the same problems as I do??

BTW, I use CPG 1.4.3 and PHP-Fusion 6.00.304.

Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Sami on October 22, 2006, 06:23:01 pm
- Upgrade ASAP to 1.4.9

disable bridge and re-install it with post-base group
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#bridge_manager_specific_start

and also here is a warning from documentation:
Warning: If you already have users and custom groups in your coppermine database when you enable bbs integration, be aware that they will be lost. If your coppermine users have already created private albums and uploaded pics to them, they will be lost as well!
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Frasse on October 22, 2006, 06:31:16 pm
To bee more specific I need to continue my post above... Sorry for my dual replies...

In PHP-Fusion we have two sorts of "group" definitions:
1. user_level (Ther ar 4 different: Superadmin, Admin, Member and Guest)
2. user_groups (which are custom defined at each installation)

What I want to acheive is that only users that are
1) (Superadmin, Admin or Member) as defined by "user_level" and
2) defined as member inte the user_group "Club Members"

shall have the rights to create their own albums in CPG. This results in the effect that Users that are only "Member" will not have priviliges to create their own albums.

???
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Master303 on November 09, 2006, 10:46:55 pm
Thanks alot for the bridge Nibbler :-)

I have a dilemma that i hope someone might have the answer to...
I'm trying to get cpg in the same window as fusion without having to open cpg in a new window, with no luck.

usually this code works, but where do i put it? or is there another way to solve it..?
<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
?>

Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on November 10, 2006, 07:51:39 am
Coppermine can not be integrated into another page using PHP's include or require command.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Horizon on December 17, 2006, 12:16:32 am
alfter that it's able to post comments/upload foto's . How to fix it?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Horizon on December 17, 2006, 10:30:36 pm
I've not done anything since the last post, but at the moment I can't to come in the gallery in aggregate  (http://neformatas.net/galerija/ ) any ideas mates what's going on? There can I manager this bridge?

Please help me.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: xphermg on December 22, 2006, 09:35:20 pm
Hi All!

I just did this last night and I love it.. cept for one small problem, my users can upload, they get this error:

Sorry there is no album where you are allowed to upload files

File: /home/beyond/public_html/pictures/upload.php - Line: 874

Now, I've gone into Groups and and modified it, I'm just not sure what is going wrong.  Any suggestions?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on December 24, 2006, 12:23:55 am
Not related to the bridge. Please read the docs.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on March 02, 2007, 06:31:25 pm
I know it must be in front of me somewhere but I can't find any info on where to actually get the bridge (and associated usage info). Can someone help?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on March 02, 2007, 07:14:27 pm
See http://forum.coppermine-gallery.net/index.php?topic=19741.msg111094#msg111094
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: clutch23097 on March 20, 2007, 05:05:35 am
any idea how do I got this error?

$this->boardurl = 'http://localhost/'; require_once('http://psrc.epinoy.com/config.php');
Fatal error: Call to a member function authenticate() on a non-object in /home/vhosts/psrc.epinoy.com/public_html/photogallery/include/init.inc.php on line 270

many thanks...
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 15, 2007, 12:20:52 pm
Nice thread :-) Just what I was looking for!

Installed and working fine!

I have a question though...I can see someone already asked the same without luck...so I will try to bring it to life...

Fusion has two types of groups...1) then pre-defined (admin, superadmin, users...) 2) User-defined

In the bridge posted in here, I only get group 1. I really need group 2...Can someone point me in the right direction?

Thank you!

Br
Kristian
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 15, 2007, 06:14:14 pm
Some more info to my last post:

My bridge table in the cpg db is empty when i browse it? Has something gone wrong? or should I fill it manually? to activate the groups?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on April 15, 2007, 06:54:57 pm
The bridge file does not support user defined groups, probably because I was not aware of their existence.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 15, 2007, 08:40:41 pm
Can you help or can you specify what areas I need to look into to modify the bridge. It is something that would help all fusion users wanting to use Coppermine. I'll be happy to give a try, but need some pointers...

Some details.

Basically the four groups that are now loaded through the bridge (or are they hardcode in the array?) are SuperGroups. You can only belong to one of these...SuperAdmin, Admins, Users, Guest. The other groups are subgroups to these. You can belong to many sub_groups.

Br
KristianS
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on April 15, 2007, 10:38:15 pm
You need to fix this to read in the user defined groups from the database:

Code: [Select]
function collect_groups()
{

$udb_groups = array(103 =>'Super Administrators', 102=> 'Administrators', 101=>'Members', 100=> 'Guests');

return $udb_groups;

}

and then make sure the users get put into the correct groups.

Set

Code: [Select]
$this->multigroups = 1;
near the top of the file and add an implementation of get_groups() - see other bridge files for examples.

You should be able to do all this by only modifying the phpfusion bridge file.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 17, 2007, 07:42:59 pm
Hey again,

What does this switch do?
$this->multigroups = 0;

When I change it to 1 I get a fatal error.

I have updated the collect group function and without setting the above to 1 it collects the correct groups.

Without changing anything the button "Assign album" (http://../cpg1410/usermgr.php?op=group_alb_access&gid=1) then this links to a list of my users within fusion. I would expect that this function would open a box containing available albums...Any ideas?

The get_groups function what should it do? should collect the users for the groups? and add them to the coppermine tables? I confued about the named perhaps...since I already collected the groups...

br
Kristian

Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on April 17, 2007, 08:19:28 pm
multigroups means you need to provide a get_groups() function to get all the groups the user is in. Without this you get the simpler method of a single group for the user.

It says assigned albums, not assign albums. This is not related to what you are doing.

collect_groups() retrieves the list of all available groups that exist. This is only called during a group sync (via bridge manager or a groups page visit).
get_groups() gets the groups that the currently logged in user is a member of. This is called every time.

I'd love to be able to help you more with actual code, but I just don't have the time currently.

Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 17, 2007, 10:01:31 pm
No problem, this was a great help. The problem is that the bridge files are not over commented...so I need to ask :-)

I'll be back!
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 22, 2007, 07:32:21 pm
Ok, here is where i've gotten so far...

Code: [Select]
function get_groups( &$user )
 {
//$groups = array($user['group_id'] - 100);
$sql = cpg_db_query("SELECT user_groups, user_level FROM {$this->usertable} WHERE {$this->field['user_id']}='{$user['id']}' and user_groups <> '' and user_level <> '';");

$user_level=mysql_result($sql,0,"user_level");
$user_groups=mysql_result($sql,0,"user_groups");

$groups = explode(".", $user_groups);
array_push($groups,$user_level);

print_r(array_values($groups));

return $groups;
}

I havent really looked at php before so if I have done something less secure etc. pls advice....Anyway here is my problem:

Error log from CPG:

Code: [Select]
While executing query "SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg1410_usergroups WHERE group_id in (1,4,103,)" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1


It seems that the array might have an extra entry or something since it adds that last "," which crashes the SQL....but can't figure it out since a print of the array gives: Array (

Any suggestions?

Br
Kristian
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 22, 2007, 07:59:44 pm
Ok, more input:

It seems that in the file: udb_base.inc.php there is a check for the value primary group. This is empty, in which case it adds an empty value to the array...Where is this set and what should I do about it?

if (!in_array($pri_group, $groups)) array_push($groups, $pri_group);
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 23, 2007, 09:51:22 pm
Ok I believe I have cracked it :-)

The bridge now reads the userdefined groups and adds them to the CPG tables when ever you click on the groups tab (logged in as admin). Also it reads the fusion users userdefined groups and the users current user_level. Depending of the level the user gets admin rights in CPG as well.

I would like some review, since i'am a major newbie at this (e.g. first php script ever).

Pls test/review for the following:

Security issues
Stability
Excessive use of variables etc.

Br
Kristian
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: KristianS on April 24, 2007, 07:53:29 pm
New version fixed bug if a user didn't belong to a user_defined group and only had a supergroup.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: gaagaa on November 02, 2007, 02:01:27 pm
i dont what i did wrong but after i put bridge on the server, when i go to gallery it redirect me to fusion site but nothing happend.. when ia back to gallery i'm still not logged..:((((
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: gaagaa on November 02, 2007, 02:02:41 pm
my site address: www.advenduro.pl
my gallery adres: www.advenduro.pl/cpg
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on December 23, 2007, 09:53:45 pm
I am trying to use this bridge and am having problems. I'm hoping someone can help.

When I use the bridge file that Nibbler originally posted athttp://forum.coppermine-gallery.net/index.php?action=dlattach;topic=19741.0;attach=1990 (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=19741.0;attach=1990), everything seems to be okay, no errors or anything. But When I login to PhP-fusion and then go to Coppermine gallery, Coppermine doesn't show me as logged in. And the of course when I click Login it sends me right back to Fusion where I am already logged in. It's apparently not passing the logged in status.

Upon scrolling thru the thread and seeing the work from KristianS to add user defined groups, I figured this was the leats updated bridge file at http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=19741.0;attach=7183 (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=19741.0;attach=7183). I use that file, however, and I get an error message Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/.sachi/f13n144e/islandadults.net/cpg/bridge/phpfusion.inc.php on line 49
.

I'm not well versed in PhP and am having a hard time thinking this thru to some kind of resolution. Can anyone help?

NOTE if following my domain URL, this is on an adult themed site.

Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 23, 2007, 09:59:47 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_support_start

That file uses PHP5 syntax which you presumably don't have.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on December 23, 2007, 10:46:36 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_support_start

That file uses PHP5 syntax which you presumably don't have.
I'm on PHP 5.2.2. Can you tell me which file I should be using between yours and the one KristianS posted?


Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 23, 2007, 10:51:40 pm
islandadults.net is running 4.4.7 according to its headers. Use my file and do as suggested in the link I posted if you want support.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on December 24, 2007, 04:28:46 am
Okay, sorry. I'm using your file.

I have the following issue when trying to bridge coppermine and PhP-Fusion v6.01.13:
Bridging appears to work. When trying to login or register on coppermine, it sends user to PhP-Fusion to do so. But from logging in on PhP-Fusion and then going to Coppermine, Coppermine does not show user as logged in. Login is not being passed.

Coppermine install: http://www.islandadults.net/cpg/
Forum install: http://www.islandadults.net/
Coppermine version: cpg1.4.14
Forum version: PhP-Fusion v6.01.13
Test user account: testuser / testuser123

BridgeManager settings:
Forum URL:  http://www.islandadults.net
Relative path to your BBS's config file:  ../config.php
Use post-based groups?:  0
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 24, 2007, 05:04:35 am
I don't see anything obviously wrong. Perhaps there have been changes to php-fusion since I wrote the bridge file. I don't have any record of which version it was created for. Can you enable debug mode for me?
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on December 24, 2007, 05:19:25 am
I enabled debug mode. I had to disable gridging in order to login to CPG and then enabled bridging again. Still no change BTW.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Nibbler on December 24, 2007, 05:34:37 am
Looks like the auth system has changed. Bump this thread in a few days if I don't get back to you.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on December 28, 2007, 07:31:08 am
I hope you had some time to look at the new PhP-Fusion auth system.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: waldi on January 02, 2008, 02:00:30 pm
I have the same problem, after updating extreme fusion they applied new system captcha an double hashing of passwords in MD5 algorithm. This update is available here  http://extreme-fusion.pl/downloads/efIV/updates/EF_update(4.09).zip
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on January 13, 2008, 05:22:40 am
Sorry, I don't want to confuse anything. Is extreme-fusion the same as php-fusion? Will the files that you provided a link for work with my PhP-Fusion to Coppermine Gallery bridge effort? The files look like they replace core Fusion files..
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: waldi on January 13, 2008, 06:41:59 pm
I gave the link, because there files which include new authorisation and I wanted somebody to comprare them. And extreme fusion is modificated version of php-fusion. I am waiting somebody to fix my problem
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: batbaru1 on January 14, 2008, 03:47:04 am
Oh, okay. Well I guess I'm stuck with this effort then.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: nygrent on February 11, 2008, 04:57:16 pm
Hi!
I´m a totall newbie, I got this error, as seen on the first page of this topic
Fatal error: fusion_cpg_udb() [function.require]: Failed opening required '../test/shop/config.php' (include_path='.:/usr/lib/php') in /customers/stoptheviolence.se/stoptheviolence.se/httpd.www/shop/test/galleri/bridge/phpfusion.inc.php on line 33

But I just dont know what to change
my fusion lies on a test server on www.stoptheviolence.se/shop/test/config.php

Am I linking to the wrong place?
Thanks in advance!
/Theodor
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: lord55 on March 05, 2008, 02:13:43 pm

I have the following issue when trying to bridge coppermine and PhP-Fusion v6.01.13:
Bridging appears to work. When trying to login or register on coppermine, it sends user to PhP-Fusion to do so. But from logging in on PhP-Fusion and then going to Coppermine, Coppermine does not show user as logged in. Login is not being passed.
Coppermine install: http://www.pftest.nobiltadeipari.com/photogallery/
Coppermine version: cpg1.4.16
Forum version: PhP-Fusion v6.01.13

also i have the same problem!!!!
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: nssdata on December 29, 2008, 11:20:12 am
Hi, i have been reading all your posts in this thread all night, and trying to get php-fusion to work with coppermine... but with no luck!

it goes fine to my coppermine, but NOT logged in!  and if i press "log in" button in coppermine firefox says: that it has stopped the action, becourse it has detected that it is a loop that will go on forever....???

everything else works!  just cannot login!

i have a few questions i can't seem to find the answer to..

1. do you use the same Mysql DB for php-fusion and coppermine?
2. how do you link to coppermine from php-fusion? (making link in menu that directs whrere?)
3. has anyone tried this with the v7 of php-fusion??  (im using v7 due too more security)
4. where do you need to have the cpg folder? (ex. http://mysite.dk/cpg/)  is where i have it now.


maybe if someone who has had this working properly could write down exactly how, so us newbies maybe could follow that?

i wish i was better at php but im still learning ;)

hope you can help, i think Coppermine is the best photogalleri out there! :)
thx in advance :)

Niels
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: it2007me on May 05, 2009, 09:35:45 pm
im using Php-Fusion v7.00.05, plz help me integration with Coppermine Photo Gallery  ??? :o
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: it2007me on May 05, 2009, 09:37:06 pm
im using Php-Fusion v7.00.05, plz help me integration with Coppermine Photo Gallery  ??? :o

Coppermine Photo Gallery : cpg1.4.22
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: Joachim Müller on May 05, 2009, 11:35:04 pm
We can not help you with so little details...
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: AmberWV304 on April 30, 2018, 02:21:38 am
I know this thread is REALLY OLD but what's the chance of getting this Bridge updated to work with PHP-Fusion 7.02.07? I'd love to use Coppermine Gallery on my PHP-Fusion site again.
Title: Re: PHP-Fusion and Coppermine Photo Gallery integration
Post by: ron4mac on May 01, 2018, 03:28:47 pm
Maybe you should upgrade to Fusion 9 first.