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: [Solved]: Trouble with array for including description  (Read 4836 times)

0 Members and 1 Guest are viewing this topic.

nette

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
[Solved]: Trouble with array for including description
« on: March 08, 2008, 03:54:37 am »

I really love cpmfetch but I am having trouble with modifying the code because I would like to include the description. I have read the cpmfetch documentation manual section on arrays and trying to find an example here on the boards so I did try the solve the problem on my own for 2 days now but I am just not getting it. Here is my code

<?php
include_once "./mediavault/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./mediavault/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "File name : {{pFilename}}");
<?php
  include_once "./mediavault/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./mediavault/cpmfetch/cpmfetch_config.php");
  $options = array("subtitle" => "File name : {{pFilename}}");
$string = $objCpm->createDescription(6, 1, $options, $picDesc);
   $objCpm->cpm_viewRandomMediaFrom(1, 1, $picDesc);
  $objCpm->cpm_viewLastAddedMedia(6, 1, $options, $picDesc);
  $objCpm->cpm_close();
?>

All i want to do is include a description. Thanks for your help
« Last Edit: March 09, 2008, 02:13:42 pm by Joachim Müller »
Logged

nette

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Trouble with array for including description
« Reply #1 on: March 08, 2008, 04:45:39 am »

nevermind i just figured it out!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Trouble with array for including description
« Reply #2 on: March 09, 2008, 02:13:32 pm »

For the benefit of others with similar issues you should post what you actually did to solve your issues. That's the point of a support board...
Logged

nette

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: [Solved]: Trouble with array for including description
« Reply #3 on: March 09, 2008, 07:47:56 pm »

Well I guess my quest to get support without stepping on any toes failed. Quite impossible to do that on this board but anywho here is my code


Code: [Select]
<?php include_once "./???/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./???/cpmfetch/cpmfetch_config.php");
$options = array('subtitle' => '{{aTitle}} {{aDescription}} 
Downloads: {{pHits}}' 
,
'imagewidth' => '' 'imageheight' => '' 'subtitlelink' => '' 'linkstyle' => 'li' 

'imagestyle' => 'imagestyle' 'alttag' => '{{aTitle}}: {{pTitle}}');
$objCpm->cpm_viewLastAddedMedia(61$options$picDesc);
$objCpm->cpm_close(); 
?>
« Last Edit: March 10, 2008, 07:52:27 am by Joachim Müller »
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.