MyBB Community Forums

Full Version: Rule [X]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I am going to make my first contribution to the community, and I hope people will be able to use it!

So, I have noticed that sometimes I need to post a single rule, like when someone breaks it, but I hate having to go to my rules, and copy that specific rule! So, I have made Rule X, a MyCode, which you will have to edit to your likings, where you can post a single rule with a small code! Here it is:

Title:
Rule X

Short Description:
This will post the X rule.

Regular Expression:
\[ruleX\]

Replacement:
<hr>
<h2>X. (Rule Title Here).</h2>
(Rule Explanation Here).<hr>

And thats it! Just remember to replace the X with the rule number in each instance! Here is an example of mine, so you can see:

Title:
Rule 1

Short Description:
This will post the first rule.

Regular Expression:
\[rule1\]

Replacement:
<hr>
<h2>1. No flaming or flame baiting.</h2>
Don't flame other people or thier work, because we are a community that is dedicated to helping and learning. You will be given a warning, via the warning system, if you flame or flame bait.<hr>

Please post if you use this!
hello buddy,
from where it will pick rule... or we have to type it?
^this, because where must i now set up my rules to make it appropriate for this mycode to retrieve the right information.