Change in ''CAPATION'' Change in ''CAPATION''
 

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

Change in ''CAPATION''

Started by Darkwoods, March 23, 2006, 06:09:54 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Darkwoods

hello im trying to do something but its not working with me  ::)

im trying to do on the thumbnail view page like this
Quote(THUMB)
Title
(Description), By (uploader name)
(*) views

but the problem i cant have the captions on one line plz help me with this i know its simple for u but i cant make it  >:(
for example i want to have the description and uploader name on the same line how can i do it?

thx you
Freedom

Darkwoods

no one can help me with this?  :'(
Freedom

lordprodigy

unless you have 100% width template and few thumbs per row, its not a good idea to have the description and author on the same line... give us a link.

Darkwoods

Quote from: lordprodigy on March 29, 2006, 10:39:18 PM
unless you have 100% width template and few thumbs per row, its not a good idea to have the description and author on the same line... give us a link.

I did not know it was that complitated
here is the link http://www.cedarmaster.com/cpg144/index.php
any help will be great thank you
Freedom

Stramm

you'll have to modify a coppermine core file to achive what you're looking for
look for the function build_caption in functions.inc.php and edit var caption after
if ($CONFIG['caption_in_thumbview']){
and
if ($CONFIG['display_uploader']

Darkwoods

Quote from: Stramm on March 30, 2006, 09:31:09 AM
you'll have to modify a coppermine core file to achive what you're looking for
look for the function build_caption in functions.inc.php and edit var caption after
if ($CONFIG['caption_in_thumbview']){
and
if ($CONFIG['display_uploader']

yeah but what should i edit  ???
Thx
Freedom

Darkwoods

so it cant be done or??  :)

thx
Freedom

Stramm

depending om your layout needs
have a look at the code I showed you (have you had a look already??)
        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".strip_tags(bb_decode($row['caption']))."</span>" : '';
        }

the var array $row holds what text appeares below a  thumb, $row['caption'] holds as expected the caption. After the caption appeares the uploader name. I guess from your first posting that there should be no linebreak between these two. Look at the code, there's a span tag. That one produces a linebreak (all basic html). Replace it, remove it and check what happens. Make a backup of functions.inc.php before messing with it

Darkwoods

 ;D thx you everyone for helping me really thx  :) i figure it out the problem is from the css style ::) i had to remove the related styles code in style.css display : block; thats its

.thumb_title {
        font-weight : bold;
        font-size: 80%;
        padding: 2px;
        display : block;
}

.thumb_caption {
        font-size: 80%;
        padding: 1px;
        display : block;
}

.thumb_caption a {
        text-decoration: underline;
        color: #000000;
}

.thumb_num_comments {
        font-weight: normal;
        font-size: 80%;
        padding: 2px;
        font-style : italic;
        display : block;
Freedom