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 ... 38 39 40 41 [42] 43 44 45 46 ... 54   Go Down

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

0 Members and 6 Guests are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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

geltab

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

"non-randomized fashon"

Can you word this differently.  What do you want?

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

" 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?
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

geltab

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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?


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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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

cgc0202

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 199
Resolution of large size photos
« Reply #827 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Resolution of large size photos
« Reply #828 on: May 25, 2006, 03:42:58 am »

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




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: Resolution of large size photos
« Reply #829 on: May 26, 2006, 02:49:40 pm »

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.

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

cgc0202

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 199
Re: Resolution of large size photos
« Reply #830 on: May 27, 2006, 01:13:49 am »

Hi Vuud,

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

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

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?


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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Resolution of large size photos
« Reply #831 on: May 28, 2006, 07:30:11 am »

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

Your page shows this:

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

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



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

cgc0202

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 199
CPM Test Page #2c: Album- & Category-specific Photos, Photo-framing, etc.
« Reply #832 on: May 29, 2006, 08:54:46 am »

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
Logged

dcross

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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

dcross

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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

Ruiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Ruiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

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

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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.
« Last Edit: May 30, 2006, 07:28:59 am by GauGau »
Logged

Ruiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5

ok,thanks very much!
Logged
Pages: 1 ... 38 39 40 41 [42] 43 44 45 46 ... 54   Go Up
 

Page created in 0.032 seconds with 22 queries.