PDA

View Full Version : Coppermine 1.4.2 intgration to vB3.x.x


Hellcat
11-30-2005, 10:00 PM
I hope I put this into the right section.
If not forgive me :dead:
From the archives Readme:
Coppermine 1.4.2
Working vBulletin 3.0.x *AND* 3.5.x bridge script

================================================== =

Hi everyone!

Since the bridgescript that comes with Coppermine 1.4.2 for vBulletin doesn't work at all I started digging in the script and corrected it to finally work.
While I was at it I also added support for the vBulletin 3.5.x branch :)

Installation:

Easy!
Just upload the "vbulletin30.inc.php" from this archive into your Coppermine's bridge folder while OVERWRITING the existing one.

You can then launch the bridgemanager (http:/www.yourdomain.tld/gallery/bridgemgr.php) and set everthing up.
That should have done it.

If you followed all the instructions from the manual and the bridgemanager you should now have a fine working Coppermine with your vBulletin.


I tested this myself on my own forums with the following setups:

Coppermine 1.4.2 -> vBulletin 3.0.3
Coppermine 1.4.2 -> vBulletin 3.5.1


See it working live in action at http://forum.skill-club.com/gallery/


Have fun!

-HELLCAT
hellcat@hellcat.net
http://forum.skill-club.com/

Corriewf
12-01-2005, 08:50 AM
This should help some people out! Thanks.

PsiNyde
12-01-2005, 02:13 PM
This should help some people out! Thanks.

yes it should. thanks!

*edit*
worked like a charm bro...thanks!

*clicks install*

Snake
12-01-2005, 03:25 PM
Thanks!

daklay
12-01-2005, 06:31 PM
THANK YOU!! Finally, someone looked at my requests thread. YAY!

Omranic
12-01-2005, 10:55 PM
installed & works very good for me

thx alot

futuregizmo
12-02-2005, 02:32 AM
will this work for 3.5.0 or is this exclusive to 3.5.1?

SmartGnome
12-02-2005, 08:24 AM
Thanks a lot....... boy oh boy I have spend so much time to make the integration in the past and that didn't work.

Now it's running like a charm

Small Question:

I cann't find handling usergroups in the integration, is it in the manual or are my eyes still closed ? :ermm:

PsiNyde
12-02-2005, 10:30 AM
I cann't find handling usergroups in the integration, is it in the manual or are my eyes still closed?

when you do the integration, the only thing it asks for are user ranks and privileges associated with their post count. however, that would IMPLY that it's taking userranks [and their permissions as ranks and/or groups] into account when granting access to the gallery. CPG by default only has ADMIN, USER, BANNED as usergroups anyways, so it would seem that during integration, that would be all that is carried over from vB...groups 1,4 & 8

i'm wondering if you unbridge then create usergroups in CPG to match those in vB [mod, supermod, etc], then reran the bridge wizzard, would the bridge support those usergroups in CPG? something to try...

SmartGnome
12-02-2005, 11:24 AM
........

i'm wondering if you unbridge then create usergroups in CPG to match those in vB [mod, supermod, etc], then reran the bridge wizzard, would the bridge support those usergroups in CPG? something to try...

I did set the usergroeps to no "ranks and privileges associated with their post count" and now I see the usergroups you mentioned and all is working.

Next I did unbridge the cmine and greated usergroups as a copy from my board. Cmine accepted that, but after re-bridge my 'manual setted usergroups' were gone. And the old standard was there again :rolleyes:

Anyway thanks for the prompt help

Ad

Annapurna
12-02-2005, 12:08 PM
See it working live in action at See it working live in action at http://forum.skill-club.com/gallery/ (http://forum.skill-club.com/gallery/) Hmm, it's not in the design of your forum! Does it mean, it is just not possible or you haven't done it?

Andreas

Hellcat
12-02-2005, 12:51 PM
will this work for 3.5.0 or is this exclusive to 3.5.1?
Should work with 3.5.0 as well since all added to the bridge was the "understanding" of the new 3.5.x config file.

Next I did unbridge the cmine and greated usergroups as a copy from my board. Cmine accepted that, but after re-bridge my 'manual setted usergroups' were gone. And the old standard was there again :rolleyes:
Yes, that's right.
While in bridge mode CPG uses only the groups it gets from vB - all stand-alone settings are lost while in bridging. (Also stated that way in the manual).

After enabling bridgemode, just go to "Usergroups" while in CPG Admin-Mode.
It will then sync with your vB groups and you can edit all permissions for your corresponding vB groups, i.e. assign differnet permissions for each group.
As in "Registered" can't have private ablums but "Premium Member" can and so on....
No need to make a copy into CPG Stand-Alone. :)

Hmm, it's not in the design of your forum! Does it mean, it is just not possible or you haven't done it?
The bridge so far only integrates using the forum's login and the usergroup/user handling.

Integrating it into the design of vB is a whole other story.
Should be possible, yes.... Just not yet done, but I'll try ;)

Sixpak
12-02-2005, 08:33 PM
Great job. Had a fast and painless install. Works great!

Annapurna
12-02-2005, 08:41 PM
Should be possible, yes.... Just not yet done, but I'll try ;)Would be great! Good job till now https://vborg.vbsupport.ru/external/2006/05/32.gif !
Andreas

Xzyte
12-03-2005, 01:56 PM
Nice one, thank you Hellcat.

It installs fine but I have one problem which I'm not able to solve.
After running the bridgemgr.php the integration works and the users are automatically logged into Coppermine and can upload pics and all but when clicking on "User galleries" they always get the following error: "Critical error: There was an error while processing a database query"
If I setup other galleries it works fine, the error is only with "User galleries".

Did somebody have the same error and maybe have a fix for it?

Hellcat
12-03-2005, 05:28 PM
Did you do a full stand alone install of CPG before bridging?
You need to have CPG completely running before enabling bridgemode.

If you did do so, I don't have an idea to this at the moment....
/me thinks

Xzyte
12-04-2005, 04:07 PM
Thanks for your reply Hellcat.

I did a full stand alone install and tested all the functions including the "User galleries" link. As soon as I enable the bridging the "User galleries" link comes up with the error. When I disable bridging, the link is fine again. Maybe it conflicts with some of the other plugins installed.

CommunityZ
12-04-2005, 11:33 PM
ERROR
You seem to be trying to install the standalone Coppermine into your Nuke portal.
This version can only be used as standalone!
Some server setups might display this warning even though you don't have a nuke portal installed - if this is the case for you, continue with the install. If you are using a nuke portal, you might want to take a look into CpgNuke or use one of the $(unsupported) coppermine ports - do not continue

Sorry but i don't have idea this be done...
Is it need to install a special edition? Where to download?

Hellcat
12-05-2005, 07:59 AM
@Xzyte:
Very strange.
Sorry, no idea about that at the moment, it's working fine here and seems OK for all the others, so there has to be a "special" problem....


Sorry but i don't have idea this be done...
Is it need to install a special edition? Where to download?
Just the normal version.
Try ignoring that message (like it suggests) if you have nothing to do with PHPNuke and only want to integrate it into vB.
The script seems to "think" there's a PHPNuke when there isn't....

CommunityZ
12-05-2005, 09:12 AM
Install in a new database or in the same database vbulletin is installed?

d8tabyte
12-08-2005, 10:08 PM
hmm I have been trying to do this and it seems I dont have the bridgemgr.php file... lol I don't know, it was a fantastico install, but it should still have the file. I then downloaded the file off sourceforge and when I ran it, I got an undefined error.

I am truly puzzled as to why I don't have this file and why the bridge manager isn't in the admin of the coppermine

any ideas?

Fatal error: Call to undefined function: cpg_get_bridge_db_values() in /home/digitale/public_html/gallery/bridgemgr.php on line 628

Hellcat
12-08-2005, 10:34 PM
What version of CPG do you have?
This bridge is for 1.4.2 and will not work with lower versions.

Try redownloading the complete 1.4.2 installation archive from sourceforge and re-install CPG, then try again.

d8tabyte
12-08-2005, 11:05 PM
thats what I am doing right now - I just re downloaded the whole thing.

d8tabyte
12-08-2005, 11:54 PM
Nice one, thank you Hellcat.

It installs fine but I have one problem which I'm not able to solve.
After running the bridgemgr.php the integration works and the users are automatically logged into Coppermine and can upload pics and all but when clicking on "User galleries" they always get the following error: "Critical error: There was an error while processing a database query"
If I setup other galleries it works fine, the error is only with "User galleries".

Did somebody have the same error and maybe have a fix for it?


I am having this same problem.... everything else is functional

ReadOrDie
12-09-2005, 01:32 AM
What does this hack do? For those who have not seen the previous versions hack makers need to provide description.

Hellcat
12-09-2005, 08:18 PM
What does this hack do? For those who have not seen the previous versions hack makers need to provide description.
If you have "Coppermine Gallery" installed on your site (or going to install) and you want it to use the vBulletin login info and your forum's users/groups you can "bridge" (a.k.a. integrate) CPG (=Coppermine Gallery) into vB.

But the script that comes with CPG does not work.
This is a corrected version.


However I have no clue about that user gallery thing.
Everthing working fine on my board, so can't figure that one out.... :ermm:

MoMan
12-10-2005, 12:04 AM
If you have "Coppermine Gallery" installed on your site (or going to install) and you want it to use the vBulletin login info and your forum's users/groups you can "bridge" (a.k.a. integrate) CPG (=Coppermine Gallery) into vB.

But the script that comes with CPG does not work.
This is a corrected version.


However I have no clue about that user gallery thing.
Everthing working fine on my board, so can't figure that one out.... :ermm:

Ugh, for me, everything works fine until it asks for the relative forum url. I entered ../Forum/ as the relative and http://www.themotec.com/Forum as the forum URL, yet I get an error saying that the config cannot be found, and it actually shows the correct path...why is this :(

Hellcat
12-10-2005, 10:56 PM
What's the location of your CPG install, what path/URL?
I got confused by that part as well when I first installed it....

For an example, my settings are:
Forum URL = http://forum.skill-club.com
(CPG is running at the URL "http://forum.skill-club.com/gallery/")
Relative path = ../

Burgy
12-11-2005, 04:53 PM
vB Version 3.0.7
coppermine 1.42
Forum www.rlpforen.de
given to the bridge as http://www.rlpforen.de
given to the bridge as ../ for relative path
Coppermine www.rlpforen.de/media/

user test pass test2


First of all I am very happy and greatefull that you made the bridge working at all.

First I had the problem that there is only an echo 3.0.x and nothing else happens than i commented the echo away so there is no output before the actual script starts. now loggin in and out does work suffitiantely.

There remains a small but nasty problem that when loggin in the refferer is transmitted but not executed after sucessfull login. Therefore the user is not redirected back to the coppermine but remains on the forum index page.

Whereas when logging out from the gallery the refferer works fine.

where do I have to look for the problem?

With best regards from Berlin
yours Burgy

Burgy
12-11-2005, 06:22 PM
Ok, I found out, that given all necessary login information to the forum the returning to refferer does work. have a look if you like.

puhhhhhhhh that was concentration to customise coppermine according to tamplate issues I have never done before.

have a nice day the integration does work if the login form is posted from coppermine

Sincerely Yours
Burgy

Mukashi
12-15-2005, 06:58 AM
I'm getting the same error with the user galleries as Xzyte did.

I'm wondering if perhaps we're actually meant to edit the vbulletin30.inc.php from this hack with our values where it's got "http://www.yousite.com/vb3", etc, or if it was just meant to be uploaded as is like the instructions seemed to say.

Hellcat
12-15-2005, 07:04 AM
Hmm, it's just meant to be uploaded. No edits to the PHP itself are necessary since every config detail is either read from vB's config.php or entered in the bridge manager....

I'll dig some deeper into this, maybe I find something....

[EDIT]
What is the version of your vBulletin?

Saxon
12-15-2005, 09:24 AM
Hi, I've installed Coppermine and got the bridge working. Excellent - thank you! However, I have several user groups and chose the option to use them when setting up the bridge. So I'm using the usergroups from my Vb. Unfortunately, whilst it is using the groups, the names of the groups (seen when you want to restrict certain albums to certain user groups) is only listing the first letter/character of each group.

So the Registered users group just become R. Admin- A, Moderators- M etc etc. I can just about identify which is which, but users when they want to restrict access to their own private albums have no idea!

I tried renaming then via the Admin > Groups but they just went back to a single character again. It's not a huge problem but any ideas?

Xzyte
12-15-2005, 05:20 PM
I'll dig some deeper into this, maybe I find something....

[EDIT]
What is the version of your vBulletin?

Thanks Hellcat.
My initial install was on 3.5.1 and now I tried it again on 3.5.2 but still get the same error.

Hellcat
12-15-2005, 10:56 PM
OK, I managed to get the "only first char of groupname" on my local test install.
Currently trying to figure out why this happens - at least a start ;)

For that user-gallery error:
can someone with that error put CPG in debugmode (found under "Maintanance Settings" in the main Config) and send me the complete debug-output via PM (atfer eventually "*"ing out anything noone is supposed to see ;))

If I get to know WHAT query blows I might at least know where to start looking :ninja:

azarl
12-16-2005, 04:14 PM
The only ways I can upload any pictures is in either Admin/Admin mode, or set the album permissions to allow guest uploads on an individual album (Admin/User mode doesn't upload either).

I get a message:

Sorry there is no album where you are allowed to upload files

Even setting guest group permissions doesn't work.

Any ideas?

Thanks

Hellcat
12-16-2005, 05:48 PM
Judging by that screenshot I'd say your bridgemode is "disabled".

azarl
12-17-2005, 11:50 AM
If I run bridge manager, it says it's enabled, and other features of coppermine are 'unavailable in bridge mode'

Xzyte
12-18-2005, 02:58 AM
For that user-gallery error:
can someone with that error put CPG in debugmode (found under "Maintanance Settings" in the main Config) and send me the complete debug-output via PM (atfer eventually "*"ing out anything noone is supposed to see ;))

If I get to know WHAT query blows I might at least know where to start looking :ninja:

Here is a screenshot of the error I get.
I will send you the "Debug Info" per PM.

Thanks again for your help. :)

Best Regards,
Xzyte

LoOnEyToOnZ
12-18-2005, 10:42 AM
How do i integrate coppermine into vbulletin design/templates? Using vb headers/footers

[email protected] vbmenu_register("postmenu_853147", true);
12-20-2005, 02:25 PM
on my coppermine that i have integrated my users including myself cannot upload anything? the error is about permissions. where do i edit the user permissions for the coppermine once it is bridges with vb???

I believe i have looked everywhere but the right place! Cheers :rolleyes:

Hellcat
12-21-2005, 01:17 AM
When in Admin-Mode go to "Groups".
That will sync all your vB's groups with Coppermine.

Oh, and I think I found the bug in CPG that's causing only the first letter to be imported.
I'll do some more tests and post the fix - still digging for that usergallery thing tho....

[email protected] vbmenu_register("postmenu_854093", true);
12-21-2005, 07:46 PM
hmm, what do you mean? user groups? this doesnt allow you to edit user permissions for the gallery???

[email protected] vbmenu_register("postmenu_854101", true);
12-21-2005, 07:48 PM
sorry im being dumb found it :) cheers

[email protected] vbmenu_register("postmenu_854102", true);
12-21-2005, 07:49 PM
whats a suitable quota for users?

Snoop-It
01-03-2006, 12:41 AM
im running 1.4.3 CPG and vb 3.5.2 - it bridges fine (i didnt use your hack) but i cant get the login and logout to work properly.

if im logged in on the forum already and then visit the gallery im looged in already on that... if i attempt to log in via the CPG it takes me to forum index... how comes? and when i log out from the CPG it gives me some error and then says click here to log out...

any ideas how to sort the login part??

Zorck
01-03-2006, 10:14 PM
Hellou, I get this error when I try to enable the bridge mode
-----------
Fatal error: Cannot redeclare class core_udb in /home/sergej/public_html/foro/galeria/bridge/udb_base.inc.php on line 0
-----------

any idea?
thanks in advance.

Zorck
01-03-2006, 11:24 PM
I fix the problem, uploading all again.

Thanks again

d8tabyte
01-03-2006, 11:33 PM
*still waiting on the gallery error - hoping the debug mode helped you find it lol*

gasxtreme
01-03-2006, 11:56 PM
I think I found a fix for this error:

Fatal error: Cannot redeclare class core_udb in /home/sergej/public_html/foro/galeria/bridge/udb_base.inc.php on line 0

Open vbulletin30.inc.php

Find:
require 'bridge/udb_base.inc.php';

Replace With:
require_once 'bridge/udb_base.inc.php';

Worked for me ;)
-steve

Masiello
01-14-2006, 08:40 AM
hello, anyone know if that bridge works fine with coppermine 1.4.3 and vb 3.5.3?

and this bridge touch or alter vb or coppermine DB tables?

gothicuser
01-14-2006, 10:22 AM
Bridged, vB 3.5.3 perfectly, many thanks

timetunnel
01-14-2006, 08:03 PM
Hello.

With the bridge,

1) will CPG be able to use the 'hide' E-mail feature to prevent harvesting?

2) Are the usergroups controlled in vB or in CPG or both locations?

Thanks in advance.

Masiello
01-14-2006, 08:38 PM
I think I found a fix for this error:



Open vbulletin30.inc.php

Find:


Replace With:


Worked for me ;)
-steve

I have using original file vbulletin30.inc.php (is up to date) that is in the coppermine 1.4.3 package and works great on vb 3.5.3

Masiello
01-14-2006, 08:40 PM
im running 1.4.3 CPG and vb 3.5.2 - it bridges fine (i didnt use your hack) but i cant get the login and logout to work properly.

if im logged in on the forum already and then visit the gallery im looged in already on that... if i attempt to log in via the CPG it takes me to forum index... how comes? and when i log out from the CPG it gives me some error and then says click here to log out...

any ideas how to sort the login part??

I have the same issue

Hellcat
01-14-2006, 11:57 PM
That logout thing (vB says "click here to logout") seems to be common,I have that well, it's because some cookie hash is not given on the logout URL or such.
IMHO that's not sooo bad.

However general problems with loggin in/out seems to be some serious in CPG itself and/or the bridge system.

I think this also the cause of the usergallery problem, 'cause from the debug info I got it seemed like bridge was active but actually not really used for logging in users.
Unfortunately that's the only clue I got so far.
I tried several different installs/situations to recreate that problem - no luck :(

One thing I got during my experients was that after DISABELING the bridge I haven't been able to login to CPG at all.

Seems to something more deep down :-/


Hello.

With the bridge,

1) will CPG be able to use the 'hide' E-mail feature to prevent harvesting?

2) Are the usergroups controlled in vB or in CPG or both locations?

Thanks in advance.
1) not sure on this. have to look myself ;)
2) They are controlled sort of in both.
Once you added/removed a usergroup in vB go to the groups manager in CPG.
This will sync the usergroups over and you can then set the CPG permissions for each usergroup-

Shanoon
01-16-2006, 06:46 PM
Installed perfectly on Coppermine 1.4.3 and vBulletin 3.5.3! There is that minor login issue... but it really doesn't affect performance

Thanks Hellcat! :]

MarkB
01-29-2006, 09:09 AM
Works fine after the fix gasxtreme posted (thanks!). Is it possible to tie the theme in with the forums without creating a new CPG theme? (I am guessing no;))

tendo
02-03-2006, 02:54 PM
Very nice, if anyone figures out that logout problem bigups to them hehe :)

tendo
02-03-2006, 03:54 PM
EXCELLENT HACK THANKS!

let me make sure i got this straight. you use the admin login that you made to setup coppermine, and then go to groups. right? i dont see my custom usergroups from vb.... how do I refresh CPG to see my VB groups?? I tried going into VB ADMIN control panel and I see nothing in the user group permissions.

VERY CONFUSING

The Chief
02-09-2006, 06:54 PM
this works fine, thank you :)

no problems yet.. :D

does anybody know how we can customize the header and footer to match my current forums, they say that you can link to a header, but how could we do that with templates?

* The Chief clicks install

The Chief
02-10-2006, 12:42 AM
this works fine, thank you :)

no problems yet.. :D

does anybody know how we can customize the header and footer to match my current forums, they say that you can link to a header, but how could we do that with templates?

* The Chief clicks install

nevermind, found out how ;)

one last question, can we put, like lets say the latest gallery entries on forumhome hellcat?

Hellcat
02-10-2006, 12:48 AM
one last question, can we put, like lets say the latest gallery entries on forumhome hellcat?
That would be an additional plugin.... But I think that's an easy one....
I'll look into this when I get a free spot of time :)

The Chief
02-10-2006, 12:59 AM
That would be an additional plugin.... But I think that's an easy one....
I'll look into this when I get a free spot of time :)

That would be great Hellcat, I would appreciate it so much :)

imranbaig
02-10-2006, 02:22 PM
what about the skin? will it be since coppermine it self has template system?
wont it collide with it?

Hellcat
02-10-2006, 06:19 PM
Integrating the style/skin is a pretty challanging task....
It's requires massive hacking of the original CPG files, what makes upgrading a mess....

The Chief
02-10-2006, 06:29 PM
what about the skin? will it be since coppermine it self has template system?
wont it collide with it?

Well I have customized a bit the skin to look like my forum, now we just need a random or latest forumhome plugin :)

http://www.myetalk.com/gallery

DjTaz
02-12-2006, 01:35 PM
This might interest anyone who has Coppermine integreated in with their VBB.

https://vborg.vbsupport.ru/showthread.php?p=898178#post898178

all coppermine photos output a VBCode and a HTML code - a member on my site asked me about it so i did it and decided some people here may like it as well.

imranbaig
02-12-2006, 03:39 PM
cool, I will try this integration when i have some time to spare,..
Thanks..
* clicks Install *

carmineroma
02-13-2006, 06:32 PM
anyone have tested it whit the version of coppermin 3.0.5.2?
I tried but receive errors

The Chief
02-13-2006, 10:19 PM
hows the forumhome latest images coming along Hellcat? :)

Hellcat
02-14-2006, 04:33 AM
hows the forumhome latest images coming along Hellcat? :)
Currently #1 on my vB-ToDo list and taken into dev. once time allows :)

The Chief
02-14-2006, 02:06 PM
Currently #1 on my vB-ToDo list and taken into dev. once time allows :)

thank you :D

jaybquick
02-16-2006, 09:28 PM
Hellou, I get this error when I try to enable the bridge mode
-----------
Fatal error: Cannot redeclare class core_udb in /home/sergej/public_html/foro/galeria/bridge/udb_base.inc.php on line 0
-----------

any idea?
thanks in advance.

How did you fix it? you said you did.

nicedreams
02-17-2006, 02:09 PM
nevermind, found out how ;)

one last question, can we put, like lets say the latest gallery entries on forumhome hellcat?


You can use this using cpmfetch to do this very easily.

Jim

The Chief
02-17-2006, 02:51 PM
You can use this using cpmfetch to do this very easily.

Jim

unfortunaetly, I am not that talented in PHP if you get what I mean... :(

nicedreams
02-17-2006, 03:02 PM
unfortunaetly, I am not that talented in PHP if you get what I mean... :(

It's an add-on basically for coppermine. You can call pics from your galleries on pages outside of coppermine with it.

http://cpmfetch.fistfullofcode.com/projects/copperminefetch/index.php

Jim

The Chief
02-17-2006, 03:13 PM
It's an add-on basically for coppermine. You can call pics from your galleries on pages outside of coppermine with it.

http://cpmfetch.fistfullofcode.com/projects/copperminefetch/index.php

Jim

I will try that, thanks for the help ;)

The Chief
02-17-2006, 03:56 PM
It's an add-on basically for coppermine. You can call pics from your galleries on pages outside of coppermine with it.

http://cpmfetch.fistfullofcode.com/projects/copperminefetch/index.php

Jim

ahh, too hard, have no idea what to do and I get an error when doing the test..

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/etalk/public_html/cpmfetch/cpmfetch_dao.php on line 710

jeytee2
02-17-2006, 05:40 PM
Problem:
I use VB 3.5.3 and Coppermine 1.4.3 with this bridge.
But after the konfiguration when coppermine starts comes follow message:
Fatal error: Cannot redeclare class core_udb in /home/httpd/vhosts/mini2-rheinland.de/httpdocs/cpg143/bridge/udb_base.inc.php on line 22

Help Please

nicedreams
02-17-2006, 05:55 PM
Problem:
I use VB 3.5.3 and Coppermine 1.4.3 with this bridge.
But after the konfiguration when coppermine starts comes follow message:
Fatal error: Cannot redeclare class core_udb in /home/httpd/vhosts/mini2-rheinland.de/httpdocs/cpg143/bridge/udb_base.inc.php on line 22


Help Please

Post #51 in this thread.

Jim

nicedreams
02-17-2006, 06:07 PM
ahh, too hard, have no idea what to do and I get an error when doing the test..

There is a line in cpmfetch_dao.php that you need to change depending on the version of cpm. Between line 55-65, there is a var $sqlPictureAlbumSelect line,reverse which one is commented out. That will fix that error message.

Also check out this thread on coppermine: http://coppermine-gallery.net/forum/index.php?topic=19564.0

Jim

Tefra
02-17-2006, 11:28 PM
i found a small bug.

Steps:

1. Go in your forums log in (tick remember me)
2. Enter Gallery (it shows you as loggen in)
3. Close Broswer/Start Browser
4. Access gallery (without visiting forums first it shows you as logged out.)

The bug of the bridge is that you have to first access vbulletin and then access gallery to show you as logged in. Most you don't care because your main page is vbulletin forums but for people that using another cms not intergrated to vb this is a problem. I also check this bug in myetalk where The Chief is using joomla vb right ?

Can you please fix this ?

Please i beg you i tested everything and it's working great i even fixed the template to fit the rest of my site and then i found this really annoying bug that kepts me away from using coppermine instead of my current gallery :disappointed:

Hellcat
02-17-2006, 11:30 PM
Can you please fix this ?
Not easiely, since CPG utilizes the session cookie of vB rather than the "remeber me" cookie(s).
Once you're inactive for a set ammount of time, or close the browser, the session cookie expires.

To change this hacking the CPG files would be neccesary....

Tefra
02-17-2006, 11:34 PM
Not easiely, since CPG utilizes the session cookie of vB rather than the "remeber me" cookie(s).
Once you're inactive for a set ammount of time, or close the browser, the session cookie expires.

To change this hacking the CPG files would be neccesary....


i want to cry it took me all day to understand coppermine and learn how to use it and skin it. oOh boy and those docs where huge

khaleel
02-19-2006, 11:27 AM
great mod!!!! *installs*

nicedreams
02-22-2006, 09:17 PM
Not easiely, since CPG utilizes the session cookie of vB rather than the "remeber me" cookie(s).
Once you're inactive for a set ammount of time, or close the browser, the session cookie expires.

To change this hacking the CPG files would be neccesary....

Ok, I have almost the reverse problem. When a user is in the gallery section for over the amount of the vb cookie(1200 - 20 minutes), and goes back to vb, you are no longer logged in. This is with the remember me box set to unchecked. I have this box hidden and always set to unchecked so if they close their browser, they will always have to re-login.

I realize I can increase the cookie timeout in vb, but I don't to inflate the online users in the who's online page.

So how can I update the activity of the vb cookie, or whatever is timing out in vb, *IN* the coppermine pages? Is there a vb function I can call to update it?

Jim

rhorta
03-06-2006, 05:34 PM
I am running into a problem while bridging.

First I tried from a different domain, I got the error message that the brdiging tool could not find the ../includes/config.php file.

Well then I tried doing the same thing from the same domain, but still no go, same error.

Now it could be how the wizard is set up.

I have my forum installed in a sub domain, instead of a folder under www.etc.com

So my current test

forum.mydomain.com

and

www.mydomain.com/Gallery

Would love to see this bridging work.

Thanks for your attention.

Hellcat
03-07-2006, 12:21 AM
That setup doesn't work for bridging, sorry!
The CPG manual has a section about that issue....

rhorta
03-07-2006, 04:06 AM
OK thanks, I should have checked that first - as the famous saying goes.

But could it work from two seperate domains / dbases?

opteek
03-08-2006, 08:02 PM
Im having a bit of trouble getting this to work. When I use the inc.php file, all of the settings that I could make in the bridge manager are greyed out and it doesn't work. If I use the included bridge script, I get an undefind method udb_connect() or something. If I disable bridging, everything works.

Can someone help?

Were exactly do you enter the info like database name, password and such, so it can actually grab the user files?? Do I have to edit the inc.php file? I am running 3.5.4 and the latest coperrmine

Burley
03-16-2006, 07:13 AM
Hellcat, nice hack! It worked like a charm for me.

I was looking on your website and noticed you had the gallery integrated in your forum and your portal. Could you tell me how you did it?

Hellcat
03-17-2006, 04:00 AM
Hellcat, nice hack! It worked like a charm for me.

I was looking on your website and noticed you had the gallery integrated in your forum and your portal. Could you tell me how you did it?
I just put a link to it in my vB's header template and made a tiny page linking to it for the portal.
Nothing wild :)

(integrating the SKIN would be nice.... but's that's quite some more complicated than I would like :-/)

mamboking
03-30-2006, 07:33 PM
I read the whole thread. A least 2 people asked how to intergate the vb theme and figured out on their own. Not me. Could someone please explain what needs to be done to get the board themes to work. Or does it have to be hard coded.

Thanx

Burley
03-31-2006, 08:50 AM
integrating the SKIN would be nice.... but's that's quite some more complicated than I would like :-/

working on that right now (iskin), but the trouble is that for each skin one has to start all over again :tired:


I read the whole thread. A least 2 people asked how to intergate the vb theme and figured out on their own. Not me. Could someone please explain what needs to be done to get the board themes to work. Or does it have to be hard coded.

There are severall threads which explain the "how to" on the coppermine board itself, they do it much better then I could ever do :)

mamboking
03-31-2006, 12:35 PM
Thank you much for the feedback and pointing me in the right direction

mossss
04-05-2006, 07:22 AM
I have already installed Coppermine 1.3.2 and now I have downloaded the version 1.4.4.

Whit this version I can Integrate It whit my vBulletin 3.5.3?

The Chief
04-06-2006, 05:44 PM
yes, thats exactly it :)

mossss
04-08-2006, 06:30 AM
yes, thats exactly it :)


very thanks The Chief :D

Suiko Jin
04-10-2006, 02:26 AM
I am using Vb 3.5.4 and the brige worked. However. When someone fromt he forum logs into the forum they don't really show up on the Gallery. And now, I can't even login to the gallery itself... which isn't good. I am using the gallery version 1.4.4

hbalagh1
04-11-2006, 10:54 PM
Ugh, for me, everything works fine until it asks for the relative forum url. I entered ../Forum/ as the relative and http://www.themotec.com/Forum as the forum URL, yet I get an error saying that the config cannot be found, and it actually shows the correct path...why is this :(


I have the same issue

hbalagh1
04-12-2006, 11:04 PM
anyone? :)

dodees
05-15-2006, 09:18 PM
I have the same issue

Same issue

jerx
05-26-2006, 07:34 PM
I have two problems with coppermine bridge. I tried this file and the bridge file included in 1.4.6.

1. Everytime I try to log out of coppermine, I get this error message:
An error occurred while attempting to log you out. Click here to log out.

This problem has been mentioned before, but there has been no solution. Hellcat thinks that cookie hash is not given on the logout url. Does nobody know a fix?

Nibbler, a coppermine developer, said this: It may not be possible to obtain the logout hash externally. You'd need to look through the code and determine how it is implemented. Can this be integrated into the bridge?

2. It looks like you are not redirected to coppermine after logging in and that you are redirected to the forum after logging out (from coppermine). The phpbb bridge is better. You are redirected to the gallery after login and after logout, too.

Can this be improved?

GauGau, another coppermine developer, said this:
This is by design of the bbs app you use (in your case vb). Some bbs apps support redirect after login (e.g. phpbb or smf), some don't. Those that don't support it should indeed have a button in the forum navigation that can send the user back to coppermine. This is by design and can hardly be changed by coppermine coders.

I really hope these two issues can be solved.

SnickersTK
05-26-2006, 08:26 PM
I have several issues too.. I certainly look forward for changes

jerx
05-27-2006, 09:50 AM
I have found this thread: vB Login & Info on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=96013&highlight=logout+hash)

Looks like the hash code is called by this hack. How can you integrate this into coppermine bridge?

Hellcat
05-27-2006, 11:27 AM
When I get some spare time, next week, I will sneak into this and see what I might be able to do :)

gamelandz
06-03-2006, 07:07 AM
ok...i understand how to integrate coppermine...but how do i get it to display inside a vbulletin page?

jerx
06-03-2006, 07:42 AM
Use cpmfetch:
http://cpmfetch.fistfullofcode.com/

There is a detailed documentation, but if you need support, you can ask here:
http://coppermine-gallery.net/forum/index.php?board=57

jerx
06-15-2006, 02:12 AM
I was trying to restrict pic view for guests. They should only be able to see the thumbnail, but not the actual picture. This is the solution for it:
Edit displayimage.php and add
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before


/************************************************** ************************
* Local functions definition
************************************************** ************************/

http://coppermine.sourceforge.net/faq.php?q=viewThumbnailsOnly#viewThumbnailsOnly

The problem is that it allows users who haven' t confirmed their email address yet to see the full size picture.

How do I disable full size view for unconfirmed users, too?

Vitz
06-21-2006, 03:31 PM
I'm getting an odd error when I try to enable BBS Integration: Fatal error: Cannot redeclare class core_udb in /home/.aurora/elusiveworks/elusive-works.co.uk/forums/coppermine/bridge/udb_base.inc.php on line 22

Does anyone know of a fix for this? Or did I just do something stupid by installing Coppermine 1.4.8 instead of 1.4.2, and this mod got outdated that way?

Pedro!
06-25-2006, 01:44 PM
Great job on the bridge but I'm experiancing the same problem as some other people with gallery permissions (in usermode).

This is the error:

Sorry there is no album where you are allowed to upload files

This is the detail:

File: /home/i/s/isketchforum/public_html/gallery/upload.php - Line: 874

And this is the debug info


USER:
------------------
Array
(
[ID] => **********************
[am] => 0
[lang] => english
[theme] => mac_ox_x
)

==========================
USER DATA:
------------------
Array
(
[user_id] => 3
[user_name] => Petay
[groups] => Array
(
[0] => 1
)

[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[custom_user_upload] => 0
[num_file_upload] => 1
[num_URI_upload] => 0
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 0
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)

==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
[1] => select * from cpg148_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg148_bridge (0s)
[3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `isketchforum`.vBuser AS u, `isketchforum`.vBsession AS s WHERE s.userid=u.userid AND s.sessionhash='********************' (0.001s)
[4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `isketchforum`.vBuser AS u INNER JOIN `isketchforum`.vBusergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='3' (0.001s)
[5] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) (0.001s)
[6] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 1 (0s)
[7] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 3 (0s)
[8] => DELETE FROM cpg148_banned WHERE expiry < '2006-06-25 14:36:04' (0s)
[9] => SELECT * FROM cpg148_banned WHERE (ip_addr='81.151.219.20' OR ip_addr='81.151.219.20' OR user_id=3) AND brute_force=0 (0s)
[10] => SELECT aid, title FROM cpg148_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (1)) ORDER BY title (0.001s)
[11] => SELECT aid, title FROM cpg148_albums WHERE category='10003' ORDER BY title (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.084 seconds - 12 queries in 0.005 seconds - Album set : ; Meta set: ;


The odd thing is line 874 of upload.php is just a comment.

This is an extract of the PHP code starting with line 870 and finishing on line 877:

// Create the upload forms using the upload congfiguration.

if (!isset($_REQUEST['control'])) {

// Do some cleanup in the edit directory.
spring_cleaning('./'.$CONFIG['fullpath'].'edit',CPG_HOUR);

// Do some cleaning in the temp data table.


Line 873 looks like it might be something to do with it though :ermm:

ab420
06-28-2006, 02:14 PM
I would like to put a link in memberinfo that goes right to the users gallery, is this possible? I noticed at the end of the url for galleries, its the users vBulletin id# +10000, so is there some way to code that into mermberinfo? Also, does anyone know what happens to the url when you get 90,000+ members?

keith455
07-08-2006, 04:00 PM
I'm getting an odd error when I try to enable BBS Integration: Fatal error: Cannot redeclare class core_udb in /home/.aurora/elusiveworks/elusive-works.co.uk/forums/coppermine/bridge/udb_base.inc.php on line 22

Does anyone know of a fix for this? Or did I just do something stupid by installing Coppermine 1.4.8 instead of 1.4.2, and this mod got outdated that way?

I'm getting the same error.

maximux1
07-09-2006, 06:59 PM
I'm getting the same error.

I've just tested this with vb3.6.0b4 and receive the the same class redeclaration error as other above. However, when investigating what had been accomplished by the bridge I found that everything seems to be working as expected.

I'd be curious if anyone knew what might I might investigate further. Given that the class did seem to perform, Im not exactly sure if any problems exist.

Im on a test board, of course, and would like to try and break this thing before putting it into production environment...any got any suggestions?

gothicuser
07-09-2006, 08:15 PM
I have installed Coppermine with vB 3.6.0b4 but used the bridge supplied with the Coppermine 1.4.8 package. It is more up to date and works perfectly on my dev machine in the office, and on my dev site.

keith455
07-09-2006, 11:02 PM
I fixed this by going with Gallery2. I like how it's more intergrated anyway instead of a standalone looking gallery.

FamilyCorner
08-23-2006, 09:02 PM
I fixed this by going with Gallery2. I like how it's more intergrated anyway instead of a standalone looking gallery.


Can you elaborate on this? I ave installed G2 and can't seem to integrate it the way I would like which is why I am now looking at Coppermine. Do you have a link to your site to show how you have it integrated with your boards. I don't want just the look and feel, I want the images to be available within the forums, not outside of them.

Thanks!

keith455
08-24-2006, 12:29 AM
My site it www.riverviewforums.com choose the gallery link at the top.. It's not fully intergrated but it has the look and feel of VBulletin.. I'd like to have it when you look at someone profile you see their pictures, but that's another day's work.

oldfan
09-18-2006, 01:27 AM
I'll shoot someone $20 (paypal) if they can intergrate my header/footer
my site http://www.metallifukinca.com/

thanks

oldfan
09-20-2006, 03:39 AM
I'll shoot someone $20 (paypal) if they can intergrate my header/footer
my site http://www.metallifukinca.com/

thanks

$30?
sho0t me a pm if your interested

austrekkers
10-11-2006, 02:46 AM
I had this running perfectly with a test forum for a while. Then I re-ran the bridging to point to our live forum, and i have a problem... it won't log in to the gallery. I login on the forum and then link to the gallery, and i'm not logged in there. I click login, and it takes me back to the forum where I'm still logged in! :surprised:

Help??? Now I can't even get into the admin section cos i can't log on!

donnie_ogm
11-09-2006, 09:06 AM
great mod!!!! *installs*

work fine on 3.6.2 :rolleyes:

4Prometheus
11-21-2006, 10:56 PM
Thank you very much for taking the time and trouble to share a working hack.

Happy Holidays!

Peace.

Defkalion
01-05-2007, 06:03 AM
Can someone tell me if this hack can be used in a live environment? What I mean is, I already have a full working Coppermine gallery that has albums, photos, users (the same users with my vBulletin) etc inside.

If I understand correctly, by making the integration with my vBulletin, all of this information will be LOST from Coppermine? Can the author of this mod or someone else who tried it answer this ?

Many thanks.

Jay6
08-22-2007, 12:24 AM
.. it won't log in to the gallery. I login on the forum and then link to the gallery, and i'm not logged in there. I click login, and it takes me back to the forum where I'm still logged in! :surprised:

Help??? Now I can't even get into the admin section cos i can't log on!

This is all mine does after bridging also.

brvheart
09-13-2007, 01:02 AM
3.6.8??

Land
10-06-2007, 07:43 AM
Vb 3.6.8 + Coppermine 1.4.13
Should I use this bridge or the one included in coppermine?
Thank you. :)

Land
10-07-2007, 12:30 AM
I got this error:

Fatal error: Cannot redeclare class core_udb in [REMOVEDTOSEARCHONGOOGLE]/bridge/udb_base.inc.php on line 22

But -so strange! - bridge seems to work! :confused:
Any idea?

nokidding
10-08-2007, 11:34 AM
does it work wil 3.6.8?

or should we use the one that comes with coppermine?

kwong
10-27-2007, 12:26 PM
does it work wil 3.6.8?

or should we use the one that comes with coppermine?

anyone ? :confused:

kether1
10-30-2007, 06:01 PM
I have 3.6.8 and the latest stable version of Coppermine. The bridge that comes with coppermine did not work. The error message I got was:

Cannot connect to USD

Mysql message: (nothing here... it was blank)

Should I try this one? Anyone have it working?

K

34drvr
11-02-2007, 03:59 PM
I have a couple of websites that I am considering replacing my feeble attempt at a photo database to Coppermine.

The following is a quote I posted on the Coppermine BB but did not get a reply that helped:

I have a vBulletin here:

http://www.hmm-363.us/theden/

and wish to replace my photos section, here:

http://www.hmm-363.us/photo_0a.html

with Coppermine and my vBulletin is (vBulletin 3.6.7 PL1).... my server has ImageMagick and the server is Linux.... I believe it has all the requirements, but I would like to know if I will be able to 'bridge' them? I do have a little help but as long as it isn't too complicated I can usually muddle through it....


Thanks for any and all assistance.

riverplate.com
11-21-2007, 02:28 AM
Works for 3.6.8 !?

Thanks!

staticrebelle
04-02-2008, 02:30 PM
Minor problem:

When users are logged into vbulletin and then browse the Galleries, Coppermine does not count their views on photos. Only when guests are viewing pics do photo views get counted. http://galleries.avrilbandaids.com to see the problem.

I'm about to run a Fan Art contest where the winner will be decided based on which graphic has the most views so if anyone could help it would be muchly appreciated!

xx

jerx
05-07-2008, 07:57 PM
Has anyone been able to bridge coppermine to vbulletin 3.7?

foxtrialer
05-14-2008, 10:43 AM
Yup, it`s easy to make with new Coppermine version`s built in Bridge. All working correctly. U also can see it here:
http://www.aiongame.net/gallery

fabioski
09-18-2008, 02:11 PM
Can I put the coppermine galleries in a subdomain?

slayhahn
01-23-2009, 11:19 AM
What about 3.8.0 Gold? :-)

I have very old albums and I would be more than happy to see this bridge for vB 3.8.0. Has anyone tried it?

ViciousCode
01-25-2009, 04:43 PM
would be cool if someone made a new bridge :D

Riccardo83
02-05-2009, 09:31 AM
Yeah, would be great to know if it worked with 3.8.0 or if there is a better choice than coppermine?

Neutral Singh
05-11-2009, 07:18 PM
anybody having success with this in 3.8?

edytwinky
06-20-2009, 07:52 PM
Add me on the list too.

Cobro
01-18-2012, 12:28 PM
What about 4.1.10 version and are there any good explanation on how to set it all up for vbulletin ?