forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: jansen00 on January 05, 2007, 10:27:04 am

Title: How to change font type, color, spacing --> Subtitle
Post by: jansen00 on January 05, 2007, 10:27:04 am
guys...i want to change apperance of the font by changing the font color, also the spacing between subtitle and the thumbnail picture. anyone can please give me a hint ?

for example :

Code: [Select]
$objCpm = new cpm("/PhotoAlbum");
$styleguide = array(
"linkstyle" => "photoclip",
"alttag" => "Rated: %V",
"subtitle" => "Rated:%V-Hits:%h",
"imagestyle" => "test1",
"imagesize" => 'thumb',
"cellattributes" => array('align' => 'center','width' => '125','height' => '80'));
$objCpm->cpm_viewLastAddedMedia(2,3, $styleguide);
$objCpm->cpm_close();

the subtitle will show up like ==> Rated:%V-Hits:%h"
i want to change the color and font type...or maybe using one of the style from my style.css

Thanks for the help..!!
Title: Re: How to change font type, color, spacing --> Subtitle
Post by: vuud on January 06, 2007, 04:57:28 pm
guys...i want to change apperance of the font by changing the font color, also the spacing between subtitle and the thumbnail picture. anyone can please give me a hint ?

for example :

Code: [Select]
$objCpm = new cpm("/PhotoAlbum");
$styleguide = array(
"linkstyle" => "photoclip",
"alttag" => "Rated: %V",
"subtitle" => "Rated:%V-Hits:%h",
"imagestyle" => "test1",
"imagesize" => 'thumb',
"cellattributes" => array('align' => 'center','width' => '125','height' => '80'));
$objCpm->cpm_viewLastAddedMedia(2,3, $styleguide);
$objCpm->cpm_close();

the subtitle will show up like ==> Rated:%V-Hits:%h"
i want to change the color and font type...or maybe using one of the style from my style.css

Thanks for the help..!!


Setting the css entry for linkstyle should allow you to do all those things (I think).  You are already setting it to photoclip, so just adjust your CSS entry accordingly.

I have no idea what the css tags would be (CSS gives me a headache sometimes), but there should be plenty of css info out there.

Title: Re: How to change font type, color, spacing --> Subtitle
Post by: chris.h on September 17, 2007, 05:59:04 pm
Trying to alter this myself. The CSS isn't a problem but there seems to be a double spaced line inserted between each image and subtitle, trying to find that in the files now...
Title: Re: How to change font type, color, spacing --> Subtitle
Post by: chris.h on September 17, 2007, 06:03:04 pm
Found them  ;D

there are two <br /> tags in the cpmfetch file, if you want to tighten up the spacing between titles and images, remove these. they are located on lines 1270 and 1383 of the file.

Hope this helps someone.