MyBB Central

Full Version: MOD MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just wondering if you could make a simple MyCode

I haven't suceeded so I wonder if you can Tongue



Something like below:

Mod enters [mod] blah blah [/mod]


I would like it to have a background then a darker border,,

i found the following code but I couldnt get it working :@
PHP Code:
TitleMod BB Code
BB Code Tag
: [mod]
Replacement: <div style="border: 1px dashed #da0202; padding: 5px; height: 150px; width: 90%;">
<
img src="images/alert.png" align="left" /><span class="color: #da0202;><strong>Mod Alert:</strong></span>{param}</div> 

Tyy Smile
What's {param}?? Also <span class="color: #da0202;> makes no sense, a class is just a name, you mean <span style="...."

Regular Expression:

Code:
\[mod\](.*?)\[/mod\]

Replacement:

Code:
<div style="border: 1px dashed #da0202; padding: 5px; height: 150px; width: 90%;">
<img src="images/alert.png" align="left" /><span style="color: #da0202;"><strong>Mod Alert:</strong></span>$1</div>
Have you looked at http://www.mybbcentral.com/thread-1720.html

It allows you to use
Code:
[warn]
and will display a message you enter into one of the .php files. It is also restricted to those that can access the mod CP.
(Oct 04, 2009, 09:05 AM)Jacob Wrote: [ -> ]Just wondering if you could make a simple MyCode

I haven't suceeded so I wonder if you can Tongue



Something like below:

Mod enters [mod] blah blah [/mod]

I would like it to have a background then a darker border,,

i found the following code but I couldnt get it working :@
PHP Code:
TitleMod BB Code
BB Code Tag
: [mod]
Replacement: <div style="border: 1px dashed #da0202; padding: 5px; height: 150px; width: 90%;">
<
img src="images/alert.png" align="left" /><span class="color: #da0202;><strong>Mod Alert:</strong></span>{param}</div> 

Tyy Smile

Thats for vBulletin it was posted on Clubhabbo forum TBH

also that plugin how can i change my alert style and the tags? i want the tags to be [mod] and the text to be inside a box any help guys?