subtitles? subtitles?
 

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

Main Menu

subtitles?

Started by shronk, December 13, 2007, 06:23:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shronk

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

vuud

Quote from: shronk 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

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

Vuud
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

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!

twist

Quote from: maryp on December 30, 2007, 07:45:00 PM
<?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:
<?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();
?>


maryp

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!