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: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 385
  • Total: 385

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.

blink

I have put random images on my blocks with the help of this site, what I need to do now is make the thumb images on my site the same size?  any ideas on what but to edit in cpmfetch to make them the same?

Regards
Blink

Gargoyle

There is a readme file in the cpmfetch download that explains all of this and how to do it.

blink

I do my best to search and try things myself Gargoyle and only ask for help if I am really stuck.  I have struggled with the help file, I have spent all day trying to do this myself and at a last resort I asked for help. 

Gargoyle

Oh I see... I only suggested the help file because it took me about 3 hours to figure it all out and I don't remember most of what I did to get it to work right... LOL!!

Anyway here is the code from my block on my site that I was using... It's a left or right block and displays additional info when you hover etc... Maybe this will help you out some ??


print "<center>";
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/your gallery directory name");
$objCpm->cpm_viewRandomMedia(1,1,array("imagesize" => "Thumb","windowtarget" => "_new","subtitle" => "Added by %o ( %S KB )","alttag" =>"From Album: %a Added: %w"));
$objCpm->cpm_close();
print "</center>";

blink

Thanks for that but I have 6 images in a centre block and the thumbs are different sizes.  I would like to make the thumbs a bit neater and all the same size.  If you could point me in the direction I will play about with it.

Regards

Blink

Gargoyle

my cpmfetch files are on my other computer... Gimmie some time and I'll find the section that deals with that..


Gargoyle

Well it took me a bit to find my files but this is the code I have "working" on my site. It is one row of 6 images and they are all sized the same. I have tested this and it has worked well for me so hopefully this is what will help you.Ã,  ;)


print "<center>";
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("/your gallery directory name");
$objCpm->cpm_viewRandomMedia(1,6,array("imagesize" => "Thumb","imageheight" => "75","imagewidth" => "100","windowtarget" => "_new","alttag" =>"From Album: %a Added: %w"));
$objCpm->cpm_close();
print "</center>";

blink

I appreciate the time you have spent as it did the trick.  I am very grateful.

Blink

Gargoyle

I'm just glad I could finally help someone.. :D

This website is proudly hosted on Crocweb Cloud Website Hosting.