CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 50 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 50
 

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 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

David McKim

Quote from: vuud on August 05, 2006, 12:55:36 AM
No, what you did fixes it.

Yep, horrible error on my part.  It was line 59 in the previous release.   Good catch, and your right - its line 61.

Well, that is progress anyway. 


This should be the code you are using...


<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewLastAddedMedia(3,1);
$objCpm->cpm_close();
?>




Now, if you are bridged with phpBB then you have a whole 'nother problem that will cause you even more grief, but will cause me considerably less since I will know what is wrong.

Thank you for all of the support guys.

So by bridged with phpBB do you mean my news system code that is only on index.php? or do you mean the includes we made to devide the sections of the template up into 4 parts? the 5th being the actual page content.

Is there anything I can do to get my images to actually show? Am I screwed?

vuud

Quote from: David McKim on August 05, 2006, 02:31:02 AM
Thank you for all of the support guys.

So by bridged with phpBB do you mean my news system code that is only on index.php? or do you mean the includes we made to devide the sections of the template up into 4 parts? the 5th being the actual page content.

Is there anything I can do to get my images to actually show? Am I screwed?

I don't know exactly what the bridge does or how to set it up.  Basically there is a way to tie cpg into the users from the forum.  If you did that, I can tell you how to fix / get around it.  Probably.




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

David McKim

Quote from: vuud on August 05, 2006, 06:22:17 AM
I don't know exactly what the bridge does or how to set it up.  Basically there is a way to tie cpg into the users from the forum.  If you did that, I can tell you how to fix / get around it.  Probably.

Oh that's what you mean, well yes I had help but we did bridge the forums with the gallery. I hope we can find a way around this, i'll be waiting for your reply.

vuud

Quote from: David McKim on August 05, 2006, 07:05:01 AM
Oh that's what you mean, well yes I had help but we did bridge the forums with the gallery. I hope we can find a way around this, i'll be waiting for your reply.


Three options for you:

(1) De-bridge them (turn off the bridge)

(2) Create the same number of users in Coppermine that you have in your forum... just use the cpg administration tool.  Good if you only have a small number of users.

(3) Wait till a version of cpm comes out that supports the bridging.  I may release a new development release this weekened that simply does that uncommenting and takes out the bridge preventing stuff (but reduces functionality for others)

(4) Someone posted the code modifications for dpm_dao file, you can search for them - but do not post here for support on it, or problems you run into.

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

David McKim

Quote from: vuud on August 05, 2006, 04:34:24 PM

Three options for you:

(1) De-bridge them (turn off the bridge)

(2) Create the same number of users in Coppermine that you have in your forum... just use the cpg administration tool.  Good if you only have a small number of users.

(3) Wait till a version of cpm comes out that supports the bridging.  I may release a new development release this weekened that simply does that uncommenting and takes out the bridge preventing stuff (but reduces functionality for others)

(4) Someone posted the code modifications for dpm_dao file, you can search for them - but do not post here for support on it, or problems you run into.

The dao code... It's like finding a needle in a haystack.

Im not quite sure how the forum was bridged with the gallery, so I guess I'll just have to wait for that development release. When you said "(but reduces functionality for others)" what do you mean? It will cause more problems to other people? Or it will be an unstable version and may have errors?

I hope I can count on this dev release, please link it here when it is released. Thank you for all the support up to this point, I really appreciate it.

vuud

Quote from: David McKim on August 05, 2006, 09:30:47 PM
The dao code... It's like finding a needle in a haystack.

Im not quite sure how the forum was bridged with the gallery, so I guess I'll just have to wait for that development release. When you said "(but reduces functionality for others)" what do you mean? It will cause more problems to other people? Or it will be an unstable version and may have errors?

I hope I can count on this dev release, please link it here when it is released. Thank you for all the support up to this point, I really appreciate it.

No, it wont be unstable, but the functionality to pull out into subtitles information about the poster may be impared.

QuoteI hope I can count on this dev release

Not sure what that means, but it will probably solve your problem.

I'd sign up for the update notifications on the cpmfetch web site.  It will be announced there.


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

m85021

I'm getting the following error when trying to call a random image:
Error in getImageTouse: Extension (strtolower): .jpg
File:/****/******/********/html/Pictures[b]//albums[/b]/Boat_Pictures_2005/rsthumb_Picture_032.jpg


I see what the problem is:   I'm not using the default album name,  my albums are all location in a folder called 'rs_albums', but CpmFetch isn't recognizing that fact.  Also, it's placing two forward slashes after /Pictures.

Any idea how to fix this?



m85021

Quote from: m85021 on August 08, 2006, 07:37:44 AM
I'm getting the following error when trying to call a random image:
Error in getImageTouse: Extension (strtolower): .jpg
File:/****/******/********/html/Pictures[b]//albums[/b]/Boat_Pictures_2005/rsthumb_Picture_032.jpg


I see what the problem is:   I'm not using the default album name,  my albums are all location in a folder called 'rs_albums', but CpmFetch isn't recognizing that fact.  Also, it's placing two forward slashes after /Pictures.

Any idea how to fix this?




Disregard the B tags in my above code....

vuud

Quote from: m85021 on August 08, 2006, 07:41:24 AM
Disregard the B tags in my above code....

Hmmm, I never documented this... but then again this is the first time it has come up


cpm_OverridePathToAlbums($_partialUrltoalbum);

$partialUrltoAlbum is the path from the top of your web site.

The double URL should not affect things, and I think its a bug in my code somewhere - but to date has been harmless.

G'Luck
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

marian

When I run cftest I get this error message. Your installation seems correct so far, you should see a small grid of thumbnails from your gallery

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/bymnews/public_html/cpmfetch/cpmfetch_dao.php on line 710
Do you know what it means?

vuud

Quote from: marian on August 09, 2006, 02:48:59 PM
When I run cftest I get this error message. Your installation seems correct so far, you should see a small grid of thumbnails from your gallery

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/bymnews/public_html/cpmfetch/cpmfetch_dao.php on line 710
Do you know what it means?

This has been asked and answered so many times that I just released a new version that does the edit for you.  Look on the web site

http://cpmfetch.fistfullofcode.com in the downloads section - look for release 1.6.3

Mind you that this fixes the forum bridging problems also, but at the expense of being able to access the photo owner information.



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

marian

Quote from: vuud on August 09, 2006, 03:56:21 PM
This has been asked and answered so many times that I just released a new version that does the edit for you.  Look on the web site
http://cpmfetch.fistfullofcode.com in the downloads section - look for release 1.6.3
Mind you that this fixes the forum bridging problems also, but at the expense of being able to access the photo owner information.
Thanks a lot, you must have released the new version about 5 minutes after I downloaded the earlier one!!

vuud

Quote from: marian on August 09, 2006, 04:55:35 PM
Thanks a lot, you must have released the new version about 5 minutes after I downloaded the earlier one!!

I had just heard back from David Kim who was testing the release for me.  I got your post and figured it would be best to just post it up instead of telling you to wait.

So probably 5 minutes after you posted
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

marian

Is it my imagination or is the cfrssget.php file different in 1.6.3? I could swear the one I looked at earlier had a means of doing a feed for a category and not just for the entire gallery.

vuud

Quote from: marian on August 09, 2006, 08:34:51 PM
Is it my imagination or is the cfrssget.php file different in 1.6.3? I could swear the one I looked at earlier had a means of doing a feed for a category and not just for the entire gallery.

You could also be insane.
Are you thinking of rss_lastadded.php ?

This is no specific way to do that, but if you trace through the cfrssget.php file adding in a source should not be too hard.  I would make a copy of the rss_lastadded.php to a new name (like rss_myfeed.php or somethign more descriptive.)

Then modify that line that looks like:

$cfrss->addLastAddedMedia($totalToShow);

To include a source entry:

$cfrss->addLastAddedMedia($totalToShow,"cat=5");

That will do category 5... I think, I did not test it... just peaked at the code quickly.






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

typn1979

Hello,
Below is what i've got in my index, however I also want the image titles displayed. Please tell me how can I insert the image titles right below each image?
Thank you in advance.


<?php 

include "template/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/template");
             $objCpm->cpm_viewLastAddedMedia(5,1,array("imagestyle" => "cpmfetch")); $objCpm->cpm_close();
?>


haribo85

Hi,

Im looking for a straight forward change to my local CpmFetch.

I am using a module within Joomla! (CMS) which contains this:

include $cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery);
$objCpm->cpm_viewRandomMedia(1,1, $options);
$objCpm->cpm_close();
echo "</center>";


What I want to be able to do is to remove the hyperlink that is made to the random image is displayed, all I want is the image and thats it.

Please can someone tell me which part of the CpmFiles this is changed in?

Thanks for your time.

vuud

Quote from: typn1979 on August 10, 2006, 11:23:06 AM
Hello,
Below is what i've got in my index, however I also want the image titles displayed. Please tell me how can I insert the image titles right below each image?
Thank you in advance.


<?php 

include "template/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/template");
             $objCpm->cpm_viewLastAddedMedia(5,1,array("imagestyle" => "cpmfetch")); $objCpm->cpm_close();
?>



Start by reading some of the documentation:

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06.html

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s03.html


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

vuud

Quote from: haribo85 on August 10, 2006, 01:52:32 PM
Hi,

Im looking for a straight forward change to my local CpmFetch.

I am using a module within Joomla! (CMS) which contains this:

include $cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery);
$objCpm->cpm_viewRandomMedia(1,1, $options);
$objCpm->cpm_close();
echo "</center>";


Another question that is also in the documentation

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s04.html






What I want to be able to do is to remove the hyperlink that is made to the random image is displayed, all I want is the image and thats it.

Please can someone tell me which part of the CpmFiles this is changed in?

Thanks for your time.
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