Advanced search  

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

Pages: 1 ... 46 47 48 49 [50] 51 52 53 54   Go Down

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 965857 times)

0 Members and 1 Guest are viewing this topic.

David McKim

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #980 on: August 05, 2006, 02:31:02 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...

Code: [Select]
<?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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #981 on: August 05, 2006, 06:22:17 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.




Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #982 on: August 05, 2006, 07:05:01 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #983 on: August 05, 2006, 04:34:24 pm »

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.

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #984 on: August 05, 2006, 09:30:47 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #985 on: August 05, 2006, 10:07:45 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.

Quote
I 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.


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #986 on: August 08, 2006, 07:37:44 am »

I'm getting the following error when trying to call a random image:
Code: [Select]
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?


Logged

m85021

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #987 on: August 08, 2006, 07:41:24 am »

I'm getting the following error when trying to call a random image:
Code: [Select]
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....
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #988 on: August 08, 2006, 04:14:19 pm »

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
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #989 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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #990 on: August 09, 2006, 03:56:21 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.



Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #991 on: August 09, 2006, 04:55:35 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!!
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #992 on: August 09, 2006, 07:21:25 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
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #993 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #994 on: August 09, 2006, 09:33:31 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.






Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
how to display the tittle of images
« Reply #995 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.

Code: [Select]
<?php 

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

Logged

haribo85

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #996 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:

Code: [Select]
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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: how to display the tittle of images
« Reply #997 on: August 10, 2006, 03:23:38 pm »

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.

Code: [Select]
<?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


Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #998 on: August 10, 2006, 03:25:38 pm »

Hi,

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

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

Code: [Select]
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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #999 on: August 10, 2006, 03:32:20 pm »

Thank you very much.
Logged
Pages: 1 ... 46 47 48 49 [50] 51 52 53 54   Go Up
 

Page created in 0.03 seconds with 20 queries.