Coppermine and Wordpress Coppermine and Wordpress
 

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

Main Menu

Coppermine and Wordpress

Started by lennart, April 24, 2004, 08:47:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lennart

Hi,
I made a plugin for Wordpress to insert Coppermine albums and images into Wordpress posts.
Let me know what you think...

[attachment deleted by admin]

hyperion

It looks very nice.  Would you like for us to make it available as a mod?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

mrdatalife

QuoteIt seems that you are not allowed to download or view attachments on this board.

what's the trick? :)

Joachim Müller

no trick, mis-configuration of attachment management by me, sorry :-[. Please try again.

GauGau

lennart

Would I like you to make it a mod?
Sure, go ahead...

Joachim Müller

#5
it already is, your posting has been modified to show the attachment.
I added it to the download section.

Gaugau

AnnieB

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?

luq

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.

fusionx

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:

  $wpdb->query('SELECT filepath, filename, title FROM '.CPG_TABLE_PREFIX.'pictures WHERE aid='.$aid.' ORDER BY '.$aid.' LIMIT 1 OFFSET '.($pos - 1));

to this:

  $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!


texx

i make a plugin of the code.

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

hope it helped.

Joachim Müller

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

texx

#11
a new version with some bug fixes!

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

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



MonkeyManx

Does this use the coppermine user table, to allow multipule admins?

riris

#13
thanks for the plugin. It's greate!  :D

Here is my page (just a look, because is in ..Greek)

warhonowicz

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?
Tell me and I will forget
Show me and I might remember
But involve me and I will understand

MoYo

Schade das nicht ein einziger Link auf dieser Seite mehr funktioniert...
Ist das Plugin noch verfügbar?

Joachim Müller

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.

MoYo

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

mememolly

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?

cyberspice

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/

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

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

Melanie