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: 550
  • Total: 550

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.

yelegen

G6 Thank you

but your answer is not what I am looking for.

İf under these conditions I ask coppermine people they will say the very same thing and turn me around to TP.

I am using TP block, using a code designed for it and with those I am calling pictures so the real coding is on our side.

and all works just need to get the pictures in order so they look decent, I am sure there is a code here somewhere that may do just that.

maybe you can direct me to a section  where I may search for it.

thank you again


G6Cad

Quotejust need to get the pictures in order so they look decent

I really wish i could given you a better answer, and i AM sorry for the Coppermine site to send you her even if they should know better by now that TP not SMF have any image handling tools builded in like the Coppermine script have.
The image engine is their work with in coppermine, (and offcourse the server you are on need to have support for it)

But TP itself have no such thing as an image handler for resize or crop images to fit blocks or articles.
You will have to use some sort of external script to gain what you want. And i really do think Coppermine knows this a lot more then we do here  :-\

SteveW

Hi - I can see it has been asked in this thread but I couldnt see a solution yet..

When someone clicks on the image (thumbnail) in tinyportal block, it loads coppemine without tinyportal header/footer etc (not wrapped)

Is there a solution for this or would it be to do with cpmfetch?

khoking

Quote from: SteveW on April 22, 2007, 10:39:37 PM
Hi - I can see it has been asked in this thread but I couldnt see a solution yet..

When someone clicks on the image (thumbnail) in tinyportal block, it loads coppemine without tinyportal header/footer etc (not wrapped)

Is there a solution for this or would it be to do with cpmfetch?

I am having the same problem. When someone click on the image in my TP front page, it link to a double // in Coppermine Gallery, resulting the header of my Gallery not shown.

Eg.
Correct --> http://pentaxworld.com/gallery/index.php
Incorrect --> http://pentaxworld.com/gallery//index.php

Anybody knows how to correct this? The double // is causing the problem.

SteveW

Quote from: khoking on April 24, 2007, 06:10:29 AM
I am having the same problem. When someone click on the image in my TP front page, it link to a double // in Coppermine Gallery, resulting the header of my Gallery not shown.

I would say that is a CPMfetch issue in the config file. Check the paths in the config file and remove the / and retry?

khoking

Quote from: SteveW on April 24, 2007, 06:31:31 PM
I would say that is a CPMfetch issue in the config file. Check the paths in the config file and remove the / and retry?

Thanks SteveW! You are right! There is // in the cpmfetch_config file. I edited and reupload the file and the random images are pointing to the correct URL without the // now.

Many thanks for the great help and support! O0

lowandslow

Trying to use this from the org code on the first post to exclude my own personal gallery.

AND aid <> 111 and owner_name='Carver'

In the URL, it looks like the gallery number is ?cat=10002

It that the right number? It doesn't seem to be excluding the photos.

Thanks

fangweile

how to make the randoms photos from coppermine to show vertically instead of horizontally.

Mintschi

#158
Hi,

here's my little Block Code. It opens an Album inside the Portal after clicking the Link in the Block.

echo "<CENTER>";
chdir("../coppermine/cpmfetch/"); //Inset Path to Your CPMFETCH Dir here!
include "cpmfetch.php";                   
$objCpm = new cpm();
$objCpm->cpm_viewRandomMedia(1,1,array("imageheight" => "100"));
$objCpm->cpm_close();
chdir("../../");
global $context, $settings, $options, $scripturl, $txt;
$current_action = 'home';
if (in_array($context['current_action'], array( 'gallerie')))
$current_action = $context['current_action'];
$current_action == 'gallerie' ? 'active_back' : 'back';
echo  ' <a href="', $scripturl, '?page=Coppermine%20Galerie">Enter Gallery</a> '; //Open Coppermine standalone in Your Browser and insert the String after "?page=" which is pointing to Your Album
echo "</center>";


regards,
Mintschi

warhonowicz

Quote from: fangweile on June 08, 2007, 05:39:38 AM
how to make the randoms photos from coppermine to show vertically instead of horizontally.

cpm_viewRandomMedia(1,1 <= the first 1 is the number of rows, the second 1 is the number or columns ... 1,4 gives you one row with four pictures, 4,1 gives you one column with four pictures

This website is proudly hosted on Crocweb Cloud Website Hosting.