CpmFetch - Issues with coppermine bridging CpmFetch - Issues with coppermine bridging
 

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

CpmFetch - Issues with coppermine bridging

Started by vuud, January 20, 2006, 09:23:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Discussions of problems with cpmfetch when cpg is bridged with something (anything else)
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

SpoiledMutts_Com

I am having problems showing all pics or set number of pics (regardless if random or latest) from all albums in a category.  I would actually like to show all or a set number of the latests pics that are public.  I am running the latest stable versions of everthing, here is the code I have used.  Coppermine is bridged with SMF, I have tried all the commented lines but regardless of which I use it only shows the pics from the first album made in the category (there are only 2 categories).

echo '<div align="right">';
include "/var/www/html/photogallery/ssi/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/photogallery");
//$objCpm->cpm_viewRandomMedia(5,1);
//$objCpm->cpm_viewLastAddedMedia (5,1);
//$objCpm->cpm_viewLastAddedMediaFrom (5,1, "cat=1");
//$objCpm->cpm_viewLastAddedMediaFromCategory (5, 1, 1);
//$objCpm->cpm_viewRandomMediaFrom(5,1,"cat=1");
$objCpm->cpm_viewLastAddedMediaFromCategory(18,1,2);
$objCpm->cpm_close();
echo '</div>';


Like I said, I have tried all the commented out ways, I get pics but only from the first album created in those categories.  I am wanting to show all latest pics in all public categories and albums.  Thanks for any help.

SpoiledMutts_Com

Nevermind, after reading countless hours of irrelevent posts I saw where the aurthor said they would probably not fix this problem so I just wrote my own script to show the latest additions to my gallery on my homepage.

Goosemoose

How did you fix this problem? I have the exact same issue. I have bridged with SMF and all I ever see is items posted from the first album. I thought it was just me! Where did you see that vuud won't fix this problem?

Thanks

Goosemoose

I did quite a bit of reading and it seems that the problem is that there are no users in the coppermine table. Why does this matter If I'm trying to get images from a category?  Any ideas on ways around this?

Thanks

Goosemoose

#5
Ok, I figured this out and have made a post here: http://www.simplemachines.org/community/index.php?topic=73366.0 . Now all the cpmfetch functions work with the smf & coppermine bridge, yeah!!! It should be very easy to look at my changes and make them for all the other bridges.

websmart

Every test of cftest.php was shown 'pass' even though it displays following error where it is supposed to show thumbnails :

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


What goes wrong ?

cpmfetch version - 1.6.2

Goosemoose

Websmart, you are posting this in the wrong thread. Look through the instructions for cpmfetch, it explains a few lines you need to comment/uncomment to get cpmfetch to work.

websmart

I did as per CPMFETCH instructions said. Its test page
displays OK for everything. Eventhough it does not
bring thumbnails.

Please give me link where to post this.

beleebala

#9
Quote from: websmart on February 27, 2006, 03:33:09 AM
Every test of cftest.php was shown 'pass' even though it displays following error where it is supposed to show thumbnails :

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


What goes wrong ?

cpmfetch version - 1.6.2

Found the answer at http://forum.coppermine-gallery.net/index.php?topic=19528.msg131918#msg131918. You need to comment out something in the cpmfetch_dao.php file. Thanks.

Thanks!

IIIBradIII

#10
Hey folks.  First of all, thanks for this wonderful mod!  We can't wait to get it going on our site!

We're running Coppermine 1.3.x bridged w/ IPB 1.2.  The test file says everything is fine, but it displays no images.  It also displays no errors though, even when I add the code at the top of it to force PHP errors.  Any thoughts?

EDIT: Nevermind, got it working.  Just had to make some changes to the queries of the member table on lines 57 & 96 of cpmfetch_dao.php.

Sublevel4

What changes did you make to those lines?

jaiak

Hello

I have coppermine 1.4.4 bridgeg with phpBB 2.0.19 and I comment and I have read the release notes and I comment this lines, but I execute the test file and thubnails don't appear:

In the same server, I have a coppermine not bridged and functionally ok!! :)

What is the mistake?

Sorry for my bad english and regards from spain


jaiak

Hello agaain

I post again for other users with my same problem.

i "desbridgeg" my coppermine, I add other oser more the administrator and I "rebridged" my coppermine and it's ok!!

Regards and sorry again for my bad english :P

Nicolio

I'm having the same problem, but I'm not sure I understand how you solved it.  What were the exact steps?

jaiak

hello

1º - desbridged the coppermine and phpbb
2º - add an user for example "asdasd" to coppermine account, (with the admin coppermine account)
3º - bridge again the coppermine and phpbb

However, I don't know is this is 100% correct... for example, the last media $objCpm->cpm_viewLastAddedMedia (1,1); appear the ast media picture add by the admin, not other users...

Regards from spain

blukas

Is there someone who has the detailed solution for the integration with phpBB?
I don't understand what i have to modified in the file cpmfetch_dao.php

Thanks very much!!!!  :)

Sy

Quote from: ribanet on April 10, 2006, 01:15:44 AM
hello

1º - desbridged the coppermine and phpbb
2º - add an user for example "asdasd" to coppermine account, (with the admin coppermine account)
3º - bridge again the coppermine and phpbb

However, I don't know is this is 100% correct... for example, the last media $objCpm->cpm_viewLastAddedMedia (1,1); appear the ast media picture add by the admin, not other users...

Regards from spain

Thanks Ribanet sorted the problem out for me perfectly  ;D

grv

Hello..... I am having a similar problem to the one posted earlier. I have used bridging on Coppermine Photo Gallery and phpBB, and tried using CPMFetch for displaying random images. The test script from CPMFetch works perfectly.

My problem is that the code for displaying the random image is not working. I have copied the exact script snippet as was provided in the documentations, but all it shows is a blank page, no errors, nothing! i am afraid I might have missed some tweaking and setting up along the way.

If anyone has any solutions/hints, I would be more than happy to get a (quick) reply.


Thank you.
I'm Not a genius, why should I suffer?            - Homer Simpson

PABebop


Hello,

Sorry for posting here, I hope this is the correct protocol.  I've been looking for a solution for this all day and can't seem to find one, so I am posting...

I have CPMFetch installed on my server, the cftest file works fine, except it only shows what appears to be the alt tags.  They are linkable, but when I check the properties of the "image", it looks like the root directory is missing. here is what I am getting....

http://albums/NASCAR%20pics8/thumb_nascar27.gif

Clickthrough is linking fine.

I tried using the cfimageget as a test and that works perfectly.

Any idea as to how I can get the root directory to point correctly?

Thanks in advance!