Advanced search  

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

Pages: [1]   Go Down

Author Topic: Integration With Wordpress?  (Read 14218 times)

0 Members and 1 Guest are viewing this topic.

Lahori_Munda

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Integration With Wordpress?
« on: August 27, 2010, 11:28:20 am »

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?
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Integration With Wordpress?
« Reply #2 on: August 27, 2010, 06:55:53 pm »

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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Lahori_Munda

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Integration With Wordpress?
« Reply #3 on: August 29, 2010, 01:23:25 am »

@Jeff Bailey

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

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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Integration With Wordpress?
« Reply #4 on: August 29, 2010, 09:25:42 am »

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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Sophist

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
    • How to be a Video Vixen
Re: Integration With Wordpress?
« Reply #5 on: November 24, 2010, 07:53:28 pm »

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.
Logged

edhkirk

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Integration With Wordpress?
« Reply #6 on: June 08, 2011, 08:10:07 am »

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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Integration With Wordpress?
« Reply #7 on: June 08, 2011, 04:55:24 pm »

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

projwest

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Integration With Wordpress?
« Reply #8 on: June 12, 2011, 09:23:07 pm »

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?
Logged

cubehouse

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Integration With Wordpress?
« Reply #9 on: June 20, 2011, 10:56:59 am »

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:
Code: [Select]
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).
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.