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
no one can help me with this? :'(
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.
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
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']
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
so it cant be done or?? :)
thx
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
;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;