Advanced search  

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]

Pages: [1]   Go Down

Author Topic: launching cpmfetch from php script in tinyportal  (Read 12050 times)

0 Members and 1 Guest are viewing this topic.

ric1067

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
launching cpmfetch from php script in tinyportal
« 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #1 on: November 04, 2006, 05:44:28 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?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: launching cpmfetch from php script in tinyportal
« Reply #2 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #3 on: November 05, 2006, 02:26:43 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. 




Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: launching cpmfetch from php script in tinyportal
« Reply #4 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #5 on: November 05, 2006, 10:05:45 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...
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: launching cpmfetch from php script in tinyportal
« Reply #6 on: November 15, 2006, 07:47:35 pm »

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..

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


Try it this way

Code: [Select]
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..


Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #7 on: November 15, 2006, 10:58:56 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: launching cpmfetch from php script in tinyportal
« Reply #8 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();
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #9 on: December 22, 2006, 06:36:55 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.


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: launching cpmfetch from php script in tinyportal
« Reply #10 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

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: launching cpmfetch from php script in tinyportal
« Reply #11 on: December 27, 2006, 12:21:57 am »

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?

Logged
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
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.