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: subtitles?  (Read 4923 times)

0 Members and 1 Guest are viewing this topic.

shronk

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
subtitles?
« on: December 13, 2007, 06:23:09 pm »

Hi there,

So I'd like to show the latest Albums on my frontpage.

I've been able to show the 3 latest albums, the title and the description.

However, on the description I (always) use 3 lines, but it'll be displayed in a single line. Any way to change that? (in the cpg it's shown correctly)
And how can I change the image link to go to the albums thumbnail view?

thanks in advance
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: subtitles?
« Reply #1 on: December 14, 2007, 12:55:32 am »

Hi there,

So I'd like to show the latest Albums on my frontpage.

I've been able to show the 3 latest albums, the title and the description.

However, on the description I (always) use 3 lines, but it'll be displayed in a single line. Any way to change that? (in the cpg it's shown correctly)
And how can I change the image link to go to the albums thumbnail view?

thanks in advance

Can you post, or PM links to the examples of both?  I am not entirely sure I follow...

Vuud
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

maryp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: subtitles?
« Reply #2 on: December 30, 2007, 07:45:00 pm »

I'll jump in on this thread since my problem is related..
 I'm using cpmfetch 2.0 on two sites.. same problem on both sites..
 The images show up exactly how I want them, but the statistics (title and date) don't.

Here is the code I'm using for both (only the numbers for alignment are different)

Quote
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(2,2);
$options = array("subtitle" => "{{pTitle}} <br />{{pCtimeFormatted}}",
                "imagesize" => "thumb");
  $objCpm->cpm_close();
?></p>


Here are the two sites...
 http://www.colinfarrellfansite.com   (images in top left column)
 http://www.heathbaby.com   (images across top center)

Thanks in advance!
Logged

twist

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 360
    • 100iso.eu
Re: subtitles?
« Reply #3 on: December 31, 2007, 12:24:34 am »

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(2,2);
$options = array("subtitle" => "{{pTitle}} <br />{{pCtimeFormatted}}",
                "imagesize" => "thumb");
  $objCpm->cpm_close();
?></p>

I think u missed to parse $options to cpm_viewLastAddedMedia().

Try with:
Code: [Select]
<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$options = array("subtitle" => "{{pTitle}} <br />{{pCtimeFormatted}}""imagesize" => "thumb");
  
$objCpm->cpm_viewLastAddedMedia(2,2$options);
  
$objCpm->cpm_close();
?>
Logged

maryp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: subtitles?
« Reply #4 on: December 31, 2007, 01:39:05 am »

Thank You !!
 That did the trick on both of the sites!!

I had copied that code from another post.. so didn't know where to start looking for what was wrong!
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.