forum.coppermine-gallery.net

Support => cpg1.4 bridging => cpg1.4.x Support => Older/other versions => cpg1.4 bridge contributions => Topic started by: v3 on September 12, 2006, 04:57:20 pm

Title: CPG Bridge for e107 0.7x
Post by: v3 on September 12, 2006, 04:57:20 pm
e107 (http://e107.org) is one of most popular freeware CMS. This plugin allows you to integrate CPG into it.

Tested with e107 0.75 and Coppermine 1.4.9.
You can use default coppermine themes, or use integrated e107 theme. Note it can conflict with your e107 theme (or css) and you'll got to fix it by yourself. Integrated theme is compatible with every default e107 theme except 'interfectus'.
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F1743%2Fe107cpg1rj9.th.gif&hash=93aa9b624d174ae69e13f2235794f19c) (http://img237.imageshack.us/my.php?image=e107cpg1rj9.gif) (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F5287%2Fe107cpg2wt2.th.gif&hash=3e4a6670ba0bd0a2136d40404f6a5887) (http://img237.imageshack.us/my.php?image=e107cpg2wt2.gif) (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F8820%2Fe107cpg4ox5.th.gif&hash=ea85953991438912fa6aa1f07651cebc) (http://img237.imageshack.us/my.php?image=e107cpg4ox5.gif) (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F9704%2Fe107cpg3dc8.th.gif&hash=aacf8aa21d89af51ef1454d40daef4e1) (http://img237.imageshack.us/my.php?image=e107cpg3dc8.gif)

Q: I get an "Unable to connect to database ! MySQL Said" error.
A: It you get MySQL errors, try to turn register_globals off, because if it's on e107 unsets all globals.
This plugin can work with register_globals but i can't guarantee anything.

Q: I get an Fatal error: Call to a member function on a non-object in <..>/include/init.inc.php on line 281
A: Just comment that line. Or turn register_globals off. You can uncomment it after upgrade.


HOW TO INSTALL IT?
1) Make sure you running e107 0.7x
2) Download the latest Coppermine package from http://coppermine-gallery.net/ . This plugin is tested with 1.4.9 version of Coppermine, but it should work with every 1.4.x version (NOT 1.3.x or lower).
3) Upload all files into yoursite.com/anyfolderthatllbecoppermine/
This folder SHOULD be e107 subfolder. I suppose it's impossible to make coppermine and e107 working together if they're in separate folders. At least with intregrated theme.
4) Install Coppermine as standalone gallery according to Coppermine manual.
5) Extract archive into Coppermine root folder.
6) Make sure that "coppermine_folder/include/config.inc.php" is writable! Chmod this file with 0777.
7) Use yourwebsite.com/coppermine_folder/bridgemgr.php
Now enable bridging. Then start 'Bridging wizard', choose ' your custom bridge file's name' and type 'e107' into textfield. Hit the 'next' button several times until installation is done.

Congratulations, now you have Coppermine integrated into e107 :)
Use yourwebsite.com/coppermine_folder/admin.php to manage settings, try to set 'e107' theme as default one. Refer to Coppermine manual for details.


Note that no links are created automaticly! You'll have to use e107 ACP to add it. Use yoursite.com/e107_admin/links.php .

If you want to add additional administrators, create a COPPERMINE_ADMIN usergroup for them.

You can see it working at http://sonic-world.ru/gallery/

--------------------
* MANUAL UPGRADE INSTRUCTIONS (by mzeedijk, thanks for detail description :))

HOWTO: Upgrade your current 1.3.5 Plugin Package version to 1.4.9 including this bridge.

READ this first!!!!!!
Always make a backup of your database and your website before performing actions that changes filestructures and databases.
Also make sure that your current coppermine install of version 1.3.x is working correctly without too much problems.

Upgrade your current 1.3.5 version to 1.4.9 including this bridge.
- unpack the whole 1.4.9 directory stucture and its files in the coppermine_menu directory that is inside the e107_plugins directory
- Do not overwrite your album directory, include/config.inc.php, and anycontent.php files
(v3: actually, you can delete everything except albums/ directory and include/config.inc.php)
- remove the install.php file from the coppermine_menu folder.
- Delete all leftover, outdated language files in the lang folder that are named XXX-utf-8.php
- run the update.php by pointing your webbrowser to your website/e107_plugins/coppermine_menu/update.php

Since the 1.3.5 plugin package didn't add an admin user you have to add them yourself by adding a user to your users table in mysql:
- INSERT INTO e107_CPG_users set user_name='admin', user_group='1', user_active='YES', user_password='password';
(v3: don't forget to change 'password' to something else during the query. :) Use PhpMyAdmin to add this value into your DB)
(remember to change the e107 prefix with the prefix you have choosen at e107 install time)

Now you have created an active admin user with username admin and password password.

Now the bridge part:
- Unzip the bridge to your coppermine root and overwrite any files with the same name.
- Point your webbrowser to your website/e107_plugins/coppermine_menu/bridgemgr.php

You are now inside your old theme and it tries to log you on with the e107 user but since the bridge is not 100% fully working it cannot log you on. So logon with the local admin user we just created in the previous step.
- Click Logon (website/e107_plugins/coppermine_menu/login.php) and logon using user admin and password password.
- You are now logged on and click continue to go to the Bridge Manager.
- Click Start Bridging Wizard
- Select the radio button at the bottom of which the description says: "your custom bridge file's name......"
- enter e107 into the box and click next.
- Click Next again.
- And click Next an other time.
- Now Enable your bridging by selcting the left radio button and click Finish.

GRATZ!!!!
Now you can access your coppermine gallery, because it has been upgraded from version 1.3.x to version 1.4.9.
You can delete the local admin user by deleting it using:
DELETE FROM e107_CPG_users WHERE user_name='admin';
(remember to change the e107 prefix with the prefix you have choosen at e107 install time)

But I say just keep it. It is always nice to have a local admin user for coppermine, just to reset some stuff.
Title: Re: CPG Bridge for e107 0.7x
Post by: wuschel_lux on September 19, 2006, 01:56:41 pm
Hi v3,

first of all thanks for posting this bridge.

I'am using e107 (version 0.7.5) and the newes Coppermine Gallery (version 1.4.9). With your bridge it works fine with the integration.

But I found some errors while updating the settings in admin mode:

 + There are some points in the setting which are not stored like:
     - timezone
     - language

 + The language is selected by Browser/Computer settings ... On my laptop I got e german language file and on my PC e french language.

 + I'am missig the uplode file button in the coppermine menu

Best regards,
Francis
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on September 19, 2006, 03:08:14 pm
+ The language is selected by Browser/Computer settings ... On my laptop I got e german language file and on my PC e french language.
You're missing the point how Coppermine determines languages: this is expected behaviour and not related to bridging. Coppermine detects the language from the user's browser settings. Search the board for details.

+ I'am missig the uplode file button in the coppermine menu
I guess that you haven't set up coppermine correctly. Post a separate thread on the coppermine support board that deals with permissions, with links to your coppermine-driven page and a non-admin test user account. Additionally, you might want to attach a screenshot to your post that shows coppermine's groups panel.
Title: Re: CPG Bridge for e107 0.7x
Post by: gabcsi on September 20, 2006, 01:14:27 am
Sorry guys, but i have an error message after the finishing bridgemgr. In the include/config.inc.php is everythig OK.
Erro is....

Coppermine critical error:
Unable to connect to database !

MySQL said:
Title: Re: CPG Bridge for e107 0.7x
Post by: v3 on September 20, 2006, 02:14:37 am
Quote
+ There are some points in the setting which are not stored like:
     - timezone

Yeap, that's right. I'll realize it in future versions (soon).

Uploaded a new version (bugfixes), please update.
Title: Re: CPG Bridge for e107 0.7x
Post by: mopex on September 20, 2006, 03:58:07 am
v3

do we need to stop bridge and restart it for fixes to be enabled or is simply replacing file sufficient?
thanks
Title: Re: CPG Bridge for e107 0.7x
Post by: v3 on September 20, 2006, 03:59:57 am
Just replace it
Title: Re: CPG Bridge for e107 0.7x
Post by: mopex on September 20, 2006, 04:03:30 am
excellent, thanks again
Title: Re: CPG Bridge for e107 0.7x
Post by: mzeedijk on September 21, 2006, 12:34:09 am
I am done testing. Tested 3 situations.

1 - Coppermine inside e107 directory structure. Works perfectly
2 - Coppermine outside e107 directory structure. Doesn't work because it cannot find the e107_config.pp file after bridging
3 - Coppermine upgrade from 1.3.5 to 1.4.9 including bridging. Works perfectly. User-becomming-admin-problem is fixed.

Thanx again V3.
Title: Re: CPG Bridge for e107 0.7x
Post by: v3 on September 21, 2006, 09:41:49 am
e107 is using cookies for user authentification. If your e107 path is something like http://website.com/mye107/ it's good to set cookies path to /mye107/ for security reasons. But in that case, Coppermine installed to http://website.com/coppermine/ can't authentificate you as user. That's why i recommend installing it into subfolder.
In case coppermine is outside e107 directory - well, it can be done, but you'll need to set cookies path to root directory. You can try to set `CPG_bridge => relative_path_to_config_file` to "../mye107/" in PhpMyAdmin.
BTW, what about installation using different DBs (maybe even different MySQL servers)?

2 Coppermine Developers - when creating self-made bridge, additional options, such as "path to config file", can't be set without bridgemgr.php editing. Can you implement this? :)
Title: Re: CPG Bridge for e107 0.7x
Post by: v3 on September 28, 2006, 03:53:37 am
Updated.
* Fixed issues with "MySQL said" errors (the problem was register_globals = on).
* Added some kind of installer :)

After a few tests, i suppose coppermine and e107 can't be in different folders. Use mod_rewrite if you need it so.
Title: Re: CPG Bridge for e107 0.7x
Post by: mousey on October 01, 2006, 01:47:51 am
Hi. great bridge  :)
I used to use coppermine as a standalone until I found this bridge for my e107 site and everything works bloddy marvelously...

...except for...

I have anon comments turned off for my site (because of spammers), but enabled for the gallery.
 
Now my site and gallery are bridged, you have to be logged in to post comments in the gallery even if anon posting is enabled in e107. Of course, my preference is to allow anonymous posting for the gallery.

Any suggestions on how I might be able to allow anon comments for the gallery again?  ???
thanks

(Coppermine is located in my plugins directory. site is www.stu.co.nz (http://www.stu.co.nz)...)
Heres a dummy account to use to see what I mean...
Not logged in = no comment field displayed
Logged in = comment field displayed

dummy/dummy
Title: Re: CPG Bridge for e107 0.7x
Post by: v3 on October 01, 2006, 11:03:08 am
Use /coppermine/groupmgr.php and allow comments for 'guests' group.
Just turned it on on my website. Then, additional input field for name appears, if you're unregistered. Comment was added.
Title: Re: CPG Bridge for e107 0.7x
Post by: mousey on October 02, 2006, 01:47:33 am
Of course...I'd not even thought of that. Thanks
Title: Re: CPG Bridge for e107 0.7x
Post by: testomat on October 06, 2006, 12:07:49 pm
After installing and calling bridgemgr.php, typing e107, i got following message:

"The bridge file bridge/e107.inc.php doesn't exist on the server. Check if you have actually uploaded it." In the bridge directory isn't the e107 file.

What did i do wrong with the installation?
Title: Re: CPG Bridge for e107 0.7x
Post by: Nibbler on October 07, 2006, 11:09:54 pm
Upload the bridge file into the bridge directory.
Title: Re: CPG Bridge for e107 0.7x
Post by: testomat on October 08, 2006, 12:17:50 pm
Where can i find the file or where can i download it ?
Title: Re: CPG Bridge for e107 0.7x
Post by: Nibbler on October 08, 2006, 12:22:22 pm
It's attached to the first post in the thread.
Title: Re: CPG Bridge for e107 0.7x
Post by: testomat on October 08, 2006, 12:25:01 pm
Oh yes, thank you nibbler. I didn't see it ;D
I will try it.

Thank you so far.
Title: Re: CPG Bridge for e107 0.7x
Post by: Anto on October 08, 2006, 10:34:02 pm
Thanks to v3 for the coppermine bridge for e107. It works really great!

I have one difficulty though. I restricted only the registered users who are able view my gallery. Because of that users have to login twice. First to e107 and second to coppermine.

Does anybody know the workaround so users only need to login once (to e107) and can view the gallery? How to pass the login from e107 to coppermine?

I suppose we can just synchronise the users table on e107 and coppermine via TRIGGER on MySQL. But I am not sure if this is a good solution.

Thanks a lot in advance for your help

Cheers,
Anto
Title: Re: CPG Bridge for e107 0.7x
Post by: singaporemall on October 09, 2006, 03:52:45 pm
After 2 days of work, it finally worked!

Singapore Mall
www.singaporemall.in/gallery
Title: Re: CPG Bridge for e107 0.7x
Post by: alecc on November 11, 2006, 01:56:56 pm
Hi. Looks good at first sight, but i see that i have some issues.  When i create new albums in albummanager, they'r always creatated with no title.  i can change this in albumconfig. Any idea what causes this?  i've seen that som other pepole have posted this on the e107coders page too..
Title: Re: CPG Bridge for e107 0.7x
Post by: Chunky C on November 12, 2006, 08:38:16 am
Is it possible to bridge e107 (v.75) and cpg (v1.4.9) if they are on different sub domains

say 'e107.mysite.tld' and 'gallery.mysite.ltd'

?

I suspect that the integrated themes won't work but that's ok.

Thanks,

Chunk
Title: Re: CPG Bridge for e107 0.7x
Post by: fets on November 18, 2006, 02:54:59 pm
I ve bridged succesfully e107 .7x with coppermine. But! in main e107 site i am logged in as Stefano and in gallery shows that am logged in as [MiKe] (thats another user's username!). When i try to logout so i can login with my info, it redirects me to www.my-site.com/forum (phpBB forum) that i haven't installed. It has been installed by itself.

Help pls  :-[
Title: Re: CPG Bridge for e107 0.7x
Post by: fets on November 18, 2006, 04:37:33 pm
And something else that happened right now...

Now the whole gallery cannot be opened due to:

E107 BRIDGE ERROR: can't find 'e107_config.php'

.. not even the //bridgemgr.php

Here is the part of code i 've edited in bridgemgr.php

Code: [Select]
$default_bridge_data['e107'] = array(
  'full_name' => 'e107',
  'short_name' => 'e107',
  'support_url' => 'http://www.e107.org',
  'full_forum_url_default' => 'http://www.stathrania.com/e107_plugins/gallery',
  'full_forum_url_used' => 'http://www.stathrania.com/e107_plugins/gallery',
  'relative_path_to_config_file_default' => 'http://www.stathrania.com/e107_plugins/gallery',
  'relative_path_to_config_file_used' => 'http://www.stathrania.com/',
  'use_post_based_groups_default' => '0',
  'use_post_based_groups_used' => 'radio,1,0',
);

Now. the coppermine gallery is in folder: e107_plugins.
e107.inc.php is in ../../gallery/bridge/
and bridgemgr.php is in ../../gallery/

e107_config.php is in public_html of stathrania.com

Thanks in advance
Title: Re: CPG Bridge for e107 0.7x
Post by: skorzin on November 20, 2006, 04:57:32 pm
Hi. Looks good at first sight, but i see that i have some issues.  When i create new albums in albummanager, they'r always creatated with no title.  i can change this in albumconfig. Any idea what causes this?  i've seen that som other pepole have posted this on the e107coders page too..

ya, its really a problem. for security, i install second time on a fresh e107 but the same result. have no idea now what it can be...  ??? Anything else works perfekt!

Anyone have a workaround for this?
Title: Re: CPG Bridge for e107 0.7x
Post by: forkedatfark on November 29, 2006, 03:32:33 pm
Hi,

After major problems with losing my admin pages, I finally got that fixed and have the new coppermine upgrade more or less working.
Here is my previous thread.
http://forum.coppermine-gallery.net/index.php?topic=38467.0 (http://forum.coppermine-gallery.net/index.php?topic=38467.0)

Though Coppermine doesn't seem to be bridging.
It seems to be running in standalone.

So, I figured I might try hitting that upgrade button on my plugin management page, but only got this message:

Plugin successfully updated.     
   SQL commands failed. Check to be sure all upgrade changes are ok.

If there are no errors, the upgrade has been completed successfully. You are now running version 1.3.2b


Here is an example of what of what I mean about Coppermine appearing to run in standalone.
http://www.forkedatfark.org/e107_plugins/coppermine_menu/thumbnails.php?album=104 (http://www.forkedatfark.org/e107_plugins/coppermine_menu/thumbnails.php?album=104)http://www.forkedatfark.org/e107_plugins/coppermine_menu/thumbnails.php?album=104 (http://www.forkedatfark.org/e107_plugins/coppermine_menu/thumbnails.php?album=104)

Here is an example of another goofy error I am getting on another page.
http://www.forkedatfark.org/e107_plugins/coppermine_menu/displayimage.php?album=1&pos=0 (http://www.forkedatfark.org/e107_plugins/coppermine_menu/displayimage.php?album=1&pos=0)

This is what my site should look like, and the columns that should be appearing around coppermine when it is properly bridged.
http://www.forkedatfark.org/ (http://www.forkedatfark.org/)

I have run the bridge manager without problems, so I don't see what I am doing wrong.

Thanks
Title: Re: CPG Bridge for e107 0.7x
Post by: forkedatfark on November 29, 2006, 05:37:02 pm
I forgot to mention that I am getting this error at the bottom of the bridge manager page.

Fatal error: Call to undefined function: parseheader() in /home/content/f/o/r/forkedatfark/html/e107_themes/templates/footer_default.php on line 63

That line is:
parseheader(($ph ? $cust_footer : $FOOTER));

Thanks
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on November 30, 2006, 05:38:57 am
The error you get is not related at all to the bridge file that is being discussed on this thread, but to the fact that you upgraded from cpg1.3.x to cpg1.4.x without updating your custom theme as suggested in the docs. Your gallery works just fine if you use one of the standard themes that come with coppermine (e.g. http://www.forkedatfark.org/e107_plugins/coppermine_menu/displayimage.php?album=1&pos=0&theme=classic). Keep out of this thread for those issues, as they are not related, and fix your custom theme instead. Read http://coppermine-gallery.net/demo/cpg14x/docs/theme/ and search the board for the error message you get. If this doesn't help, start a new thread on the upgrading sub-board.
Title: Re: CPG Bridge for e107 0.7x
Post by: forkedatfark on November 30, 2006, 09:41:42 pm
Keep out of this thread for those issues, as they are not related, and fix your custom theme instead.

Sorry.
Thought this was the right thread.

It was malfunctioning because I thought I could use my old style.css.
It is all working great now.
I only need to edit the colors in my css now.

Thanks to everyone at Coppermine and V3 for making this bridge.
Title: Re: CPG Bridge for e107 0.7x
Post by: chican0 on December 21, 2006, 11:49:04 am
Awsome bridge. I am close to having everything up and running but I am finding a problem with the Batch Adding function.

When the bridge is enabled and trying to batch add, I get errors for each image file stating "click for details or to reload". When I disable the bridge, batch uploading works perfectly.

Has anyone else had this problem? I will not be allowing users to upload images and since I will be adding large sets of images each weekend, I really need the batch uploading to work.

I have noticed that even though I get errors for each file that is added, the files are in the database and viewable. When I try to reload the page as the error states, each file then comes up with the DP (duplicate) image icon.

Any assistance would be greatly appreciated.
Title: Re: CPG Bridge for e107 0.7x
Post by: chican0 on January 02, 2007, 09:56:20 am
Well, I suppose disabling and enabling the bridge has caused a problem with creating albums as some others have mentioned in this thread.

After first enabling the bridge, I was able to create a great deal of albums with no problems. Now, just a couple days ago I discovered that I am now unable to create albums with titles. Each time I go through the process, I am redirected to a page that says Creating album ''. The new "untitled" albums have been confirmed in the database and can be viewed within album listings. I can't update the name anywhere but from within phpMyAdmin.

Does anyone have any advice for this problem?
Title: Re: CPG Bridge for e107 0.7x
Post by: n0waY on January 10, 2007, 05:09:23 pm
Thanks to v3 for the coppermine bridge for e107. It works really great!

I have one difficulty though. I restricted only the registered users who are able view my gallery. Because of that users have to login twice. First to e107 and second to coppermine.

Does anybody know the workaround so users only need to login once (to e107) and can view the gallery? How to pass the login from e107 to coppermine?

I suppose we can just synchronise the users table on e107 and coppermine via TRIGGER on MySQL. But I am not sure if this is a good solution.

Thanks a lot in advance for your help

Cheers,
Anto


Personally I don't have these problems, but the majority of the other users of my site reported exactly that to me. If they try to access the coppermine gallery, they are autamatically logged off and sent to the main site of the e107. For some it does work when they log in one to three times more, but for some doesn't even that work. The problem can't be related to a cookieproblem or so, because when I access the gallery from exactly the same PC as some of these users it does instantly work for me but not for them.....
Does anybody has any idea what I can do?
Title: Re: CPG Bridge for e107 0.7x
Post by: n0waY on January 10, 2007, 06:02:43 pm
first sorry for doubleposting, but I really couldn't find an option to edit me post....
From the debug mode of my gallery I could find out that, the IP from these users gets banned from any reason... but because of the bridging mode I can't change any settings for that. Is there any way to do so?
Title: Re: CPG Bridge for e107 0.7x
Post by: chican0 on January 12, 2007, 07:20:22 am
Well, I suppose disabling and enabling the bridge has caused a problem with creating albums as some others have mentioned in this thread.

After first enabling the bridge, I was able to create a great deal of albums with no problems. Now, just a couple days ago I discovered that I am now unable to create albums with titles. Each time I go through the process, I am redirected to a page that says Creating album ''. The new "untitled" albums have been confirmed in the database and can be viewed within album listings. I can't update the name anywhere but from within phpMyAdmin.

Does anyone have any advice for this problem?

Well, I found a solution to my own problem. It seems that the file /include/init.inc.php needs to have the following statement added at line 18.

require_once('../class2.php');

Just thought I would throw that out there in case anyone else has the same issue.
Title: Re: CPG Bridge for e107 0.7x
Post by: chican0 on February 21, 2007, 03:31:49 am
Looks like I found another problem.

Does anyone else have an SQL error when trying to use the Report function?
Title: Re: CPG Bridge for e107 0.7x
Post by: danicotra on October 27, 2007, 02:00:09 pm
Hello guys.
I'm using this bridge with e107 v0.7.8 + coppermine v1.4.13.
Everything is ok in the installation, the only problem I noticed is that pages loaded within coppermine (I will write cpg since now) don't use the variables in my theme.php such as $CUSTOMPAGES, $CUSTOMHEADER and $CUSTOMFOOTER...
So when header_default.php render my pages it shows cpg with e107 default theme header and footer while I defined all pages loaded in cpg's directory as custom pages in my $CUSTOMPAGES variable (which is not read)...
It's likely my theme.php file is read somewhere but my CUSTOM variables aren't saved ...

Can someone help me, please?
Thanks!
Title: Re: CPG Bridge for e107 0.7x
Post by: Grandc on November 13, 2007, 11:15:28 am
Hi there,

If have bridge coppermine with E107. It works really fine. But now I want to display the uploaded user images to show under the user profile in e107.

Does anyone know how to do that?

Title: Re: CPG Bridge for e107 0.7x
Post by: treehstn on June 01, 2008, 11:06:49 am
Is this bridge still valid for newer versions of e107 and coppermine?  I have e107 v.0.7.11 and coppermine 1.4.14 loaded.

It says in the instructions above that in order for the bridge to work both e107 and coppermine need to be in the same directory.  I already had both installed before I found this thread.  e107 is at the root directory of my domain and coppermine is in a subdirectory.  My CM database has 2000+ records in it while my e107 is nearly a clean install.  What work might it take to move the CM files?  Can I just move them and the db will be workable or will I need to make modifications there also?

I also have VBulletin installed in the same database, different subdirectory and bridged successfully to CM.

Thanks!
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on June 02, 2008, 07:51:24 am
Is this bridge still valid for newer versions of e107 and coppermine?
This plugin is tested with 1.4.9 version of Coppermine, but it should work with every 1.4.x version
  I have e107 v.0.7.11 and coppermine 1.4.14 loaded.
Upgrade!
Title: Re: CPG Bridge for e107 0.7x
Post by: another_angel on June 24, 2008, 06:10:32 pm
Ok, I've spent the last hour searching for the e107.inc.php file, as it was not included in either the Coppermine or e107 downloads, nor have I been able to find a link to download the file anywhere on the forum or the Coppermine site in general.  I even googled the file name with no result.  I cannot proceed with the bridging until I upload this file.  Anyone know where I can download it from?
Title: Re: CPG Bridge for e107 0.7x
Post by: another_angel on June 24, 2008, 06:24:41 pm
...aaaaand as soon as I logged in to make this post, the download link showed up.  Flame away... i totally deserve it.   ::)
Title: Re: CPG Bridge for e107 0.7x
Post by: canor on October 01, 2008, 12:38:15 pm
...aaaaand as soon as I logged in to make this post, the download link showed up.  Flame away... i totally deserve it.   ::)

Pls post a link to e107.inc.php because i can't find it.
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on October 01, 2008, 05:36:23 pm
It's contained in the zip archive that is attached to the initial posting of this thread.
Title: Re: CPG Bridge for e107 0.7x
Post by: canor on October 02, 2008, 07:30:54 pm
It's contained in the zip archive that is attached to the initial posting of this thread.

Thx for the answer. I have found it but i dont understand.  ???
But here is the link for the noobs like me ;):
[Edit GauGau] Link removed [/Edit]
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on October 03, 2008, 08:04:17 am
But here is the link for the noobs like me ;):
I could have posted that link as well in the first place, don't you think? I did not, because we don't want such deep links to attachments, as they are subject to change, so your link might go down later, leaving newbies even more confused. That's why I edited out the link in your posting.

I have found it but i dont understand.  ???
Be more detailed: what exactly do you not understand? What do you need help with?
Title: For all having problems with the picture upload or having troubles to find it
Post by: x-coder on October 22, 2008, 01:20:52 am
After spending some time to figure out where to find a Upload-Form / adding pictures, I realized there must be something messed up because the link was not there where it should, it should be under "@" and "Upload file", but "Upload file" was missing for admin and users.

Turning on debug showed me the variable USER_CAN_UPLOAD_PICTURES is always 0 even as admin, regardless how I setup the permissions. I have to say I added the admin into a new group, the admin group has set USER_CAN_UPLOAD_PICTURES=1 and the new group has USER_CAN_UPLOAD_PICTURES=0.

After searching I found some comment in the bridge file e107.inc.php:
Quote
// *********** CHANGED *************
// this query is more logical in my opinion (v3)
$query = "SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, " .
                        "MIN(can_rate_pictures) as can_rate_pictures, MIN(can_send_ecards) as can_send_ecards, " .
                        "MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, " .
                        "MIN(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, " .
                        "MAX(num_URI_upload) as num_URI_upload, " .
                        "MIN(can_post_comments) as can_post_comments, MIN(can_upload_pictures) as can_upload_pictures, " .
                        "MIN(can_create_albums) as can_create_albums, " .
                        "MAX(has_admin_access) as has_admin_access, " .
                        "MAX(pub_upl_need_approval) as pub_upl_need_approval, MAX( priv_upl_need_approval) as  priv_upl_need_approval ".
                        "FROM {$CONFIG['TABLE_USERGROUPS']} WHERE group_id in (" .  implode(",", $groups). ")";

here is problem:
the SQL-query was changed (some MAX to MIN) so that when one out of your assigned user groups has the option USER_CAN_UPLOAD_PICTURES set to 0, this group will win! even if you set another group where you are member of to 1. Only if I would set all groups where I'm in to 1 it would work.

To fix it, just use the orignial SQL-query above that comment by comment out or deleting the bad $query or change the MIN for can_upload_pictures to MAX again.
Title: Re: CPG Bridge for e107 0.7x
Post by: TAZmd on May 17, 2009, 11:43:19 pm
Not sure why e107 dont have a good working photoalbum where you can do as much as coppermine.
but mine is not working correctly.

If i want to add a new album to a category it will make one but with out a name.
I go to Albums (albmgr.php) i Select a category named Test i press New to add one and rename it what ever and than the accept button.
Also all the other albums named in the Test category are now blank name.
i can add a name if i edit the album and than add the name but not true albmgr.php
in dutch it will say "Aanpassen album '7' met titel '' en index '100'" not sure if this wil help.

what can i do to fix this?

i use:
e107 Versie 0.7.15
Coppermine Photo Gallery 1.4.22 (stable)

e107 theme: sebes Versie 1.1
Coppermine theme: E107
Title: Re: CPG Bridge for e107 0.7x
Post by: joginvik on June 03, 2009, 04:44:42 pm
after clear install there is only one bad news - but very bad

no page names after bridging - its very bad for SEO

I search another e107 gallery

or is it possible to solve?
Title: Re: CPG Bridge for e107 0.7x
Post by: liquid-motion on July 10, 2009, 04:18:44 pm
My gallery can be found at http://foto.liquid-motion.nl.

I can't change the time offset on my settings page and I think it has something to do with the bridge... It keeps saying that my time offset is "4". When I change it to "+2" and I reopen my settings, the time offset is still "4". Furthermore the time on the settings page is displayed 2 hours in advance and so are the comments. Even if I change the setting by hand (through phpmyadmin (time_offset in e107_CPG_config)) it won't change a thing. The settings page keeps telling me that the offset is "4" (see the attachment) and the comments are always timestamped two hours in advance.

Can somebody please point me in the right direction? Maybe V3? What can be causing this problem?

Thanks in advance.
Title: Re: CPG Bridge for e107 0.7x
Post by: Joachim Müller on July 16, 2009, 07:45:54 am
@liquid-motion: please read the thread you're replying to.

@all: this bridge file goes unsupported from the coppermine dev team. Do not ask for support on issues related to bridging with e107. This bridge file is provided on the forums as a courtesy only. Locking