launching cpmfetch from php script in tinyportal launching cpmfetch from php script in tinyportal
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

launching cpmfetch from php script in tinyportal

Started by ric1067, November 04, 2006, 02:31:44 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

ric1067

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

vuud

Quote from: ric1067 on November 04, 2006, 02:31:44 AM
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

Whats a scripot?  Is that part of tinyportal?

And what following script?  What have you tried?
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

ric1067

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

vuud

Quote from: ric1067 on November 04, 2006, 10:34:45 AM
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

I should have also specified... what happens when you try this....  Sort of like bringing your car to a mechanic and saying its broken, what's wrong with it?  Without telling him the symptoms, letting him touch it, see it, etc...  Also what kind of car you have (what version of cpmfetch?  if you have the install, I am guessing its a development version).

To others, we really need this sort of information when posting a request. 




Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

ric1067

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

vuud

Quote from: ric1067 on November 05, 2006, 08:58:19 PM
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

If you are really good with CSS, you may be able to do something with style sheets, but I think you are going to sort of be out of luck on this one... cpmfetch outputs in table cells, so each photo and subtitle are in one cell.

I can't think of any easy way to do it, but you can set styles and such, so maybe there is a way to do it that way...
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

littlefeather

If I could... I might have a solution for this...

I am familiar with TinyPortal, and have noticed you created a php block for your code

Here is the code you inserted..

<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,3);
$objCpm->cpm_close();
?>



Try it this way


include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,3);
$objCpm->cpm_close();



without the php tags ( it is already a php block so no need for those)

Hope this helps..



vuud

Quote from: littlefeather on November 15, 2006, 07:47:35 PM
If I could... I might have a solution for this...

Everyone is welcome, and encouraged to help figure stuff out!  In fact, in some cases other users are the only ones that can help.  So help away!  Karma points for you
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

auvn

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();

vuud

Quote from: auvn on December 22, 2006, 04:40:09 AM
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();

Probably not off the bat - but if you can post me a url of what the url would look like, I may be able to tell you how to do it.


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

auvn

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


vuud

Quote from: auvn on December 26, 2006, 05:17:46 PM
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




I guess you have to target the iframe... I know not how to do that.  Can it be done from a normal A tag target attribute?

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco