miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

apply styles to the images

 
Author jmcwebtrip
Partaker
#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?
[imgs=https://www.minibb.com/forums/img/p.gif][/imgs]

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
Partaker
#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
Partaker
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑