coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: futbol4kee on December 24, 2004, 03:37:21 PM

Title: Integration just like this site...
Post by: futbol4kee on December 24, 2004, 03:37:21 PM
I gave up on my vbulletin integration and im hoping that someone can help me get integration exactly like the SMF and coppermine on this site. i tried the smf integration myself but im confused with this api tool and how to use it so hopefully i can get a easy method so i can get seemless integration like the coppermine site here.
Title: Re: Integration just like this site...
Post by: Joachim Müller on December 24, 2004, 04:43:53 PM
did you read the integration/bridging section of the docs? Don't bother about the smf_api for now, just edit your bridge file as suggested and you should be done.

Joachim
Title: Re: Integration just like this site...
Post by: futbol4kee on December 24, 2004, 08:17:25 PM
ya i had and when i tried to integrate it it seemed to work except i would get errors regarding index.php at the top of the page and i couldnt log out so i just went back to original and asked here.
Title: Re: Integration just like this site...
Post by: Tranz on December 24, 2004, 08:20:32 PM
That's because the file doesn't exist in the path you used:
http://www.aducrejr.com/coppermine/images/worldmap.swf
gives a 404 not found error.

Looks like it's really here (http://www.aducrejr.com/worldmap.swf).
Title: Re: Integration just like this site...
Post by: futbol4kee on December 24, 2004, 08:29:30 PM
no thats not what i mean. at the top of the main coppermine page there were errors in "array" in index.php and when i tried to log out it would gimme an error about like session failed or something. if u want me to try to integrate again to give u the exact errors i will.
Title: Re: Integration just like this site...
Post by: futbol4kee on December 24, 2004, 09:35:22 PM
ok heres is the information i can provide u. if i set the correct data for (using the same information that i used for coppermine mysql database)


// database configuration
define('SMF_DB_NAME', $db_name); // The name of the database used by the board
define('SMF_DB_HOST', $db_server); // The name of the database server
define('SMF_DB_USERNAME', $db_user); // The username to use to connect to the database
define('SMF_DB_PASSWORD', $db_passwd); // The password to use to connect to the database

i get these errors when i try to access coppermine:

Notice: Undefined variable: driftlog_copper in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 84

Notice: Undefined variable: localhost in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 85

Notice: Undefined variable: driftlog in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 86

Notice: Undefined variable: ******* in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 87 (****** = my password i used)

Notice: Undefined variable: gallery in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 90
Coppermine critical error:
Unable to connect to SMF Board database !

MySQL said: Unknown MySQL Server Host 'SMF_BD_HOST' (0)

however if i leave the data the way it is i can access coppermine but i get these erros above the page:

Notice: Undefined variable: gallery in /home/driftlog/public_html/gallery/bridge/smf.inc.php on line 90

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 599

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 626

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 599

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 626

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 599

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/gallery/index.php on line 626

when i leave the default data except for a little editing to know where the forums are in smf.inc.php the forums and coppermine seem to integrate except i get these errors above and i cant log out. i get this error when i try to log out:

Session verification failed. Please try logging out and back in again, and then try again.

I have it set up like this. Coppermine in one folder (../Coppermine) and SMF in (../forums)

Title: Re: Integration just like this site...
Post by: Nibbler on December 24, 2004, 09:43:58 PM
You are not supposed to change those defines. Leave them as they are as they are automatically filled in from your smf settings file. That is why they are below the bit that says:


// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //


That means that there is nothing for you to edit below that line.
Title: Re: Integration just like this site...
Post by: futbol4kee on December 24, 2004, 10:47:22 PM
did i forget to mention that i did it both ways? well w/e but with the proper bridge file everything looks fine except when u log in (it only allows log in through forums) it wont let u logout, it says: "Session verification failed. Please try logging out and back in again, and then try again. " when u click logout from coppermine. also when u log in and then go to coppermine it says this on top:

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 602

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 629

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 602

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 629

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 602

Warning: in_array(): Wrong datatype for second argument in /home/driftlog/public_html/Coppermine/index.php on line 629
Title: Re: Integration just like this site...
Post by: Joachim Müller on December 26, 2004, 11:56:08 AM
just remove the logout link and you're fine. That's the only known issue (the logout not working from coppermine when bridged with smf). Make people go to your smf page to log out instead. A minor cosmetical issue imo (that will be addressed for future versions).
Edit themes/yourtheme/theme.php, find<!-- BEGIN logout -->
                        <a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->
and replace it with<!-- BEGIN logout -->
                        <!--<a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>-->
<!-- END logout -->


Joachim