Jump to content

BBCode


Daney11

Recommended Posts

Hey guys,

 

Im using BBCode

 

[im g]http://www.blah.com/image.jpg[/ img]

text here etc

 

If an image is bigger than my table on my website, it streches.... How do i make it so if the image between in image tags is bigger than x width, make it smaller?

 

$Text = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1">', $Text);

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/94967-bbcode/
Share on other sites

Or, make it so that the table doesnt break whatsoever...

 

So if i have a string "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" and it exceeds the table width, just let the string carry on past the table width...

 

for example

 

http://www.thesgl.com/wic/forums/topic/6136/page/1/

Link to comment
https://forums.phpfreaks.com/topic/94967-bbcode/#findComment-486954
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.