TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 429
  • Total: 429

Random photos from coppermine

Started by carver, September 22, 2005, 01:32:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

You can also look at the forum support on Coppermine_gallery.net, they have some great threads about how to use cpmFETCH ;)

marinelife

Thanks I have it downloaded and can the test.php file and got it to work but the install.php does not put say
/** * RELEASE VERSION: 1.6.4 * * This is the installation program for CpmFetch. * * Usage: Call this file from a web browser and follow the instructions * */

Anyone have this before, I have yet to find the answer

G6Cad

HMM, cant say i have had any problems with that when i tried.
But the first place i would have looked for the answers for cpmfetch would be on Coppermine forums as it's their software and not TP's ;)

marinelife

I have been looking there and was just hoping someone here has seen it. Did you run install.php when you used it

G6Cad

If i remember correct it was install.php

But you have to place the cpmfetch in your forum folder so the url to the file will be like
/forum/cpmfetch/install.php

I found the link to the site where i got mine from.
Browse there and read all about cpmfetch there.
http://cpmfetch.fistfullofcode.com/projects/copperminefetch/index.php

marinelife

Yeah I have been reading that site, I downloaded a dev version and the install ran but no test images loaded so I am looking into that now

Lonesome Jim

Quote from: evillair on February 26, 2006, 11:14:10 PM
I finaly got this to work but it's only grabbing my uploaded images.
I've tried changing some of the values like it said in the readme but none of it works. Anyone else having this?

Here's what I am using. (Teck's code he posted, slighty changed)

echo '<div align="center">';
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/galleries/");

$objCpm->cpm_unlock_private(); /* <--I've tried setting this to (true) but it gives me errors.*/

echo ' <div align="left">';
echo ' <b>Stats</b><br>';
$objCpm->cpm_formatStats("Albums: <b>%a</b> <br> Images: <b>%f</b> <br> Hits: <b>%v</b><br><br>");

echo '</div><div align="left"><b>Random Reference</b><br>';
$options = array( 'subtitle' => 'Name: <b>%t</b><br> Author: <b>%o</b> <br> Here since <b>%D</b> days <br>' , "imagestyle" => "test1");
$objCpm->cpm_viewRandomMediaFrom ( 1, 1, $source = "", $options);

$objCpm->cpm_close();
echo'<p><a href="http://pixelmorgue.com/galleries/index.php?cat=8"><u>Photo References</u></a></p></div></div>';


I've went through all the setting making sure guest have access and that it reads from all categories but no luck.


This one worked for me!

JCphotog

Hi.  I added the short random pic script at the beginning of this thread here: http://www.tinyportal.net/smf/index.php?topic=822.0 Do you have any thoughts on how I can limit the thumbnails displayed to the highest rated images?

Thanks so much!

Maya

I have read a ton on cpmfetch and 'random image scripts'

Do I really need fetch or is the random script okay ?

I know there is a few more functions with fetch than just 'show pics'.

I actually have a random image script running fine now, but the calls are from smf gallery lite. Had to breakdown and go with coppermine because it just has more stuff..hehe

don't want to install what I don't need is why Im asking..

Jump1979man

#109
Quote from: blink on July 13, 2006, 05:53:41 PM
here is my code, you can change the amount of thumbs to show.Ã,  It sound like a coppermine permissions issue though.
Quoteprint "<CENTER>";

include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');

$objCpm->cpm_viewLastAddedMedia (1,8,array("imagesize" => "Thumb","imageheight" => "75","imagewidth" => "75","windowtarget" => "_new","alttag" =>"From Album: %a Added: %w"));
$objCpm->cpm_close();
print "</center>";

This code works GREAT!!Ã,  Thanks!


Is there any way to make it so the pics can be bigger without being blurry?

This website is proudly hosted on Crocweb Cloud Website Hosting.