Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: integrating cpmfetch with mini-cms plugin  (Read 8775 times)

0 Members and 1 Guest are viewing this topic.

balafre

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
integrating cpmfetch with mini-cms plugin
« on: March 07, 2007, 05:19:35 pm »

Hi again.
I have a simple question that I tried to solve without success.
If it's not the good place to ask that, just forgive me and forget it.  :-\
My install of Cpmfetch (1.9.11) was ok  :) but I can't include my working cpmfetch php file in an article with mini-cms plugin which allows the administrator to build html pages in Coppermine.
Some people have the same problem as you can see here :
http://cpg-contrib.org/board/index.php?topic=10.new

Do you have any idea about the best way to do it ?
« Last Edit: March 08, 2007, 03:38:26 pm by vuud »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: integrating cpmfetch with mini-cms plugin
« Reply #1 on: March 07, 2007, 05:53:32 pm »

Hi again.
I have a simple question that I tried to solve without success.
If it's not the good place to ask that, just forgive me and forget it.  :-\
My install of Cpmfetch (1.9.11) was ok  :) but I can't include my working cpmfetch php file in an article with mini-cms plugin which allows the administrator to build html pages in Coppermine.
Some people have the same problem as you can see here :
http://cpg-contrib.org/board/index.php?topic=10.new

Do you have any idea about the best way to do it ?

Can you run PHP from a mini-cms page or whatever? 

I've never played with it so I have no idea what its capabilities are

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

balafre

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: integrating cpmfetch with mini-cms plugin
« Reply #2 on: March 07, 2007, 09:14:55 pm »

Can you run PHP from a mini-cms page or whatever? 
I've never played with it so I have no idea what its capabilities are

As far I know, In fact no.
So I have no other choice but include it in a php page.
But when I call the cpmfetch php page outside its directory it doesn't work at all. So I'm stuck. ???

Could you please tell me if this syntax used in a page outside cpmfetch (a level up) to call it is right ?
Code: [Select]
<?php
include('./cpmfetch/page-which-works-in-cpmfetch-directory.php');
?>
It doesn't work for me.
 :-\
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: integrating cpmfetch with mini-cms plugin
« Reply #3 on: March 07, 2007, 09:55:17 pm »

As far I know, In fact no.
So I have no other choice but include it in a php page.
But when I call the cpmfetch php page outside its directory it doesn't work at all. So I'm stuck. ???

Could you please tell me if this syntax used in a page outside cpmfetch (a level up) to call it is right ?
Code: [Select]
<?php
include('./cpmfetch/page-which-works-in-cpmfetch-directory.php');
?>
It doesn't work for me.
 :-\

What?  No.  You want to do the actual CPMFetch code right in that page...

Post the code you are putting in your php page outside the cpmfetch directory and the error you get and I will tell you what is wrong
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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: integrating cpmfetch with mini-cms plugin
« Reply #4 on: March 08, 2007, 08:58:04 am »

You can't use PHP inside MiniCMS-blocks.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: integrating cpmfetch with mini-cms plugin
« Reply #5 on: March 08, 2007, 03:37:20 pm »

You can't use PHP inside MiniCMS-blocks.

Solved!
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

balafre

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: integrating cpmfetch with mini-cms plugin
« Reply #6 on: March 08, 2007, 03:52:38 pm »

You can't use PHP inside MiniCMS-blocks.
Yeah I realised that, Gaugau. I hoped a trick about it but I figure I have to do do it in another way (maybe the  title of this thread is no relevant anymore). Thank you for your answer.
In fact my goal is to display some cpmfetch data on my coppermine index.php page.
I succeded in displaying these datas on a test page at the same directory level of my home page using this code :
Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
$source "keyword=all-right-mama";
$objCpm->cpm_viewRandomMediaFrom($source,1,1,array("imagestyle" => "test1","subtitle"=>"%a","alttag"=> "%a","imagesize" => "large","subtitlelink" => "","imagelink" => "album"));
$myarray = array("subtitle"=>"%a","alttag"=> "%a","subtitlelink" => "","imagelink" => "album");
$objCpm->cpm_viewLastAddedMedia (1,1,$myarray);  
$objCpm->cpm_close();
?>

My problem is to display it on my category page (coppermine home page).
So I wrote the code above (without <?php  and ?>) in the // HTML template for the category list in my theme.php but it only displays the code, not the datas.
 
Do you have any idea if I made it wrong ?

Thank you for your time (sorry for my english and my php wizard  ::) skills...)
Logged

balafre

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: integrating cpmfetch with mini-cms plugin
« Reply #7 on: March 08, 2007, 04:02:36 pm »

Sorry, we cross post.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.