MyBB Community Forums

Full Version: MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello again, I do want to let MyCode download but I have a problem that when you enter bbcode post a picture I do not see!

regular expression:
\[dl\](.*?)\[/dl\]

conversion:
<a href="$1"><img src="images/download.png"></a>

and does not work, please help!
Please give me an example of what you are typing in to post the picture.

Like this:
[bob]BOB[/bob]
[dl]link dl[/dl]
1. You're not closing the img tag properly, it should be:
<img src="images/download.png" />
2. img requires alt attribute, so it should be:
<img src="images/download.png" alt="" />

But I doubt that will fix it. If it doesn't show a link to a thread in which you use the BBCode.
Still not working.
Maybe you have a whitespace before \[dl\](.*?)\[/dl\] in textarea.
(2014-12-18, 08:21 PM)Szibiasty Wrote: [ -> ]Still not working.

(2014-12-18, 07:54 PM)Destroy666 Wrote: [ -> ]But I doubt that will fix it. If it doesn't show a link to a thread in which you use the BBCode.
I do not understand :/
Have you checked this??

I guess you have a space at beginning of regular expression.

[attachment=33337]
Thanks, lol Big Grin //lock