coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: HoundSP on June 14, 2006, 07:40:57 PM

Title: Coppermine after bridging.
Post by: HoundSP on June 14, 2006, 07:40:57 PM
After I bridged coppermine with IPB 2.0.3 some coppermine functions seems missing, such as view specific user last uploaded file or letest comments. After clicking on the uploader name, it redirect to the IPB user profile. Is there anything I can do whith this issue?

Another problem is OnlineStats fails after bridging. It shows "There was an error while processing a database query". I assume that because the gallery use IPB usr database, actually I only need the currently online username not the whole stat. Is there anything I can do whith this issue?

Thanks in advance.  ;)
Title: Re: Coppermine after bridging.
Post by: Joachim Müller on June 16, 2006, 10:10:46 AM
1) When requesting bridge support - mandatory! (http://forum.coppermine-gallery.net/index.php?topic=24032.0)
2) One issue per thread!
3) Online Stats is a mod that doesn't come with the coppermine packages. Mods don't get supported on the regular support board, but on the thread that deals with it (http://forum.coppermine-gallery.net/index.php?topic=5373.0). Enable debug_mode to find out what query actually fails. Use the plugin version (http://forum.coppermine-gallery.net/index.php?topic=26532.0) instead of the mod for upgrade stability
4) Missing profile when bridged and subsequent missing links to "last uploads by user" is a known issue/missing feature.
Title: Re: Coppermine after bridging.
Post by: HoundSP on June 16, 2006, 11:59:01 AM
Thanks a lot for your support! Finally I get the onlinestats work  ;)
* Sorry that I didn't read through the "Who is online" plugin *experimental" topic, my fault....  :'(

Reclarify it again (Thanks to nibbler and proxenus)
in onlinestats/codebase.php

Line 119:
find :
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}");
replace with :
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);


Line 130:
find :
$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1");
replace with :
$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1", $cpg_udb->link_id);

Original thread : http://forum.coppermine-gallery.net/index.php?topic=26532.60
Title: Re: Coppermine after bridging.
Post by: Joachim Müller on June 18, 2006, 11:05:39 AM
Thanks for returning and resolving your thread.