help image preview bbcode

Started on the old forum in May 2012 · view the original in the archive · old links redirect here

5 replies · 764 views · started 14 years ago · 1 min read

3 participants
subzero Super moderator Fellow · 3,954 posts #3

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... _______…

stratosphere Junior · 42 posts #4

sorry lack of info hehe. Im using lavalair 🙂 thanks

subzero Super moderator Fellow · 3,954 posts #5

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... _______…

Lovely Malinao Newbie · 3 posts #6

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 🙂 ...

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close