How to change font type, color, spacing --> Subtitle How to change font type, color, spacing --> Subtitle
 

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

How to change font type, color, spacing --> Subtitle

Started by jansen00, January 05, 2007, 10:27:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jansen00

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 :


$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..!!

vuud

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


$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.

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

chris.h

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...

chris.h

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.