FAP CUSTOMIZATION - Image Border


Subject: FAP CUSTOMIZATION - Image Border
hi, i would like to set border="1" on thumbnails in posts; i don't know how....

thank you for your help!

Profile PM  
Subject: Re: Image Border
Just so I understand ....

Do you mean the thumbnails that are added to forum post using the [albumimg] bbcode ?

Profile PM  
Subject: Re: Image Border
You just have to add a simple line after the img code

Code: [Download] [Hide] [Select]
[img align=left style="border:solid 1px silver;padding:5px;margin-right:10px;"]http://www.icyphoenix.com/files/images/1603/vaca2.jpg[/img]


vaca2

Profile PM  
Subject: Re: Image Border
DR wrote: [View Post]
You just have to add a simple line after the img code

Code: [Download] [Hide] [Select]
[img align=left style="border:solid 1px silver;padding:5px;margin-right:10px;"]http://www.icyphoenix.com/files/images/1603/vaca2.jpg[/img]


vaca2

But that won't be possible in standard phpBB.

I guess he has to create an extra class in the CSS and then specify it in the bbcode.tpl.

Anyway thanks for showing how to add a border using BBCodes. I guess only few peoples knew that! :wink:

Subject: Re: Image Border
Artie wrote: [View Post]
Just so I understand ....

Do you mean the thumbnails that are added to forum post using the [albumimg] bbcode ?


yes Artie, that's what i mean;

thank you for your help!

Last edited by sympatico on Fri 21 Dec, 2007 23:15; edited 1 time in total
Profile PM  
Subject: Re: Image Border
For a standard phpBB (Non Icy) board ...

OPEN templates/YOUR_TEMPLATE/bbcode.tpl

FIND

Code: [Download] [Hide] [Select]
<!-- BEGIN fullalbumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_picm.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END fullalbumimg -->
<!-- BEGIN albumimg --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" border="0" /></a><!-- END albumimg -->
<!-- BEGIN albumimgl --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="left" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgl -->
<!-- BEGIN albumimgr --><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="right" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a><!-- END albumimgr -->
<!-- BEGIN albumimgc --><center><a href="album_showpage.php?pic_id={IMG_NUM}" target="_blank" class="postlink"><img src="album_thumbnail.php?pic_id={IMG_NUM}" border="0" align="center" alt="Image {IMG_NUM}" title="Image {IMG_NUM}" /></a></center><!-- END albumimgc -->

REPLACE (where desired)
Code: [Download] [Hide] [Select]
border="0"

WITH
Code: [Download] [Hide] [Select]
border="1"


or use DR's suggestion and replace border="0" with the style attributes

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1605s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled