15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

apply styles to the images

Author jmcwebtrip
#1 | Posted: 30 Mar 2012 17:09 
I want to apply styles to the images of forums with a box. I have in the file. Css
as follows:
img.d {
border : 1px solid #ccc;
padding : 5px;
background : #fff;
If I put
[imgs=photo.jpg class="d"][/imgs][imgs=http://www.minibb.com/forums/img/p.gif][/imgs]
How I can do?

Author tom322
Active Member
#2 | Posted: 31 Mar 2012 00:08 
You should do it using encode/decode functions, not via direct CSS.

Author Paul
Lead Developer
#3 | Posted: 31 Mar 2012 11:08 
I would ask at first - why would you need it at all?
Implementation method depends on the reason of it.

Tom is right, you must apply all stylings, modifying BB codes functions (bb_codes.php).
You can't put them like you mention above.

Author jmcwebtrip
#4 | Posted: 31 Mar 2012 12:51 
I need to put it so, not that it is imperative. But I want to add a forum section of a photo of the week. I think the design is much better with a border on the picture.

Author tom322
Active Member
#5 | Posted: 31 Mar 2012 21:59 
You can add this in your bb_default_style.css file:

.postedText img{border : 1px solid #ccc;padding :5px;background: #fff;}

Author jmcwebtrip
#6 | Posted: 1 Apr 2012 00:21 
Thank very much for your reply tom. Now is working fine.

Specific miniBB Support Forums / Specific / apply styles to the images Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB