2 cpg's sharing 1 tableset 2 cpg's sharing 1 tableset
 

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

2 cpg's sharing 1 tableset

Started by yeroen, July 28, 2004, 07:08:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yeroen

Hi,

I recently installed a 1.31 standalone cpg-phpbb-bridge. I've got a standalone phpbb-phpnuke bridge also. Now I really want to have the cpg-blocks on the nuke-page, so I thought it might be possible to install a cpg 1.22(for nuke), and have that version share the cpg 1.31 standalone database. That way, I can get the 1.31 candy, + the cpgnuke-blocks from phpnuke.

Now, it's not working 100%  ??? There seems to be little differences in the database-tables, and it's also not very clear to me, how I can point the nuke-version, to the right album-dir. Standalone is pointing to the right dirs, but the nuke-one points like this: nukeroot/userpics/10002/thumb_twins.jpg

I know it's not basic procedure, and probaby it's out of reasonable supportrange, but I really appreciate it, when someone can shine a little more light on this.

tnx in advance,

greetz,

yeroen

site http://geestbeest.ath.cx
standalone http://geestbeest.ath.cx/modules/coppermine/index.php
nukeversion http://geestbeest.ath.cx/modules.php?name=copperminer

Joachim Müller

Your posting is very confusing: there's no such thing as a
Quotestandalone phpbb-phpnuke bridge
. You can either have these options:
- you have a non-nuked website, standalone coppermine and standalone phpbb
- you have a nuked website, Coppermine for CMS and phpbb as nuke module

"Standalone" in the context of Coppermine means "no phpNuke or postNuke install on the server".

I'm not sure what to make out of your posting, or even where to move it (bbs integration? pnCPG support?). If you actuially run a nuked website, go to http://www.nukephotogallery.com for support.

GauGau


yeroen

#2
hi gaugau,

;D lol, yea it's a standalone phpbb-phpnuke bridge. hahaha  :D

Yea, it confuses myself too. I mean with the standalone thing, that I run a standalone phpbb-version, which shares the same userdatabase and sessions with phpnuke. Therefor, I decided to use the coppermine phpbb-bridge, to share 1.31 users/sessions with phpbb(and so phpnuke). Now, that works fine.

But I don't think there is a possibility that I can use the nuke-blocks on a standalone cpg-version. So, I installed cpg 1.2(nuked one) next to cpg 1.31. This one has to take care of the blocks for nuke, and at the same time share the database of cpg 1.31.

Now, I compared the 2 tablesets, and I see that 4 new tables are there, for 1.31(banned, ecards, filetypes, temp-data). So, I just kept the 1.31 database, and made 1.22 share thát one.

Anyway, I need 1.22 to have a different album-dir(outside the std. coppermine dir). Also, 1.22 doesn't see the right albumnames. So, any help is appreciated on this matter. Which file handles the album-dir? I'll try to find out more in the meanwhile. I'm getting a little weirdo after 2 weeks nonstop code-reading  ??? ::) :-X ;D :D :) ;) :-X :-[ :P 8)


Joachim Müller

never actually looked into this, I've never heard of someone try what you're doing, so I simply can't tell.

GauGau

yeroen

Hm,

2 bad  :-\\ Well, if I find out something, I'll let you know. tnx for your reply anyway

greetz,

yeroen

yeroen

I think it would be cool if I could just rip alot out of the nuked one, and make links to the standalone. I like the usergalleries with their own avatars  :D

yeroen

Ok,

at least made 1 work. displayimagepopup.php handles the fullsize-image location. Thumbs have to be somewhere in displayimage.php    ::)

yeroen

I underestimated this thing abit  :-\\

It's harder then I thought, but I will prefail!  ;D
Anyway, I will not rest until this works, the way I want it to work. This displayimages.php is so hard to read  ::)
thumbs are still set to root/userpics/*, instead of root/modules/coppermine/userpics/* . It must be possible to add these two dirs, allthough I still don't know how. I guess the whole range of variables makes it so hard, to find the actual line, I guess :(

ok, back to work...

yeroen

Ok, checked the templates, and now the include/functions.inc.php
What's this breadcrumb-thing? My guts tell me this might be what I'm looking for. displayimages.php is not the file, to change the albumpath, I feel...
Anyway, IM tired  :o

To be continued

yeroen

YEEEEEEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAA!!!!!!!!!!!  :D :D ;D ;D ;D

Finally...return path2url("modules/coppermine/albums/" . $pic_row['filepath'] . $pic_prefix[$mode] . $pic_row['filename']); (in include/functions.inc.php)

For some reason, the standard url for the nuke-port was set to root(not albums), so this could be pasted in between to point to the standalone albumdir. Ow man...I'm happy  ;D
Now sleep... :D

yeroen

hm,

Album is cool now. Block still on root\userpics  :P

yeroen

Ok, i'm stuck on this one  :o

This is part of a block, and the output is: http://geestbeest.ath.cx/modules/coppermine/albums/userpics/10002/thumb_coollink.jpg"

$content .= '<td align="center" valign="baseline"><a href=modules/coppermine/albums/"' . $CPG_M_URL . '&file=displayimage&pos=-' . $row["pid"] . '"><img src=modules/coppermine/albums/' . $row["filepath"] . $CONFIG["thumb_pfx"] . $row["filename"] . '" border="0" alt="' . $thumb_title . '" title="' . $thumb_title . '"><br>' . $thumb_title . '</a></td>';

I can't find the ", which makes the link complete  :\'( :\'( :\'(

omniscientdeveloper

I understand that you're trying get these two to work together, but it seems that you're modifying the nuked version so it can work with the standalone version. If that's the case, you need to ask for support on the nuke board, since they have more experience with their code. If it was the other way around then posting here would be a little justified.


-omni

yeroen

Hi,

tnx for your reply. The sharing 2 cpg's was more of a general topic, since the mainproblem was the redirection of the album-dir. It became nuke-related, with the blocks.yea, sorry...it became offtopic with that. I've got it working now though  :D
Just in case, some1 else wants to do this:
$content .= '<td align="center" valign="baseline"><a href=modules/coppermine/displayimage.php?pos=-' . $row["pid"] . '><img src=modules/coppermine/albums/' . $row["filepath"] . $CONFIG["thumb_pfx"] . $row["filename"] . ' ' . $thumb_title . '" title="' . $thumb_title . '"><br>' . $thumb_title . '</a></td>'; (end of the block)

I never edited such difficult-to-understand code, as coppermine has. I love it  :-*, now it works again though. Maybe leave this post here, just in case other people are searching for merging 2 cpg's in 1 tableset. The blockthing is too small, to start a topic with...

greetz,

yeroen