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: How to change font type, color, spacing --> Subtitle  (Read 9411 times)

0 Members and 1 Guest are viewing this topic.

jansen00

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
How to change font type, color, spacing --> Subtitle
« 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..!!
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: How to change font type, color, spacing --> Subtitle
« Reply #1 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.

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

chris.h

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Zookx Design
Re: How to change font type, color, spacing --> Subtitle
« Reply #2 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...
Logged

chris.h

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 38
    • Zookx Design
Re: How to change font type, color, spacing --> Subtitle
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 19 queries.