MyBB Community Forums
[General] MyCode - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [General] MyCode (/thread-164337.html)



MyCode - Szibiasty - 2014-12-17

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!


RE: MyCode - Leviathan - 2014-12-18

Please give me an example of what you are typing in to post the picture.

Like this:
[bob]BOB[/bob]



RE: MyCode - Szibiasty - 2014-12-18

[dl]link dl[/dl]



RE: MyCode - Destroy666 - 2014-12-18

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.


RE: MyCode - Szibiasty - 2014-12-18

Still not working.


RE: MyCode - SvePu - 2014-12-18

Maybe you have a whitespace before \[dl\](.*?)\[/dl\] in textarea.


RE: MyCode - Destroy666 - 2014-12-18

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



RE: MyCode - Szibiasty - 2014-12-18

I do not understand :/


RE: MyCode - SvePu - 2014-12-19

Have you checked this??

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

[attachment=33337]


RE: MyCode - Szibiasty - 2014-12-19

Thanks, lol Big Grin //lock