Is myBB parsing &hash=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#21
I mean that I wouldnt want to use IMG MyCode at all

I wish for the parser to have an if clause where JPEG/JPG/PNG/GIF are parsed differently from the URL parser
Reply
#22
(2015-10-16, 08:44 PM)expat Wrote: I mean that I wouldnt want to use IMG MyCode at all

I wish for the parser to have an if clause where JPEG/JPG/PNG/GIF are parsed differently from the URL parser

Please note that doing so will result in a big performance issue. I have nothing against regex (its actually very cool and saves you time), but if you run it for every post every time you will run into issues sooner or later. Alternatively you could come up with a javascript solution (hey lets put some burden on the visitor's browser) but that would be dirty and glitchy. Can you explain why do you want to separate images inserted on purpose and image links?
[Image: axolis.png]

Project, Portfolio and Product management for freelancers.
Reply
#23
I would say that my Regex is about as cpu/memory-using as the default URL-Tag-Parser. (Maybe even less because I used ?: a lot of time to not save match-patterns) I really don't think that he will run into performance issues. There is definitly a reason, why MyCodes are Regexes ...
Reply
#24
Some of myBB coder said that the thread display is cached?
Reply
#25
(2015-10-16, 09:10 PM)SentoWeb Wrote: Please note that doing so will result in a big performance issue.

A big performance issue caused by running one additional regex in the already messy parser...? It shouldn't matter unless you're on a very very slow, most likely free hosting and your forum is on the verge of exceeding limits.

Anyways, it'd be better if you discussed this in the Plugin Development forum, not in a rejected bug report which has been proven invalid: http://community.mybb.com/thread-185099-...pid1193073
Reply
#26
actually it not proven invalid, even if the php script in question is faulty in the first instance....the faulty parser would have caused subsequent headache anyways

www.google.com?test1=1

see its adding anchor tag into an image tag !! no image will show
Reply
#27
What..? So you used [url] MyCode and you're wondering why it was parsed as an URL?
Reply
#28
you dont need to use [URL], its marked up by default !!
Reply
#29
yes, I would still recommend the [url]-Tag. Images on the other hand aren't shown automaticly.
Reply
#30
so what would happen if i insert a URL myCode?

would myBB stop marking up URLs as default?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)