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

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 6 Guests are viewing this topic.

vuud

Quote from: Daworm on May 20, 2006, 05:27:36 PM
Hey Vudd -- long shot.

You haven't be chance updated and found a work-around for the bridging issue have you?

I have a solution, and its partially integrated.  But its in the next release which I keep putting off to write and installer script for.

I've been eyeing it more and more though, so hopefully it will be soon


vUUd
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

geltab

Quote from: vuud on April 05, 2006, 04:20:35 AM
"non-randomized fashon"

Can you word this differently.  What do you want?

Thanks
" ORDER BY p.filename LIMIT 0,$count";  ;)

vuud

Quote from: geltab on May 21, 2006, 08:38:07 PM
" ORDER BY p.filename LIMIT 0,$count";  ;)

I don't have anything in there to do the order by filename. 

Would filename be the best way to sort though?  Wouldn't by date added be better?
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

geltab

Quote from: vuud on May 22, 2006, 12:40:08 AM
I don't have anything in there to do the order by filename. 

Would filename be the best way to sort though?  Wouldn't by date added be better?


Ordering by date still produces images from a gallery in random order on a new page. I needed a setup where I could post an entire gallery to a new page in an ordered series..for example: 01.jpg 02.jpg 03.jpg 04.jpg...etc in a decending order. Sorting images by file name worked out very nicely for this situation.

vuud

Quote from: geltab on May 22, 2006, 11:18:20 AM
Ordering by date still produces images from a gallery in random order on a new page. I needed a setup where I could post an entire gallery to a new page in an ordered series..for example: 01.jpg 02.jpg 03.jpg 04.jpg...etc in a decending order. Sorting images by file name worked out very nicely for this situation.

Really?  I am referring to the mtime in the cpg tables... To be honest I am not 100% sure how the albums end up displaying photos... does CPG do it by filename?

Can someone clarify this for us?


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

Joachim Müller

there are both admin settable default sort orders, custom sort orders per album and user-preferences (cookie-driven) taken into account.

vuud

Quote from: GauGau on May 22, 2006, 08:54:51 PM
there are both admin settable default sort orders, custom sort orders per album and user-preferences (cookie-driven) taken into account.

Oh well that just simplifies my job :)

Thanks for the info.
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

cgc0202

Hi Vuud,

I finally understood how to vary the sizes of the random photos, including creating  random large size photos

http://bios.treasuresoftheinternet.org/toti-test2.php 

What I noticed however was that the resolution was not very good in    large size photo as shown in the Test2 page:

http://bios.treasuresoftheinternet.org/toti-test2.php

It appears, based from the features I used in the gallery that the low resolution of the large size photos was because they were based from the thumbnail nail photo rather than the intermediate (normal size) or original photo.  I also included other observations in the    large size photo  in the Test2 page

[http://bios.treasuresoftheinternet.org/toti-test2.php 

including other photos of various sizes, for comparison of the resolution.

Thanks.

cgc0202

vuud

Quote from: cgc0202 on May 24, 2006, 11:33:14 PM
Hi Vuud,

I finally understood how to vary the sizes of the random photos, including creating  random large size photos

http://bios.treasuresoftheinternet.org/toti-test2.php 

What I noticed however was that the resolution was not very good in    large size photo as shown in the Test2 page:

http://bios.treasuresoftheinternet.org/toti-test2.php

It appears, based from the features I used in the gallery that the low resolution of the large size photos was because they were based from the thumbnail nail photo rather than the intermediate (normal size) or original photo.  I also included other observations in the    large size photo  in the Test2 page

[http://bios.treasuresoftheinternet.org/toti-test2.php 

including other photos of various sizes, for comparison of the resolution.

Thanks.

cgc0202

Try "int" instead of normal in the settings you are using. 

For some reason I never went with normal, but termed it "intermediate"

have you seen the online doc's at http://cpmfetch.fistfullofcode.com ?  They leave some stuff to be desired but overall can be good




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: vuud on May 25, 2006, 03:42:58 AM
Try "int" instead of normal in the settings you are using. 

For some reason I never went with normal, but termed it "intermediate"

have you seen the online doc's at http://cpmfetch.fistfullofcode.com ?  They leave some stuff to be desired but overall can be good

Have we gotten up to the thing about requiring thousands of files?  I think that will be an easy one.

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

cgc0202

Hi Vuud,

You responded to my previous post ( http://forum.coppermine-gallery.net/index.php?topic=19564.msg147654#msg147654 ):

Quote from: vuud on May 25, 2006, 03:42:58 AM
Try "int" instead of normal in the settings you are using. 

For some reason I never went with normal, but termed it "intermediate"


Just as a reference point for this clarification, each unique photo I have right now has the following versions in Coppermine:


  • the original (no prefix);
  • an "intermediate" (prefix: "n_");
  •   a "thumbnail" (prefix: "t_"); and,
  •   a "mini" (prefix: "m_").
Note that I changed the prefix  slightly  from "normal_ -> "n_" for the "intermediate" and (prefix: "thumb_") -> (prefix: "t_") for the "thumbnail"

Can you please clarify what you mean by: "Try "int" instead of normal in the settings you are using."


In your previous response to another issue:

http://forum.coppermine-gallery.net/index.php?topic=19564.msg145660#msg145660

Quote from: vuud on May 13, 2006, 07:07:07 AM
In that one your thumbnails are called t_ and your normal are called n_

That is why it is not finding thumbnails I think. 

You need to override the naming for thumb_ and normal_

Add in

$objCpm->cpm_setMediaPrefixes("t_", "n_");

after the new statement (that creates the object)

I already have added:  $objCpm->cpm_setMediaPrefixes("t_", "n_");

Did you mean, I have to change the prefix of the "intermediate"  size photos from "n_" to "int_"? Or, something else?

This is a related side issue: Is there a mechanism how the CPMFetch program recognize when to use the thumbnail or the "intermediate size -- depending on the specified width?


Quote from: vuud on May 25, 2006, 03:42:58 AM
have you seen the online doc's at http://cpmfetch.fistfullofcode.com ?  They leave some stuff to be desired but overall can be good
I went over the entire online documents (including the FAQs) awhile back when I decided to use CPMFetch, and before I posted here.  Since I do not have any programming background (and do not understand complex PHP statements very well), the way I learn stuff that I do not understand is to recreate them one at a time. This was the reason why I create the "Test files"  -- each exploring a specific topic ending with questions that are not yet resolved.  The succeeding "test php's" build from previous ones.

Thanks.

cgc0202

P.S.

I will show you "Test php 4" next time; my self-tutorial dealing with how to specify the category and/or album that goes in the Fetched materials.  For some reason, when I use the "php statements" used in the online documents -- to specify the category/album -- they do not seem to work.

I will respond to your other post separately so that the two issues will not be mixed up.

vuud

Quote from: cgc0202 on May 27, 2006, 01:13:49 AM
Can you please clarify what you mean by: "Try "int" instead of normal in the settings you are using."

Your page shows this:

<?php
$source 
"album=13";
$styleguide = array( //"TABLESTYLE" => "photoclip",
//"rowstyle" => "photoclip",
"cellstyle" => "photoclip",
"linkstyle" => "photoclip",
"alttag" => "Living Things",
"imagestyle" => "photoclip",
"imagesize" => 'normal',
"imagewidth" => '500');
$objCpm->cpm_viewRandomMedia (1,1,$styleguide);
?>



Modify the imagesize entry to look like:


"imagesize" => 'int',


The imagewidth one will also force the browser to resize the image to 500.  So right not its getting thumbnails and enlarging them.  If your normal files are about the right size I would suggest removing that entry and letting the image size stay where it is.

Quote
This is a related side issue: Is there a mechanism how the CPMFetch program recognize when to use the thumbnail or the "intermediate size -- depending on the specified width?

Yes, its the "imagesize" thing shown above.



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

cgc0202

I am very grateful with all the help you provide so far Vuud. 

I followed your suggestion above. I also re-read Fist Full of Code (FFoC): CPMFetch: http://www.fistfullofcode.com/projects/copperminefetch/index.php, focusing on   "Selecting specific albums and categories: http://www.fistfullofcode.com/projects/copperminefetch/manual/ch05s02.html   and adapting the "Tips and Tricks" http://www.fistfullofcode.com/projects/copperminefetch/tips.php.

CPM Test Page #2c for TOTI (Album- & Category-specific Photos, Variable sizes, and Photo-framing):

http://mmedia.treasuresoftheinternet.org/cpmfetch-tutorials/toti-test2c.php

summarizes what I have learned so far in understanding CPMFetch since we started interacting in this forum. 

It is not perfect yet, as you can see. There are more room for improvements.  However, the CPM Test Page #2c for TOTI is a dummy demo for an external webpage that is in the same domain or subdomain as Coppermine (CPG) and  CPMFetch.  Unlike my former plan, I have rearranged the locations of the components of my websites so that  Coppermine (CPG) and  CPMFetch would be in the same subdomain as my related websites (based on Joomla, Calendar, Forum, etc.).

I wonder if there are sites where I can get more tutorial on how CPMFetch can be bridged with the aforementioned applications  (i.e., Joomla, Calendar, Forum, etc.).  While I do not have any scripting background, and it may take me much longer than most people to learn something, I am able to "clone" a script for a specific purpose (e.g., CPM Test Page #2c for TOTI),  if I can have access to a well-written tutorials, just like your "Fist Full of Code (FFoC): CPMFetch"

While it will be quite different from page to page, as well as more complex and elaborate, all the actual applications I will have for CPMFetch  are already outlined in  CPM Test Page #2c for TOTI (Album- & Category-specific Photos, Variable sizes, and Photo-framing):

http://mmedia.treasuresoftheinternet.org/cpmfetch-tutorials/toti-test2c.php

In this sense, what I wanted to do is now technical feasible.  In relation to this project, my next project would be to attempt to port CPMFetch  to Joomla.  Would it be possible to show you some relevant information from Joomla random photos "module" to get some ideas from you on how I can use that to port  CPMFetch  to Joomla?

Thanks again for your continued help and patience.

cgc0202

dcross

New to this and trying to get the cftest.php to work.  Please see http://www.borgcube.co.uk/cpmfetch/cftest.php for details.  Since the test page tell you what my system is I'm not putting it here in the post.

Any help appreciated.

David.

dcross

Umm, for some reason I can't edit my own post, anyway an update.

I have fixed the dao.php issue, but I still get the 'Notice: Undefined index: SCRIPT_FILENAME in c:\domains\borgcube.co.uk\wwwroot\cpmfetch\cftest.php on line 214 ' error.

Do I need to worry about this, I can get images now?

Ruiz

if i want to display more photos from cpg on html file,how could i do?


Ruiz

I see,but I can hardly find the method...

Only one pics could dispay on the html file...

Joachim Müller

As suggested on the other thread: if the page you're trying to display content from Coppermine on is not PHP-enabled (and a plain HTML page usually isn't), then you simply can't use cpmFetch. Stay out of this thread in that case and add regular HTML code to that page then. If the page actually is PHP-driven, then read the cpmFetch documentation and do as suggested there: just saying "I don't understand" just isn't enough if you expect a solution. Posting a link and what you did might be a good start.