ok, ive gone past the total idiot stage and am now stuck on the idiot stage >
I put the cpmfetch files into my gallery folder, ran the install file which showed me 4 photos,so now, I tried to call this up from tiny portal ( phpbox) but am stuck as i cant get the settings right.
Coppermine is running from a directory called gallery, and the forum ( smf & tiny portal) running from inside a directory called forum
both forum and gallery are in the root directory
so i have
coppermine>cpmfetch
forum>tinyportal
Is there any way to tell me which way the following scripot should be written to get the php script to run from tinyportal to the directory coppermine
oops, script i meant. Tiny portal can launch a phpbox with code in
this is what i entered into it
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,3);
$objCpm->cpm_close();
?>
on line 1 i tried to put an extra dot/hash and put gallery in the path, i also tried taking gallery out of line 2 as suggested when the install test was done. Does this help
ok, stupid time over, ive got the last stable version up and running, the newest beta version would not work at all.
Ive managed to get the last uploaded shots etc on my frontpage with title and author underneath, but i do want to do one other thing. I need to create a frame for each photo ( in its own box) with the infor in a smaller thinner box directly below.
This program has totally blown me away, it is excellent. Ive tried certain codes to make a table but am getting this wrong. Probably as i know very little in coding, please help.
http://digital-imaging-asoc.com/forum/index.php
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,3);
$objCpm->cpm_close();
?>
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,3);
$objCpm->cpm_close();
If I could... I might have a solution for this...
| include "./cpmfetch/cpmfetch.php"; $objCpm = new cpm("/Gallery"); $objCpm->cpm_viewRandomMedia(1,2,array("imagesize" => "Thumb","imageheight" => "60","imagewidth" => "85","windowtarget" => "_new","alttag" =>"From Album: %a Added: %w")); $objCpm->cpm_close(); |
Hi everyone, I have cpmfetch up and running in PHP block in tinyportal for SMF. However there is one issue I would like to fix.
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
p/s: my testing site. www.kientruc.info
code I am using right now
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/Gallery");
$objCpm->cpm_viewRandomMedia(1,2,array("imagesize" => "Thumb","imageheight" => "60","imagewidth" => "85","windowtarget" => "_new","alttag" =>"From Album: %a Added: %w"));
$objCpm->cpm_close();
Hi vuud,
URL for main page SMF/Tinyportal: www.4dkt.com/SMF
URL for gallery page Coppermine: www.4dkt.com/Gallery
URL for gallery framed in Iframe in SMF forum: http://www.4dkt.com/SMF/index.php?action=Coppermine
I hope I guess what are URL correctly.
Thanks for your help