« back to folderblog
folderblogwiki

StylingThumbnails

intention: in order to be more flexible with styling thumbnails (i wanted to use the image as background-image of a div) you can prevent <#fbimage#> from inserting an <img> element of the thumbnails, but return its URL instead. it has been a specific case thats solution brings disadvantages. so make sure you know what this tutorial is for.

what to do?
change line 46 of your folderblog.php from:

"<#fbimage#>"=>$image ? "<img src=\"$thumbs_directory$image$file_extension\" alt=\"" . strip_tags($date) . "\" $size[3] />" : "",


into:

"<#fbimage#>"=>"" . ($image ? "$thumbs_directory$image$file_extension" : ""),


this only affects the thumbnails so you can leave <#fbimage#> within template_main.php as it is.
only $thumb_format $thisthumb_format $randthumb_format $menuthumb_format and $comthumb_format that are defined in your template_settings.php are now ready for something like this:

<div style="background: url(<#fbimage#>) no-repeat;" class="somemorestyles"></div>


if you have questions on this, feel free to contact me WikiCredits (erik)
Home  Index  Recent Changes  folderblog
Last edited February 23, 2008 at 10:51pm.(edit this entry)