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

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.

Maya

Okay...almost there... installed cpmfetch, and used this code

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


Have the gallery coming in to an i-frame right now and it looks great, but when u click any of the pics in this block, it takes u to a new page of just the coppermine gallery.

Any way to make it call up the 'gallery' iframe page?

gumdrop

Here is another "incarnation"
I like to live life on the edge so this works with cpmfetch v1.94

echo "A random selection:<CENTER>";
chdir("gallery/cpmfetch/");
include "cpmfetch.php";                   
$objCpm = new cpm();
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
chdir("../../");
echo "</center>";


**Please don't ask me for support...because I only wear it.

Gargoyle

Quote from: Maya on November 18, 2006, 06:28:08 AM
Okay...almost there... installed cpmfetch, and used this code

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


Have the gallery coming in to an i-frame right now and it looks great, but when u click any of the pics in this block, it takes u to a new page of just the coppermine gallery.

Any way to make it call up the 'gallery' iframe page?

None that I know of at the moment.

auvn

Hi,
everytime when i try to run install.php. The following message come up
/** * RELEASE VERSION: 1.6.4 * * This is the installation program for CpmFetch. * * Usage: Call this file from a web browser and follow the instructions * */
Could anyone explain how I can run install file?
the cftest.php run smoothly but I can't install. Don't know why

G6Cad

Just in case you missed it ;) This is the TinyPortal support forum, not Coppermine support forum.
So if you run into problems with coppermine installs or mods for coppermine, i suggest you seek help on their support forum. A big possibility is that the help you need are allready there to in writing in the CPMFetch support thread.

auvn

thank guys,
Although I not be able to control its look and its location when click on the image, fnally, cpmfetch run in my tinyportal block

auvn

everytime when I click on a random image,fetched from coppermine gallery to front page, a new window with coppermine gallery pop up. Is there anyway or code for use to allow you to go to the coppermine gallery framed in SMF without new pop-up window
thanks

G6Cad

Read through this thread, or use the search, the answer is here some where

auvn

Hi G6,
I read the whole thread twice. I knew someone ask the same question but no answer or solution yet. So I re-ask the question in case some one can update the answer.
My working site: www.kientruc.info

Gargoyle

Quote from: auvn on December 15, 2006, 03:36:18 AM
everytime when I click on a random image,fetched from coppermine gallery to front page, a new window with coppermine gallery pop up. Is there anyway or code for use to allow you to go to the coppermine gallery framed in SMF without new pop-up window
thanks


You would have to edit the coppermine files to change that behavior.. Perhaps CPM fetch. Not sure which but I would ask on the coppermine boards to see if someone there knows.

This website is proudly hosted on Crocweb Cloud Website Hosting.