coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: gaby on January 22, 2005, 04:18:01 AM

Title: Postnuke users not created from coppermine
Post by: gaby on January 22, 2005, 04:18:01 AM
I love the idea of this module..but I need help! Postnuke users arent being created in coppermine. I use Postnuke 7.50 and coppermine 3.2. Please help! THanks :)
Title: Re: Postnuke users not created from coppermine
Post by: Joachim Müller on January 22, 2005, 08:49:37 AM
Split this posting from unrelated (announcement) thread. Please don't try to hijack other threads, always reply to threads that deal with the actual issue you're facing. If there is none, create a new thread.

Joachim
Title: Re: Postnuke users not created from coppermine
Post by: casNuy on January 22, 2005, 10:37:13 AM
Coppermine itself works ok ?
What are the settings of pnCPG ?

Cas
Title: Re: Postnuke users not created from coppermine
Post by: gaby on January 22, 2005, 05:37:48 PM
Sorry GauGau... didn't mean to hijack.. I'll be much careful next time. ;)
casNuy, I sent you a private message with all info needed, I couldnt post it here. Thanks! :-)
Title: Re: Postnuke users not created from coppermine
Post by: gaby on January 22, 2005, 05:51:08 PM
I just saw pncpg 2.5 has been released.. should I try re install everything with this new version first, to see if maybe that solves my problem? Thanks! :D
Title: Re: Postnuke users not created from coppermine
Post by: casNuy on January 22, 2005, 06:11:38 PM
I have adjusted some of your settings but would certainly advice to upgrade to 2.5

Cas
Title: Re: Postnuke users not created from coppermine
Post by: gaby on January 22, 2005, 06:56:51 PM
it still isnt working.. umm.. I'm gonna update and see if that makes a difference.
Title: Re: Postnuke users not created from coppermine
Post by: gaby on January 22, 2005, 07:59:22 PM
OMG!! It WORKS!! YEY! lol :-) THanks! I just reinstalled everything... seems that the Newest pnCPG 2.5 did the trick!**HUGS** (Yeah I'm that happy!) I always wanted to do this, thanks a million!
Title: Re: Postnuke users not created from coppermine
Post by: necro on January 23, 2005, 10:40:30 AM
Cas,

I'm hoping you can help.  I just installed pncpg2.5 and it did seem to transfer the postnuke users successfully.  But the passwords are all different between the 2 databases.  Plus, creating new users in postnuke does not seem to automatically create them in cpg.  Any suggestions?

Instead of trying to connect the 2 databases, is it possible to have code in cpg determine the username logged into postnuke?  That's really all my code needs to know.

Any help would be appreciated.
Necro
Title: Re: Postnuke users not created from coppermine
Post by: casNuy on January 23, 2005, 01:02:07 PM
Not much help possible here. All pnCPG tries to achieve is single signon between Postnuke & Coppermine.
Normally a user is created in the Coppermine Database  whenever someone accesses Coppermine through Postnuke. As an add-on, I have created an option to sync PN users with Coppermine users.

Full integration was and is not my intention.

Cas
Title: Re: Postnuke users not created from coppermine
Post by: necro on January 23, 2005, 06:44:57 PM
Alright, so you're saying if pnCPG is working like it should, everytime someone accesses coppermine thru postnuke, it will take care of updating the users.  Any hints as to why mine's not doing that? The sync feature seems to work fine now. The users are transfered and coppermine then recognizes the user thru postnuke.  But it's still not creating the coppermine user when registering a new user in postnuke.  Any hints?
Thanks.
-Necro
Title: Re: Postnuke users not created from coppermine
Post by: Yukino on January 24, 2005, 03:17:40 AM
alright. here's the deal...before the new version was released i was having trouble getting my postnuke users to my coppermine users...i waited for the upgrade and just finished intalling that. after installation of the new version of pncpg i go into the pncpg admin so that i can try to get my users to view the galleries with this version but when i click on the link that says Update Coppermine Users From Postnuke and then click the Update Configuration link it causes this error: Fatal error: Call to undefined function: db_query() in /usr/local/httpd/htdocs/kunden/web72/html/modules/pnCPG/pnadmin.php on line 452


any ideas?


i really like the idea of this script and want to get it to work.
Title: Re: Postnuke users not created from coppermine
Post by: Joachim Müller on January 24, 2005, 07:25:28 AM
are you per chance trying to run the devel version of coppermine?

Joachim
Title: Re: Postnuke users not created from coppermine
Post by: casNuy on January 24, 2005, 07:57:18 PM
Change db_query into mysql_query and it will work. Still woiuld like to know which version of Coppermine you are running.

Cas
Title: Re: Postnuke users not created from coppermine
Post by: Yukino on January 24, 2005, 11:50:21 PM
the devil version....  o.0;;

i'm running coppermine 1.3.2
Title: Re: Postnuke users not created from coppermine
Post by: gateway on March 07, 2005, 07:25:42 PM
I just ran into this issue as well.. had to change the text on line 452 to:

mysql_query("INSERT INTO $_cpg_album(title, description, visibility, uploads, comments, votes, pos, category, pic_count, thumb, last_addition, stat_uptodate, keyword) VALUES ('$f_username', '', '0', 'NO', 'YES', 'YES', '1', '$temp_user_cat', '0', '0', '0', 'NO', '$f_username')");


guess it didnt like the db_ one.. ? missing function? wrong verison of php? im running pnCPG 2.5 and coppermine 1.3.2 from the download area
Title: Re: Postnuke users not created from coppermine
Post by: casNuy on March 09, 2005, 10:54:06 PM
I am already testing with 1.4, possibly this is causing some turbulence.
cas