|
#1
|
|||
|
|||
shout image
would have a small question, and indeed what I need to shout in the images via bbcode
[img] test.jpg [/ img] is shown for example because it shows only the link at the time. I have xbtit 2.2.1 |
#2
|
||||
|
||||
Its a simple addon of bbcode.
In ajaxchat/format_shout.php search.. Code:
@fclose($f); Code:
$s = preg_replace("/\[img\]((http)+(s)?:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.php))\[\/img\]/", "<a href=\"\\1\" target=\"_new\" rel=\"thumbnail\"><img border=0 src=\"\\1\" style=\"width: 100px;\"></a>", $s); $s = preg_replace("/\[IMG\]((http)+(s)?:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.php))\[\/IMG\]/", "<a href=\"\\1\" target=\"_new\" rel=\"thumbnail\"><img border=0 src=\"\\1\" style=\"width: 100px;\"></a>", $s); |
The Following User Says Thank You to cooly For This Useful Post: | ||
zhoutai (21st September 2011)
|
#3
|
|||
|
|||
Quote:
|
Tags |
image , shout |
|
|