Integrating With Land Down Under (LDU) Integrating With Land Down Under (LDU)
 

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

Integrating With Land Down Under (LDU)

Started by byroman, November 04, 2005, 01:04:43 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

byroman

Hi all,
My website is powered by a website engine called LDU. I would like to integrate my gallery with it, mostly to be able to share the same users. LDU also uses PHP and MySQL, so i was wondering if it would be possible to use the same user tables as LDU. LDU's website is here: http://www.neocrome.net

Im no good with these things, so I have no clue what to do here :P It would be great if this would be possible other vise my users are going to have to have a separate account just for our gallery.

My website is here: http://www.ib.crazygaming.net. Im not sure what else to say.

Thanks in advance,
Byroman


byroman

Alright your going to have to bear with me here. Im new to all this stuff. I downloaded the file on that link. Now what do I do?
It would be great if some one could explain it to me sort of "step by step"


Thanks alot
Byroman

Nibbler

Extract the file from the archive
Edit the code near the top of the file as indicated
Upload it into your coppermine bridge directory
Edit include/init.inc.php - instead of uncommenting the relevent line for the bundled bridge files, add a new line:

define('UDB_INTEGRATION', 'ldu');

The rest of the usual bridging instructions apply.

http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#integrating


byroman

alright now my gallery seems to have shut it self down. check it out: http://ib.crazygaming.net/cpg135/index.php

Nibbler

Make sure you set this correctly:


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

byroman


Nibbler


byroman

alright still getting the same thing. Heres what the file looks like:

// Ensure the following:

// 1 : Your LDU is set to use cookies for authentication
// 2: You have set the cookie path in LDU to be '/'
// 3: You login using the 'remember me' option

// URL of your ldu
$path = 'http://www.ib.crazygaming.net/LDU801/';

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

// Anyone who's level is >= ADMIN_LEVEL is treated as a coppermine admin
define ('ADMIN_LEVEL', 50);

What an I doing wrong here??

Nibbler

Set the path right !

Should be ../LDU801/datas/config.php by the looks of it.

byroman


Nibbler

I get this message:

Warning: main(/LDU801/datas/config.php) [function.main]: failed to open stream

Please set the path as indicated in my post.

kegobeer

../LDU801/datas/config.php is not the same as /LDU801/datas/config.php!
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

byroman

I already did. it now looks like this:

// Ensure the following:

// 1 : Your LDU is set to use cookies for authentication
// 2: You have set the cookie path in LDU to be '/'
// 3: You login using the 'remember me' option

// URL of your ldu
$path = 'http://www.ib.crazygaming.net/LDU801/';

// local path to your ldu config file
require_once('.../LDU801/datas/config.php');

// Anyone who's level is >= ADMIN_LEVEL is treated as a coppermine admin
define ('ADMIN_LEVEL', 50);

I get these errors:

Warning: main() [function.main]: open_basedir restriction in effect. File(/LDU801/datas/config.php) is not within the allowed path(s): (/tmp:VIRTUAL_DOCUMENT_ROOT) in /usr/local/apache2/misc/18/125/556/895/2/web/ib.crazygaming.net/cpg135/bridge/ldu.inc.php on line 34

Warning: main(/LDU801/datas/config.php) [function.main]: failed to open stream: Operation not permitted in /usr/local/apache2/misc/18/125/556/895/2/web/ib.crazygaming.net/cpg135/bridge/ldu.inc.php on line 34

Fatal error: main() [function.require]: Failed opening required '/LDU801/datas/config.php' (include_path='.') in /usr/local/apache2/misc/18/125/556/895/2/web/ib.crazygaming.net/cpg135/bridge/ldu.inc.php on line 34



byroman

Thats all I had to do? Add 2 dots?
Well right off the bat ive got problems. Which version of LDU is this coded for? Im using LDU version 801. When I click log in on the galery it brings me back to my website, to the log in box. I log in, then it brings me back to my home page. So i go back to the gallery but it says im still not logged it. When I click on log in again, it brings me back to my website, but im still logged in. Looks to me like they are not communicating properly. How can I fix this?
Thanks a lot for your help,
Byroman

kegobeer

Make a test user and password and post it here.  Most likely you have some links that start with www. and some that don't.  www.ib.crazygaming.net is not the same as ib.crazygaming.net for cookies.  Also, I have no idea how LDU works, but you may have to tweak your cookie settings in LDU.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

byroman

Ok ive made one. Go to my gallery ( http://ib.crazygaming.net/cpg135/ ) and click on log in at the top. Then log in with this:

Username: Test Dummy
Password: Password

kegobeer

Fix your links - like I said earlier:

Quote from: kegobeer on November 04, 2005, 02:59:07 AM
www.ib.crazygaming.net is not the same as ib.crazygaming.net for cookies.

Your login link sends visitors to http://www.ib.crazygaming.net/LDU801//auth.php.  Your gallery is at http://ib.crazygaming.net/cpg135/.  Two different cookies, so your login will never work correctly.  Also, you have a double slash in your login link - you also need to fix that.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

byroman

#19
Ok ive fixed the double slash. For the cookies, i know your not familiar with LDU, but do you have any clue how to fix this? In the LDU admin panel under Cunfiguration/ Global theres an option called "Domain For Cookies". Do I have to change somthing here? There is also a box called Path For Cookies.