MyBB Community Forums

Full Version: Think code.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Its a simple thing that i took from http://www.phpbb3bbcodes.com/ and tweeked a little to make it work with mybb i don't know if any one already did this but i did a search and it didn't find it so HAHA Toungue Im kinda new at this so if you guys have any suggestions please do say so.


Title:
think bubble

Short description:
Put some text into a bubble with a thinking dude 

Regular expression:
\[think\](.*?)\[/think\]

Replacement:
<table border="0" cellpadding="0" cellspacing="0"><tr><td style="margin: 0;padding: 0;border: 0;"><div style=" background-color: #FFEBD5;color: #000000; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #FFFFFF; padding: 4px;font-size: 1em;" >&nbsp;
$1&nbsp;</div><img src="http://www.phpbb3bbcodes.com/images/think.gif" alt="" /></td></tr></table>




It will come out looking like [attachment=15107]


Like i said im new at this so i would love some comments Big Grin
You missed something:

\[think\](.*?)\[/think\]
Hmmmmm sorry im new... where do i put that? If i put it in example the code doesn't work. Im kinda confused on where to put it.
Thats the equaiton you put in the ACP i think...
haha sorry >< where in the acp? I am in the mycode section right now. Thanks for your help.
Thats the MyCode Expression...
It's mostly the thing you called "Example".
That is the expression MyBB needs to detect that this is a MyCode and to replace it with the replacement.
Okie thanks all i figured out what was happening i was using the Easy MyCode and so it didn't do it like that Big Grin but now i disabled that and i will do it like this thanks all Big Grin