Integration just like this site... Integration just like this site...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Integration just like this site...

Started by futbol4kee, December 24, 2004, 03:37:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

futbol4kee

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.

Joachim Müller

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

futbol4kee

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.

Tranz

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.

futbol4kee

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.

futbol4kee

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)


Nibbler

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.

futbol4kee

#7
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

Joachim Müller

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