what are to codes to make External image (may be gone) works? I will fetch from gallery to preview it thanks so much.
help image preview bbcode
Started on the old forum in May 2012 · view the original in the archive · old links redirect here
What script you using.
1/ Always say the script your using..... 2/ Always say the script that is that your using... 3/ Did i make any sense ??? 4/ All above ^^
Thank you and have a nice day.
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
Its upto the gallary script your using now...
if each uploads are numbers 1 to 10290192382392
Not like mine site does
username / id
if number of ids only it can be done.
Mine same but more 40% will not drop right image lol 🙂
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
Answer For Your Question
stratosphere wrote: what are to codes to make External image (may be gone) works? I will fetch from gallery to preview it thanks so much.
function getbbcode($text, $sid="", $filtered)
{
$text=preg_replace("/\[image\](.*?)\[\/image\]/is","<a href=\"$1\"><img src=\"$1\" height=\"100\" width=\"100\"></a>",$text);
$text = preg_replace("/\[img](.*?)\[\/img\]/is","<a href=\"gallery.php?a=preview&sid=$sid&gid=$1\">Image Preview</a>",$text);
$text = preg_replace("/\[user\=(.*?)\](.*?)\[\/user\]/is","<a href=\"index.php?a=viewuser&who=$1&sid=$sid\">$2</a>",$text);
$text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\">$2</a>",$text);
return $text;
}
Its A function Whisch You Can Create BBCodes, Now You Should Put It in core.php 🙂 ...