forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Bridging/Integration => Topic started by: lennart on April 24, 2004, 08:47:08 pm

Title: Coppermine and Wordpress
Post by: lennart on April 24, 2004, 08:47:08 pm
Hi,
I made a plugin for Wordpress (http://www.lennartgroetzbach.de/cpg.plugin.phps) to insert Coppermine albums and images into Wordpress posts.
Let me know what you think...

[attachment deleted by admin]
Title: Re: Coppermine and Wordpress
Post by: hyperion on April 24, 2004, 11:27:30 pm
It looks very nice.  Would you like for us to make it available as a mod?
Title: Re: Coppermine and Wordpress
Post by: mrdatalife on April 25, 2004, 04:41:59 pm
Quote
It seems that you are not allowed to download or view attachments on this board.

what's the trick? :)
Title: Re: Coppermine and Wordpress
Post by: Joachim Müller on April 25, 2004, 11:37:13 pm
no trick, mis-configuration of attachment management by me, sorry :-[. Please try again.

GauGau
Title: Re: Coppermine and Wordpress
Post by: lennart on April 26, 2004, 05:04:04 am
Would I like you to make it a mod?
Sure, go ahead...
Title: Re: Coppermine and Wordpress
Post by: Joachim Müller on April 26, 2004, 08:25:03 am
it already is, your posting has been modified to show the attachment.
I added it to the download section (http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98542&release_id=192577).

Gaugau
Title: Re: Coppermine and Wordpress
Post by: AnnieB on January 02, 2005, 05:42:54 am
I tried installing this but I get an error with the add_filter function
and if I try deleting this part, it wont work

I'm using wordpress 1.2 and I dont have a my-hacks file, just plugins.php


ideas? suggestions?
Title: Re: Coppermine and Wordpress
Post by: luq on January 07, 2005, 02:03:52 pm
Try this link to create a my-hacks file.

http://www.wiki.wordpress.org/my-hacks.php

I'm kinda stuck on this whole thing too (and setting up Coppermine themes as I have no programming base).

Did a search and found it. Hope it helps.

Cheers.
Title: Re: Coppermine and Wordpress
Post by: fusionx on January 23, 2005, 03:47:38 am
I have this installed and working with [cpg_album:x].  However, when I try to use [cpg_image:x,x], I get the following error:

Database error: [Unknown column '81' in 'order clause']

I'm using CPG 1.3.2

I resolved the error by changing this:

Code: [Select]
  $wpdb->query('SELECT filepath, filename, title FROM '.CPG_TABLE_PREFIX.'pictures WHERE aid='.$aid.' ORDER BY '.$aid.' LIMIT 1 OFFSET '.($pos - 1));
to this:

Code: [Select]
  $wpdb->query('SELECT filepath, filename, title FROM '.CPG_TABLE_PREFIX.'pictures WHERE aid='.$aid.'  LIMIT 1 OFFSET '.($pos - 1));
eg; simply removed the ORDER BY clause as it doesn't seem necessary when retrieving only one image.

It works very well now - thank you!

Title: Re: Coppermine and Wordpress
Post by: texx on March 30, 2005, 04:00:37 pm
i make a plugin of the code.

you can find it under http://www.texx.org/?p=47

hope it helped.
Title: Re: Coppermine and Wordpress
Post by: Joachim Müller on March 30, 2005, 05:37:44 pm
download link on your page was broken for me in the first place, now it's up again. In case the link goes down again, I attached the file you posted in your download section to my posting as well. Make sure to rename after downloading...

Joachim
Title: Re: Coppermine and Wordpress
Post by: texx on March 31, 2005, 09:05:19 am
a new version with some bug fixes!

removed bug:  DB problems when plugin is activated
                     some small fixes

http://www.texx.org/?p=47


Title: Re: Coppermine and Wordpress
Post by: MonkeyManx on April 26, 2005, 06:12:57 am
Does this use the coppermine user table, to allow multipule admins?
Title: Re: Coppermine and Wordpress
Post by: riris on June 24, 2005, 03:55:31 am
thanks for the plugin. It's greate!  :D

Here is my page (http://greek-help.info/?page_id=155) (just a look, because is in ..Greek)
Title: Re: Coppermine and Wordpress
Post by: warhonowicz on July 24, 2007, 05:05:58 pm
Does this work with the latest version of WP? Or is there someone out there who has integrated WP 2.2x and CPG 1.4.12?
Title: Re: Coppermine and Wordpress
Post by: MoYo on October 10, 2008, 07:29:28 am
Schade das nicht ein einziger Link auf dieser Seite mehr funktioniert...
Ist das Plugin noch verfügbar?
Title: Re: Coppermine and Wordpress
Post by: Joachim Müller on October 10, 2008, 08:38:54 am
On this board only English postings are allowed (see http://forum.coppermine-gallery.net/index.php/topic,55415.msg270626.html#msg270626). You said that most links were down - I haven't checked that. However, the attachments remain - that's why the initial thread of the thread starter was edited in the first place: links go down, but attachments remain. Can't tell wether they will work with up-to-date releases of WP, as I no longer use that app. Please find it out and report back.
Title: Re: Coppermine and Wordpress
Post by: MoYo on November 05, 2008, 03:13:18 pm
Sorry for breaking the rules quite with my first post...
And yes I will keep on trying to somehow link Coppermine to Wordpress,
even that I am far away from having a clue...
Title: Re: Coppermine and Wordpress
Post by: mememolly on April 20, 2009, 09:31:11 pm
i installed this plugin and i tryed both  [cpg_image:2,4]  [cpg_album:4]  in my post and it shows up as blank  anyone know what it should be to make the pics come out?
Title: Coppermine and Wordpress (New Plugin)
Post by: cyberspice on May 17, 2009, 11:05:27 pm
I've just uploaded a new plug-in/widget for Wordpress to the Wordpress site.  The plug-in provides a sidebar widget that shows a configurable grid of thumbnails which you can mouse over to see larger versions of together with the title and description.  Clicking on the thumbnail will take you to the Coppermine page for the image.

The plug-in is here:

http://wordpress.org/extend/plugins/wp-cpg-widget/ (http://wordpress.org/extend/plugins/wp-cpg-widget/)

And the plug-in page on my blog is here:

http://www.cyberspice.org.uk/blog/wordpress-coppermine-widget/ (http://www.cyberspice.org.uk/blog/wordpress-coppermine-widget/)

Melanie