coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: silencer1981 on January 17, 2006, 05:05:24 PM

Title: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 17, 2006, 05:05:24 PM
Ok so we all know you don't support nuke and the people who were doing to are long gone. However after attempting to do it myself and failing I thought I'd ask here if anyone was up for modifying the phpbb bridge file to work with nuke, not as a module but just a bridge, I got it to use the database perfectly but I had problems with login/logout and cookies. Those are the only two problems which seem to me (if i new what I was doing) would be an easy fix, the bridge file would work, I am convinced of that. Anyone interested in this, there is a large nuke community stuck with 1.3.1 and I can't seem to find anyone willing to work on this.

Thanks for listening, if you think you can help let me know.

Brian
bjacobs@cogeco.ca
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 18, 2006, 11:39:46 PM
Will be posting all info soon so look to this post.
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 18, 2006, 11:45:26 PM
requesting help for writing a bridge file between standalone coppermine and nuke is perfectly OK and we appreciate your efforts. Nobody will move or delete this thread, a nuke bridge would be welcome.
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 18, 2006, 11:50:16 PM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 19, 2006, 12:18:35 AM
there's no document for bridge authors available. The only thing I can recommend is taking a look at the existing bridge files to get an idea how this is done (in fact you map the database fields one to the other there). I'm no nuke expert (in fact I know nothing about nuke), so I simply can't tell you more.
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 19, 2006, 12:27:16 AM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 19, 2006, 04:39:20 PM
Quote from: AWJunkies on January 19, 2006, 12:27:16 AM
it is same as phpbb user table except name is changed is only difference and some added fields for nuke. I am about to make my nuke phpbb seperate from nuke. To much security holes and the project has now been abandoned for quite some time on all fronts. Going to go to a stand alone forum system but the user table will stay the same minus the fat. I am working on the bridge as I type should be done in just a bit.

So if I understand you correctly, your gonna write a bridge for a standalone forum but using the nuke user database?. That sounds ok but as I said before the problem isn't really the user tables... its the session cookies and login/logouts. The phpbb bridge file is easily modified to use the nuke database. If I did missunderstand you I apologize. Thanks for you efforts and it would be awsome to see the results

Brian
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 19, 2006, 04:49:02 PM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 19, 2006, 04:53:48 PM
Quote from: GauGau on January 19, 2006, 12:18:35 AM
there's no document for bridge authors available. The only thing I can recommend is taking a look at the existing bridge files to get an idea how this is done (in fact you map the database fields one to the other there). I'm no nuke expert (in fact I know nothing about nuke), so I simply can't tell you more.

I didn't get a chance to see who wrote the current bridge files, is there any way we can get the authors of those involved in this, even for some Q&A or something?
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 20, 2006, 07:43:00 AM
The current bridge files where created by the dev team, most of them by Nibbler. Please don't contact him directly, he will answer in this thread if he wants to.
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 20, 2006, 08:10:51 AM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 21, 2006, 12:17:26 PM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 21, 2006, 12:33:42 PM
Good news indeed - I'm looking forward to see your contribution.
A file named coppermine.ini.php doesn't exist in coppermine's core code. In case you're refering to coppermine.inc.php - don't touch it, go for a custom file. It's mandatory that bridge files that are suppossed to go into coppermine's core don't require users to edit coppermine files. All user input should be done using the bridge manager.
Title: Re: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 21, 2006, 05:20:42 PM
Quote from: AWJunkies on January 21, 2006, 12:17:26 PM
I DID IT WOOT WOOT! Fully functional and cookies read for both domains and sessions. I can log in from either site however you want to set it up. Since I have two seperate web sites allwheeljunkies.com and allwheelphotos.com I have people can log in to photos through the login box i created on top right. PLEASE do not register to test or anything of that sort. I will be re-writing the code for this. I did it all manuel tonight to go even more in depth. There is more changes that need to be done then the other bridges that is for sure. The sessions and groups tables are all different. You have to edit coppermine.ini.php or put code into the custom.ini.php file. I REALLY like the whole coppermine system and how easy it is to dive in there and create own code etc. Thanks to the development team I appluad you. Well I leave to head to AZ in 3 hours for a business meeting. I will get back to this project on sunday afternoon. I am trying to go live with it by monday. SO look out for the code then.

That is so ****** awsome. Thanks so much for your efforts junkies. Goodbye 1.3.1 finnally.


and yes i would agree that coppermine is very well done, I mean the bridging system alone is genius.... most other devolopers would not even think to design that way...

I just hope all your efforts work for me as I am running 7.8.. I'm sure any problems wont be huge though
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 22, 2006, 06:46:35 AM
read first post...
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 22, 2006, 12:56:30 PM
Quote from: GauGau on January 21, 2006, 12:33:42 PM
A file named coppermine.ini.php doesn't exist in coppermine's core code.
Title: Re: Coppermine 1.4.3 and nuke
Post by: Nibbler on January 22, 2006, 03:52:09 PM
coppermine.inc.php is not used atall when bridged, it makes no sense to modify it.
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 23, 2006, 04:07:45 AM
Read first post..
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 23, 2006, 07:01:50 AM
I can see a huge problem in the fact that your nuke install and your gallery are on separate domains. This is not default and will cause authentification issues, making your bridging efforts unnecessarily hard.
As I suggested several times already, there is no such file as coppermine.ini.php, I have no idea why you keep refering to a file that doesn't exist.
Title: Re: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 23, 2006, 08:42:21 PM
Any updates on this Junkies?, run into any problems?
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 25, 2006, 04:04:45 AM
Sorry guys internet went down for past two days for adelphia to upgrade to a higher speed system. I will be working on it tomorrow and post up. The coppermine.ini.php file is in the bridge folder and to my knowledge and from what nibbler posted it is used UNTIL you have bridge 1 enabled in config. To what I have seen and tested when the functions are called upon it uses the coppermine.ini.php file and overided by the bridge file you create or use that comes with coppermine 1.4.3 stand alone. So basically it works like the theme system. If you change functions in the theme.php file it will overide the functions in the theme.ini.php. Functions not changed or not present in theme.php it will use theme.ini.php. So same goes with bridge. It uses the coppermine.ini.php file until functions are overiden by a bridge file. If the functions are not present it refers back to coppermine.ini.php.

PLEASE IF I AM WRONG TELL ME. but from what i tested it seems this way and I have made the bridge fully functional. I will post up the bridge file I used for my setup along with a seperate one for nuke.

Here is verification that core uses this coppermine.ini.php file. Delete it from site and see what happens.
QuoteFatal error: main(): Failed opening required 'bridge/coppermine.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/photos/public_html/cpg143/include/init.inc.php on line 236

so now lets look at init.inc.php file on line 224-236:
// Set UDB_INTEGRATION if enabled in admin
if ($CONFIG['bridge_enable'] == 1 && !defined('BRIDGEMGR_PHP')) {
    $BRIDGE = cpg_get_bridge_db_values();
} else {
  $BRIDGE['short_name'] = 'coppermine';
  $BRIDGE['use_standard_groups'] = 1;
  $BRIDGE['recovery_logon_failures'] = 0;
  $BRIDGE['use_post_based_groups'] = false;
}

define('UDB_INTEGRATION', $BRIDGE['short_name']);

require_once 'bridge/' . UDB_INTEGRATION . '.inc.php';



So from veiwing this it shows by defualt it uses the coppermine.ini.php file.

Thank you and let me know if something is wrong here.
Title: Re: Coppermine 1.4.3 and nuke
Post by: Joachim Müller on January 25, 2006, 07:01:07 AM
There is no file named coppermine.ini.php, but there is a file named coppermine.inc.php
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 25, 2006, 08:21:04 AM
AHAH going to call me out on one letter off. :) .
Title: Re: Coppermine 1.4.3 and nuke
Post by: Tranz on January 25, 2006, 08:24:33 AM
Well, it's because you've been corrected several times. It might not be a big deal to you, but for someone who is unfamiliar with Coppermine, it could be an exercise in futility as they search for a file that doesn't exist.
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on January 25, 2006, 11:49:46 AM
Ok guys that is besides the point. All I was stating is that I got the normal coppermine function info from there. Never said file had to be modified for the bridge to work. Also I have not posted the instructions yet or the file so nobody at this moment should be looking for the wrong file name I stated. I am sorry for stating the wrong letter in the first place and hope we can get this thread back on topic. I am working on it as we speak testing every little bug that may arrise or may not. I will be going live tomorrow and will have around 2800 users messing around trouble shooting. If all goes well I will implement on another site of mine with 80,000 members. If still no errors or issues I will post up how I did my setup bridge and also the nuke being on same domain share cookies etc. Thanks for your time and patients in this matter.
Title: Re: Coppermine 1.4.3 and nuke
Post by: silencer1981 on January 25, 2006, 05:42:48 PM
Thanks for the efforts, is it possible you could send me what you have completed so I can test it myself?. If not I guess I'll wait like everyone else. Thanks

Brian
bjacobs@cogeco.ca
Title: Re: Coppermine 1.4.3 and nuke
Post by: shadowmihaiu on February 04, 2006, 03:43:08 AM
I'm sure this was mentioned at some time, but I can't seem to find it :-\ what version(s) of php-nuke should this work with?

I'm a total newbie to all this - but Coppermine seems to have what I need and I also need to run php-nuke.  I'm up in a week and have to select my gallery s/w - Looking forward to being able to bridge to php-nuke. 7.0 to 7.8

And thanks so much for your work...  some of us could never look good without people like you Junkies...

- Shadow Mihaiu
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on February 04, 2006, 11:35:13 AM
Thanks but sorry I don't have the file for you guys yet. I have been working on the JUpload MOD and the batch edit. I released the port from 1.3.x to 1.4.3 just a few days ago. I should have JUpload done real soon. My bridge file I have works only with my setup. I have to modify it to work with same domain setups like your guys'. Sorry for the delay and hope to have it to you guys soon.
Title: Re: Coppermine 1.4.3 and nuke
Post by: wombiroller on February 20, 2006, 12:01:24 PM
Hmmmm, waiting waiting  ;)

No luck? Luck? News?

Thanks for your help  ;D
Title: Re: Coppermine 1.4.3 and nuke
Post by: zerokool on February 26, 2006, 02:15:42 PM
Hi i am a follower of nuke and i really like the idea of this coppermine 1.4.x to be developed for nuke i wish i had enough knowledge in nuke like to help edit all this but i dont all i can provide is that if you need a tester for this module as soon as u have it ready i can test it on my nuke 7.6 3.1 patched ok or different nukes in my hosting just let me know any help you need please.

Email & MSN: papichulouk@hotmail.co.uk

Oh and if you need translation to spanish i am colombian and living in Uk so i can help with that too.

Thank you i hope i hear sometin from this topic soon
Title: Re: Coppermine 1.4.3 and nuke
Post by: AWJunkies on February 27, 2006, 06:47:40 AM
Guys I am not sure what to tell you. I am in the process of moving to AZ for 2 weeks then to TX. My company just merged with another and it has been real hectic. We are opening up another shop in TX and my time has been packed getting only a few hours of sleep a night. I am working on programing 22 domains along with being president of a huge network. So time to program for fun has been limited. I am about to hire a full time programing team and as soon as they can finish my edit file to fit your cookie setup they will post it. So I am sorry it has taken so long. This is not my full time gig, I only do it for fun on my spare time. I will try to be in touch as much as possible.
Title: Re: Coppermine 1.4.3 and nuke
Post by: wombiroller on February 28, 2006, 10:39:31 AM
I think I speak for everyone when I say no need to apologies. Thanks for taking the time to share your knowledge and thanks for the update!! Will keep an eye on the post!  ;D
Title: Re: Coppermine 1.4.3 and nuke
Post by: eolica on May 12, 2006, 11:32:58 PM
Any news?