coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: halyfax on October 31, 2003, 07:38:19 PM

Title: loading coppermine into postnuke
Post by: halyfax on October 31, 2003, 07:38:19 PM
What are the steps to load coppermine into postmuke as a module?
DO I create a new database for coppermine?

I cannot find any docs in the coppermine install on postnuke.

I want my users to be able to access coppermine within postnuke as a module.

Thanks

peter
Title: loading coppermine into postnuke
Post by: casNuy on October 31, 2003, 08:38:04 PM
You can install coppermine within the modules directory of Postnuke and also use the same database. Once that is working, you can start installing the pnCPG module as described in the readme.
Version 1.5 of pnCPG is on it's way.

Cas
Title: loading coppermine into postnuke
Post by: halyfax on October 31, 2003, 09:32:42 PM
So when it asks for sql database and sql username on the install.php I type in the same database and user as the postnuke database and all the files should be located within the modules directory?

Am I getting this correct??

p.
Title: loading coppermine into postnuke
Post by: casNuy on October 31, 2003, 09:44:24 PM
Yes, this correct. use the same database and database user/password.

Directory structure should look like :

Postnuke-home
                   includes
                   modules
                            coppermine  
                            pnCPG
                   themes

etc...

Cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 03:13:06 PM
I will try that although my structure is as follows

postnuke home
modules
coppermine
pncpg
themes

there is no modules directory within my includes directory?  Do I place it in modules under postnuke home, or create a new modules directory within includes?

thanks again
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 03:28:40 PM
Shit, my formatting got lost.
No just place it the modules directory from postnuke.
This is how i meant it :
Postnuke-home
==>includes
==>modules
======>coppermine
======>pnCPG
==>themes

Hope this clarifies it.


Cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 04:21:31 PM
loaded and initialized

Where do I do this step?
4.  Go to the AdminPanel and set the directory of Coppermine

What admin panel? (in postnuke admin) and what do you mean Set the directory?

When I add pnCPG to the block, it adds the link but it goes no where

the link look like modules.php?op=modload&name=PostWrap&file=index&page=http://yoursite.com/CPG/index_pn.php?parm=Admin%7C0%26check=46c3129c895b113ce47d12102f5689db

where do I adjust this??
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 04:25:34 PM
Go to the adminsection of Postnuke, there you will find an admin section for pnCPG. That is where you make the definitions.

The directory you have to set in there, is the path to your original coppemine installation, in your case 'modules/coppermine' most likely will do.

Cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 04:44:47 PM
Stil not working.  I got the adminpanel working now..

but still....

http://www.theagora.ca/php/modules.php?op=modload&name=pnCPG&file=index&url=modules/coppermine/index_pn.php?parm=Admin%7C1%26check=595012f296ad684ef1739eec6ca0700a

is it looking for the index_pn.php file?  in the pndocs readme.txt  it says to put this file into the include directory?

any advice?
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 04:59:35 PM
I did post a note with the download stating that the readme contains a mistake. The index_pn.php goes into the root of the coppermine directory.

Cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 05:05:17 PM
So now what?  I removed the files from includes dir and copied it into the coppermin root directory?  the modules/coppermine path still doesn't link me?

If I click the post wrap I get a blank page, and if I choose full screen I get illegal usage?

helppp.  am I totally lost did I do something wrong?

sorry for the confusion

p.
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 05:13:32 PM
First of all, go back to the admin section and uncheck the option to use Postwrap.
have another go.
If it staill fails, leave me your e-mail address and I will send you the latest version (still in Beta) which has new functionalities.
I am watching your site, so can see what happens.

Cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 05:15:45 PM
Thanks so much

I changed the pnuser.php file to if

($CPGwindow == 1 ) {
 $url="$CPGloc/index_pn.php?parm=$parm&check=$check";
 Header('Location: '.$url );
 } else {
 

to fix the illegal usage, and it works in full screen, although I would like the option of postwrap

Great work by the way!!
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 05:17:25 PM
So why would you want Postwrap ?

cas
Title: loading coppermine into postnuke
Post by: halyfax on November 01, 2003, 05:38:39 PM
I also use a forum, and I like that it opens in a frame so all the menu's links are always visable.  With the new window, the user has to use the history or back button to get back home.

p.
Title: loading coppermine into postnuke
Post by: casNuy on November 01, 2003, 05:45:06 PM
Same functionality is available without PostWrap but you can make the choice , that's wat it is there for.

have made available version 1.5, for now available on my website but should be available soon here as well.

cas
Title: loading coppermine into postnuke
Post by: skubwa on November 05, 2003, 08:33:54 AM
Hi, I'm completely new to PN. I have just installed PN today, and have a good feel for it. I'm not much of a programmer, which is why I chose PN.

I seem to be having the same problem installing this hack. Where exactly is the root directory for Coppermine?

Here is what I have right now in my directory.

html/modules/Coppermine/pnCPG/index_pn.php

But, when I click in Coppermine the admin panel (which seems to be installed, initialized and activated correctly) I get the following message...

Failed to load module Coppermine ( At function: "main" )

Any help appreciated. This looks like a great thing, so I hope it all works out.
Title: loading coppermine into postnuke
Post by: skubwa on November 05, 2003, 04:24:07 PM
Hi again,

I got it all loaded, but still have display errors. I'll put those questions in another forum.  :oops:
Title: loading coppermine into postnuke
Post by: casNuy on November 07, 2003, 04:05:39 PM
What type of display errors, can I see them somewhere ?

Cas
Title: having sort of the same problem only a little different
Post by: screamingreen on March 20, 2004, 02:02:42 AM
my problem is similar to this one except that i have the module, however when i click on it to open it, i get this error:

Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /hsphere/local/home/screamin/azsportbikes.org/modules/coppermine/include/init.inc.php on line 135

Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /hsphere/local/home/screamin/azsportbikes.org/modules/coppermine/include/init.inc.php on line 135

Fatal error: main(): Failed opening required 'include/config.inc.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/screamin/azsportbikes.org/modules/coppermine/include/init.inc.php on line 135

--
im not exactly sure what this means however i have an idea that it might be close to the same thing. also i do not have a pnCPG directory. do i need to create this?
--
nor do i have index_pn.php
im almost completely lost now, however i am willing to try this as the gallery itself is astoundingly amazing compared to the ones i have seen previous. my goal is to duplicate the gallery found here:

http://scorpio.lunarpages.com/~vertic2/modules.php?name=coppermine

i know that this site is running off a seperate server for the gallery apparently or something like that, however i would like the gallery to come up within the site like that so the menu can remain on the left for visitors.

the results can be found on my site [ www.azsportbikes.org/index.php ] by selecting the PHOTO GALLERY link from the menu.
HELP PLEASE!!!!!!!!!!!!!
Title: loading coppermine into postnuke
Post by: casNuy on March 20, 2004, 04:58:39 PM
Let's start at the beginning, what exactly have you downloaded and where did you install it ?
Copperine and pnCPG are 2 different products where Coppermine is the standalone gallery and pnCPG takes care of the integration.
First install Coppermine as if you did not had Postnuke and make sure is does exactly what you want. As soon as that works, install pnCPG to integrate the gallery with Postnuke.

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 22, 2004, 10:33:28 AM
well apparently i downloaded the latest versionof coppermine and pnCPG, and i installed it to my modules directory of postnuke, thinking thats where it would go. and as a standalone, yes it worked fine, however when trying to integrate it into postnuke, i got now results except the ones shown above. i have since done a total restructuring of my site, but ill give that idea a try, any other ideas for successful operation, please let me know, this drives me crazy sometimes.
Title: loading coppermine into postnuke
Post by: screamingreen on March 22, 2004, 11:30:08 AM
ok i got the gallery installed and working standalone, the pnCPG is working with the random images only, when you click on the random images you get 404, and when you click on the "Photo Gallery" link you get 404 as well. in the readme file for pnCPG it says:

4.  Go to the AdminPanel and set the directory of Coppermine
5.  Link the module into a menu block as : {pnCPG}
        or as :
        {pnCPG:main&task=users} to have a direkt link into a users gallery
6.  Make this link only available to Registered Users through Permissions (unless you allow guest access).
7.  Add a new block and set your preferences for that

i completed step 4, now step 5 has me a bit confused, i dont understand how to link a module to a block. or where to go to do that even. i think maybe once i get that figured out, ill be good to go possibly. ill keep you updated i guess. i have made the nessicary html code changes to the specified php pages and uploaded them as well.
Title: loading coppermine into postnuke
Post by: casNuy on March 22, 2004, 07:44:08 PM
If you get a 404, it looks like you did not copy the index_pn.php correctly.

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 22, 2004, 10:47:08 PM
no i got it copied in both places. the coppermine root and pnCPG:

[root]/azsportbikes.org/coppermine/index_pn.php <-- coppermine root
[root]/azsportbikes.org/html/modules/pnCPG/pndocs/index_pn.php <--- site module

is it possible that the /html/ dir has something to do with it maybe?
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 10:55:04 PM
What is the setting for Coppermine within the admin settings of pnCPG ?

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 10:57:10 PM
its set to [root] /azsportbikes.org/coppermine

is set that way because the servers root is actually [root] /azsportbikes.org
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:04:45 PM
so it is set to :
Quote/azsportbikes.org/coppermine

If not, change it as above and try again.

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:03:26 PM
yes thats what its set to
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:08:24 PM
yes thats what its set to
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:10:06 PM
If you click on the link in the menu , what is the address in the address bar ?
can you copy & paste that in a message ?
Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:11:32 PM
thats jsut the thing, i cant put it in the menu because there is no link to create, the only thing i can do is the random pics and the scrolling pics, i have no option for a block to link to the gallery
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:16:28 PM
Go to the admin section of Postnuke, select Blocks and next select Main Menu and add the link to the menu as  {pnCPG}
Once saved,you should have a link in the menu.

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:15:10 PM
yeah ive done that too, and to bno avail... i still get the 404 error. i even jsut now did it if you want to look
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:22:29 PM
i did that and to no avail, it still doesnt work connecting the thumbs or the a link to the pnCPG

heres the results:

http://www.azsportbikes.org/html/index.php?module=pnCPG&func=main
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:28:32 PM
You have to set the location of Coppermine to

Quote/coppermine

Also change the home-page link of Coppermine which is now set to :
http://azsportbikes.org/index.php?module=pnCPG&func=main

this is wrong also.

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:29:04 PM
i cant set the directory to /coppermine cuz of the server, it has to be /azsportbikes.org/coppermine
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:40:19 PM
I suppose you tried that and it did not work, well then it has to be http://www.azsportbikes.org/coppermine
or
http://azsportbikes.org/coppermine

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:39:01 PM
ok with the first one http://www.azsportbikes.org/coppermine that makes the thumbs work but when i change it to the second one the thumbs dont work... however with either the gallery doesnt link. the gallery does work if i link it directly from the page as seen in the yellow text with the cyan link. that does work no problems, its just i think its a server issue because of the root permissions i dont have
Title: loading coppermine into postnuke
Post by: screamingreen on March 23, 2004, 11:43:40 PM
ok when i use http://www.azsportbikes.org the thumbs work and all but when i change it to just http://azsportbikes.org the thumbs dont work, i think that the reason i dont get the link working right is because of the directory restrictions to /azsportbikes.org where as i cant do /coppermine off the root directory
Title: loading coppermine into postnuke
Post by: casNuy on March 23, 2004, 11:55:27 PM
I am lost with your settings, let's be stupid and just put it to /coppermine and see what happens.
Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 24, 2004, 12:01:33 AM
well... <laugh> it works and it doesnt, setting it to just [root] /coppermine keeps the thumbs scrolling with pictures not errors, HOWEVER.. <laugh> the link from the thumbs or from the menu still does not work. ill will tweak it a little more and see if i can come up with anything. also, do you think that the modifications to the html code as described in the readme would have anything to do with it?
Title: loading coppermine into postnuke
Post by: screamingreen on March 24, 2004, 12:04:24 AM
heres a thought, i dont need index_pn.php in the pnCPG dir do i?
Title: loading coppermine into postnuke
Post by: casNuy on March 24, 2004, 12:08:17 AM
You could try to start without those modifications but actually do not think they have anything to do with it.
Would suggest you sned me (by Private Message) an acoount with sufficient rights withing PostNuke so i can do some checvking (although that would be tomorrow, actually later today).

Cas
Title: loading coppermine into postnuke
Post by: screamingreen on March 24, 2004, 12:07:40 AM
sure i have yahoo and AIM as well just let me know what works
Title: loading coppermine into postnuke
Post by: screamingreen on March 24, 2004, 01:42:17 AM
Ok well upon calling the sys admin for my hosting company, hes so awesome, we kinda figuired it out, to which i have one additional question. the gallery and thumbs work fine now, the pnCPG was set to postwrap on and fullscreen. we turned em of and VIOLA! sucess. However, my question:

What is post wrap and if it is a module for wrapping postnuke to the gallery, where do i get it?

much appreciation on the help though senior.
Title: loading coppermine into postnuke
Post by: casNuy on March 24, 2004, 07:34:38 PM
Postwap is a module which allows you to incorporate HTML pages/other websites within Postnuke. Just search for it on mods.postnuke.com
You do not really need it for pncpg.

Good to hear it is working.

Cas