Integration With Wordpress? Integration With Wordpress?
 

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 With Wordpress?

Started by Lahori_Munda, August 27, 2010, 11:28:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lahori_Munda

Hi, i just upgrade the coppermine and i am looking to integration system with Wordpress latest version. Is there any bridging system for wordpress or not?

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

phill104

I've seen a few for older versions but none yet for 1.5.x. I have however seen sites where wordpress is bridged with SMF and so is Coppermine 1.5.x so in effect SMF controls the login for all three.
It is a mistake to think you can solve any major problems just with potatoes.

Lahori_Munda

@Jeff Bailey

I just check it, but there is no info regarding wordpress.

I am using 3+ wordpress and latest version of coppermine.

phill104

What Jeff was saying is that there is no current bridge for Wordpress that we support so you'll either have to search the new for one, bridge 3 ways with another app or create your own. Sorry.
It is a mistake to think you can solve any major problems just with potatoes.

Sophist

I was looking for similar information so that I can use coppermine within my wordpress blog. Im hoping that since enough people are asking/inquiring about integration with wordpress that it will soon be available. Im trying to avoid having to pay someone a few thousand dollars to code it for me, lol.

edhkirk

Has anyone been able to program a bridge between wordpress and coppermine?

I am considering getting this programmed.  Let me know if you are interested with a pm.

phill104

If you manage it please share it with the community. It would certainly be a welcome addition.
It is a mistake to think you can solve any major problems just with potatoes.

projwest

I have posted a project at vworker:

http://www.vworker.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1679072

I would love to get any comments on what features would be desired in a bridge.

Anyone care to donate - or share in the expenses and management of this bridge development?

cubehouse

I've actually been working on a WordPress bridge myself, it essentially works but needs a little more tidying up before I'll pop it on the net.

Essentially there are a few problems I've had to solve.

1) You need to include WordPress's wp-config.php, but this file also attempts to load the entire WordPress libraries, which you do not want. Why? Because WordPress uses some of the same functions as Coppermine which means you get a lovely page full of "function redeclared" errors.
Fix?
In wp-config.php we have this line which loads the main WordPress code base:
if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/');
So, all we do is define ABSPATH before including wp-config.php to point to an empty "wp-settings.php" file and huzzah! We've got the WordPress configuration settings without conflicting code.

2) Now we haven't loaded WordPress..... how on Earth do we authenticate?!?!
I had previously written a function to manually do this myself, but I recently found somebody else had the same idea, but they wrote it much neater and smarter than myself:
https://gist.github.com/1026786
Small WPAuth class allows you to verify a wordpress cookie is correct and to return the user ID.

3) Group management isn't quite so simple in WordPress, you can either code it to use group management from a plugin like Simple:Forum or you can rewrite a fair chunk of the udb_base to use the WordPress roles system (which would probably be a smarter idea).

Anyway, I haven't finished working on my bridge, I'm not sure if it will ever actually be all that flexible since it's coded pretty tightly for me own server.
But, I thought I would share my discoveries, that should significantly aid anybody trying to do this (and please chip in thoughts if you think of better solutions).