MyBB Community Forums

Full Version: a [release] mybb code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make a mybb code for something like [release]text[/release] that will make whatever is inside the code have a certain style too it?

I think it would be an awesome addition to MyBB. Sorry if this is the wrong section, not sure where I would ask for this.

Maybe style it like this:
.release {
background-color: #F9F7ED;
border: 1px solid #FCFAF2
border-radius: 8px 8px 8px 8px;
box-shadow: 2px 1px 8px #AAAAAA !important;
color: #36393D;
display: table;
margin: 5px 50px;
padding: 16px;
}

Thanks Smile
In ACP > Configuration > MyCodes > Add MyCode:
Give it a name.
Regular Expression:
\[release\](.*?)\[/release\]
Replacement:
<span class="release">$1</span>

Now in your global.css in ACP > Templates & themes > Themes > (click your theme) > global.css > Advanced Mode, add:
.release {
     color: red;
}
Give it any style you want.
Would you like to post a link of the website from where you have taken the screenshot ?
(2011-06-02, 10:35 PM)Aries-Belgium Wrote: [ -> ]In ACP > Configuration > MyCodes > Add MyCode:
Give it a name.
Regular Expression:
\[release\](.*?)\[/release\]
Replacement:
<span class="release">$1</span>

Now in your global.css in ACP > Templates & themes > Themes > (click your theme) > global.css > Advanced Mode, add:
.release {
     color: red;
}
Give it any style you want.

Cool! I'll give this a shot! Thanks!

(2011-06-02, 10:36 PM)Yaldaram Wrote: [ -> ]Would you like to post a link of the website from where you have taken the screenshot ?

PM sent Smile