[For 1.8.19] MyBadge
#1
Quote:Exclamation This Mycode was tested on MyBB 1.8.19 (The lastest stable release) and displays correctly. There is no guarantee that the code will work for any outdated versions. Make sure you have the most stable version of MyBB.


Hi Folks,

I have converted a Badge BBcode from a different forum software that I used before and loved it. I want to share this Mycode with you guys to enjoy it for your forum.

The MyCode uses this as a resource: https://shields.io

The above resource is an exact preview of what the badges will look like, but you have full control on the subject, status (Versions like v1.0,v1.3, etc.), and color (name like blue, green, etc.)

Step 1
Admin CP -> Configuration -> MyCode -> Add New MyCode
You should see the page where you can add a new MyCode. Once you are there, you may proceed to step 2.

Step 2
Now we will input some information to get the MyCode from working. Make sure you copy & paste carefully. If you miss a letter or change the coding, it will not work. Please be diligent with the information provided. Only 
Title - You may change the name to what you desire.
Badge (or any name you desire)
Short Description - I use this as a help text. I do not recommend changing this.
[badge]SUBJECT-STATUS-COLOR[/badge]
Regular Expression - Do not change this.
\[badge\](.*?)\-(.*?)\-(.*?)\[/badge\]
Replacement - Do not change this.
<img src="https://img.shields.io/badge/$1-$2-$3.svg" alt="" style="margin-bottom: -5px;" />
Actual Result
[Image: 0e88f74457be654f7e0cbbec28dc7650.png]

Purpose of MyCode
  • Perfect for plugin/theme developers to make their threads more professional with changelogs and versions.
  • Want to make badges in your post as titles or prefixes within a thread.
  • Other possibilities that might fulfill your needs.
I hope this MyCode does well for this community and hope to introduce this everyone. I really love the flat design of these badges. Sorry for this lengthy MyCode tutorial, I wanted to be detailed and make it simple for MyBB beginners.

Please inform me in this thread if you find any problems with this tutorial. For instance, MyBB versions change the MyCode format, Tutorial was not clear enough, or I am missing content for this MyCode to function correctly.

Legal Disclaimer/Credit: This BBcode was originally made for the phpBB by DMZX using the above open resource. All rights go to the project sheild.io! DMZX converted it to phpBB BBcode. I did the conversion to make the BBcode compatible to MyBB.
Best Regards,
Robert

[Image: ppadbanner.gif]
Reply


Messages In This Thread
[For 1.8.19] MyBadge - by Robbie626 - 2018-02-19, 12:11 AM
RE: [For 1.8.14] MyBadge - by Robbie626 - 2018-03-19, 04:01 AM
RE: [For 1.8.15] MyBadge - by Ikerepc - 2018-03-19, 09:43 PM
RE: [For 1.8.15] MyBadge - by Omar G. - 2018-03-20, 12:43 AM
RE: [For 1.8.15] MyBadge - by Robbie626 - 2018-03-20, 05:14 AM
RE: [For 1.8.15] MyBadge - by Cybersec - 2018-04-05, 06:14 PM
RE: [For 1.8.15] MyBadge - by Omar G. - 2018-04-06, 03:19 AM
RE: [For 1.8.15] MyBadge - by Ikerepc - 2018-04-06, 05:00 AM
RE: [For 1.8.19] MyBadge - by Robbie626 - 2019-01-19, 04:32 AM
RE: [For 1.8.19] MyBadge - by DiegoPino - 2022-04-20, 10:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)