MyBB Community Forums

Full Version: BBcodes system like Phpbb3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Yes but Wikimedia isn't a forum.
(2013-01-04, 10:03 AM)JordanMussi Wrote: [ -> ]Yes but Wikimedia isn't a forum.

I am aware of that, but for anyone that doesn't know what markdown is, Wiki gives you a good idea of what can be achieved with it
Ah yes. But you don't often find markdown being used on forums.
(2013-01-08, 06:36 PM)JordanMussi Wrote: [ -> ]Ah yes. But you don't often find markdown being used on forums.

That doesn't mean we couldn't make it a standard. Better to be those who innovate instead of those following innovation.
I never said we shouldn't I just meant that it wasn't the norm. So yes having markdown would make MyBB stand out (even more than it does already Toungue)
How would you handle updates or convertions then?
(2013-01-09, 10:37 AM)Rafio Wrote: [ -> ]How would you handle updates or convertions then?

That's something which would need research and collaboration. We're far away from even considering the post parsing system. It can be done, we'd just need to agree on the best method.
Furthermore, hownwould some codes such as spoilers and titled links be handlesls?
(2013-01-09, 01:38 PM)StingReay Wrote: [ -> ]Furthermore, hownwould some codes such as spoilers and titled links be handlesls?

This will give you an idea of how the basics are handled

http://daringfireball.net/projects/markdown/basics
In the MyCodes section when you add one you could have something like this to make a spoiler with markdown:

First MyCode
Title: Spoiler Title
Regular Expression:
~~~(.*?)~~~
Replacement:
<div align="left"><div style="margin: 5px 20px 20px; width: 60%;"><div style="text-align: left; padding: 4px; background: #85B1EE; repeat-x scroll 0% 0% transparent; border: 1px solid #6F9DD9; -moz-border-radius:5px; color:#ffffff; text-shadow:0 -1px #6F9DD9; font-weight:bold; ">$1&nbsp;<input type="button" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" style="width: 45px; font-size: 10px; margin: 0px; padding: 0px;" value="Show"></div>

Second MyCode
Title: Spoiler Content
Regular Expression:
%%%(.*?)%%%
Replacement:
<div class="quotecontent"><div style="border-left: 1px solid #000000; border-width: 0px 1px 1px; border-style: none solid solid; border-color: #6F9DD9; padding: 4px; -moz-border-radius:5px; display: none;">$1</div></div></div></div>

Usage:
~~~Test Spoiler~~~
%%%Lets test this spoiler out!%%%

[Image: information.gif]Note: Tested and works.
Edit: MyCode code obtained from this thread: http://community.mybb.com/thread-130848.html
Pages: 1 2 3 4 5