Skip to Content Skip to Menu

Coppermine Plugin

  • mwep
  • mwep
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 2
18 years 4 months ago #16027 by mwep
Replied by mwep on topic Re:Coppermine Plugin
Hi:

I am using the latest plugin attached to this forum, but I am having some problems.

I have the Coppermine Directory set at "/cpg148" and the tab in CB profile simply reads "My Photo Albums". It does not list the albums. My Coppermine/Joomla Bridge seems to be working correctly.

Current Installation:
Joomla 1.0.8
Coppermine 1.4.8
CB 1.0RC2

Any suggestions ?

Please Log in or Create an account to join the conversation.

  • pjoomla
  • pjoomla
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
18 years 4 months ago #16049 by pjoomla
Replied by pjoomla on topic Re:Coppermine Plugin
I had similar problems. I had to adjust how it handled paths.

The plugin looks for the Coppermine configuration file here (line 30 - also see line 28):

[code:1]require("$mosConfig_absolute_path$cpgDir/include/config.inc.php"«»);[/code:1]

where $mosConfig_absolute_path is from your Joomla configuration file and $cpgDir is the path you indicated in the plugin setup as "Coppermine directory."

Next, the plugin creates a link to the album in this manner (line 43):

[code:1]$link="$cpgDir/thumbnails.php?album=".$album->aid;[/code:1]

where $cpgDir is the same as above. It uses the same path structure for the image link.

This logic assumes two things:
  1. Your Coppermine root directory is directly inside you Joomla root folder. (So, joomla_root/cpg148 or whatever you've named it.) This is how the config file is found.
  2. Your Joomla root folder is at the root of your web directory (since the path to the configuration file requires you to put a starting /). This is how the album link works.

For my test web site, this isn't true. You may need to adjust the code to fit your directory structure.

EDIT (19.July.2006): The plugin also assumes that your Coppermine uses the same database as Joomla. (pointed out by mwep)

Post edited by: pjoomla, at: 2006/07/19 22:30

Please Log in or Create an account to join the conversation.

  • mwep
  • mwep
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 2
18 years 4 months ago #16202 by mwep
Replied by mwep on topic Re:Coppermine Plugin
THanks for the reply.

My installation is as you described in your message. Joomla is at the root level and cpg148 is within Joomla. I believe its finding the config file as its not returning the message that it can't be found.

What is displayed is simply "My Albums".

Any suggestions ?

Thanks!!!

Please Log in or Create an account to join the conversation.

  • mwep
  • mwep
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 2
18 years 4 months ago #16648 by mwep
Replied by mwep on topic Re:Coppermine Plugin
Can anyone help with this problem ? Please ??

Thanks!!!

Please Log in or Create an account to join the conversation.

  • pjoomla
  • pjoomla
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
18 years 4 months ago #16654 by pjoomla
Replied by pjoomla on topic Re:Coppermine Plugin
Did you create any albums as the user whose profile you are viewing? If you haven't, you'll see only the message you mentioned.

Please Log in or Create an account to join the conversation.

  • mwep
  • mwep
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 2
18 years 4 months ago #16905 by mwep
Replied by mwep on topic Re:Coppermine Plugin
Yes, all of the users I am using to test have albums created.

Still only shows "My Albums"

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum