MyBB Community Forums

Full Version: Extra BBcode Tags
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I come from SMF. I think MyBB is better, but there is something I miss about SMF, and that is the multiple BBCode Tags.
They have:
  • Glow
  • Strike
  • Shadow
  • Marquee
  • Horizontal Rule
  • Supscript
  • Supscript
  • Teletype

I would be eternaly in gratitude if someone make this mod:mrgreen:

Thanks in Advance!

http://www.mybbmods.com/modifications.php?vid=5&cid=11

I'm sure someone actually did this on the forums.... I think dale did it...

Just ahd a look at his site bit I can't see it. Maybe you have to register.
decswxaqz Wrote:http://www.mybbmods.com/modifications.php?vid=5&cid=11

I'm sure someone actually did this on the forums.... I think dale did it...

Just ahd a look at his site bit I can't see it. Maybe you have to register.
I found some cool tags, but I dont find any of the ones I want
Yeah i had some cool ones, however because i updated my functions file, it overwrote them, i'll redo them later on tonight for others to see Smile

[EDIT]
Nevermind, i've redo some of them, only IE users can see most of them... Enjoy!

BB Codes @ D-Frame.co.uk
hm.. i will see what i can do Smile
ones mybb gold is here, i will start coding again Smile
Dale Wrote:Yeah i had some cool ones, however because i updated my functions file, it overwrote them, i'll redo them later on tonight for others to see Smile

[EDIT]
Nevermind, i've redo some of them, only IE users can see most of them... Enjoy!

BB Codes @ D-Frame.co.uk
I m not sure..... none of those work in my coputer (I use IE)
EDIT
Forget it! It looks great! Whaere I can download it?
Open inc/functions_post.php then find:
$message = preg_replace("#\\[email=(.*?)\\](.*?)\\[/email\\]#ie", "doemailurl(\\"$1\\", \\"$2\\")", $message);
Add beneath it:
// Dales Custom BB Codes :p
	$message = preg_replace("#\\[glow=(.*?)\\](.*?)\\[/glow\\]#si", "<table style=\\"filter:glow(color=$1, strength=4)\\">$2</table>", $message);
	$message = preg_replace("#\\[shadow=(.*?)\\](.*?)\\[/shadow\\]#si", "<table style=\\"filter:shadow(color=$1, direction=225)\\">$2</table>", $message);
	$message = preg_replace("#\\[fliph\\](.*?)\\[/fliph\\]#si", "<table style=\\"filter:flipH\\">$1</table>", $message);
	$message = preg_replace("#\\[flipv\\](.*?)\\[/flipv\\]#si", "<table style=\\"filter:flipV\\">$1</table>", $message);
	$message = preg_replace("#\\[invert\\](.*?)\\[/invert\\]#si", "<table style=\\"filter:invert\\">$1</table>", $message);
	$message = preg_replace("#\\[xray\\](.*?)\\[/xray\\]#si", "<table style=\\"filter:xray\\">$1</table>", $message);
	$message = preg_replace("#\\[icq\\](.*?)\\[/icq\\]#si", "<a href=\\"http://wwp.icq.com/scripts/search.dll?to=$1\\">$1<img src=\\"http://wwp.icq.com/scripts/online.dll?icq=$1&img=5\\" border=0></a>", $message);
	$message = preg_replace("#\\[window\\](.*?)\\[/window\\]#si", "<iframe name=\\"window\\" style=\\"border:0\\" width=600 height=400 src=\\"$1\\"></iframe>", $message);
	$message = preg_replace("#\\[blur=(.*?)\\](.*?)\\[/blur\\]#si", "<table style=\\"filter:blur(Add=0, direction=45, strength=$1)\\">$2</table>", $message);
	$message = preg_replace("#\\[swf\\](.*?)\\[/swf\\]#si", "<embed src=$1 width=400 height=300 type=application/x-shockwave-flash></embed>", $message);
Save and upload!

Enjoy!
Ok, I will later Smile Thanks!
But, Do you know how can I add more buutons?
I can make them, but I dont know how to put them
gimme a sec Smile

ok here we go:


----- [ Extract & Upload ] -------------------------------

[attachment=168] to images/codebuttons

----- [ OPEN ] ------------------------------------------

codebuttons.js

----- [ FIND ] ------------------------------------------

var code_prompt = "Please enter the code to be treated as code and unformatted text.";

----- [ After Add ] ------------------------------------

var fliph_prompt ="Please enter the text that needs to be flipped horizontaly.";
var flipv_prompt ="Please enter the text that needs to be flipped verticly.";
var invert_prompt ="Please enter the text that needs to be inverted.";
var xray_prompt ="Please enter the text that needs to be x-rayed.";
var icq_prompt ="Please a ICQ number.";
var window_prompt ="Please enter an URL to make a window.";
var swf_prompt ="Please enter a flash file URL.";

----- [ GO TO ] -----------------------------------------

ACP -> Templates -> Modify / Delete -> *Template Set Name* -> codebuttons

----- [ FIND IN TEMPLATE ] ------------------------------

<img name="code" src="./images/codebuttons/code.gif" onclick="insertCode('code')" class="toolbar_normal" onMouseOver="toolbarHover('code')" onMouseOut="toolbarUnHover('code')" onMouseDown="toolbarMouseDown('code')" alt="Insert formatted code">

----- [ AFTER, ADD ] ------------------------------------

<br />
<img name="fliph" src="./images/codebuttons/fliph.gif" onclick="insertCode('fliph')" class="toolbar_normal" onMouseOver="toolbarHover('fliph')" onMouseOut="toolbarUnHover('fliph')" onMouseDown="toolbarMouseDown('fliph')" alt="Inserts a horizontal text">
<img name="flipv" src="./images/codebuttons/flipv.gif" onclick="insertCode('flipv')" class="toolbar_normal" onMouseOver="toolbarHover('flipv')" onMouseOut="toolbarUnHover('flipv')" onMouseDown="toolbarMouseDown('flipv')" alt="Inserts a vertical text">
<img name="invert" src="./images/codebuttons/invert.gif" onclick="insertCode('invert')" class="toolbar_normal" onMouseOver="toolbarHover('invert')" onMouseOut="toolbarUnHover('invert')" onMouseDown="toolbarMouseDown('invert')" alt="Inserts a invert text">
<img name="xray" src="./images/codebuttons/xray.gif" onclick="insertCode('xray')" class="toolbar_normal" onMouseOver="toolbarHover('xray')" onMouseOut="toolbarUnHover('xray')" onMouseDown="toolbarMouseDown('xray')" alt="Inserts a xrayed text">
<img name="icq" src="./images/codebuttons/icq.gif" onclick="insertCode('icq')" class="toolbar_normal" onMouseOver="toolbarHover('icq')" onMouseOut="toolbarUnHover('icq')" onMouseDown="toolbarMouseDown('icq')" alt="Inserts an ICQ number">
<img name="window" src="./images/codebuttons/window.gif" onclick="insertCode('window')" class="toolbar_normal" onMouseOver="toolbarHover('window')" onMouseOut="toolbarUnHover('window')" onMouseDown="toolbarMouseDown('window')" alt="Inserts a windowed text">
<img name="swf" src="./images/codebuttons/swf.gif" onclick="insertCode('swf')" class="toolbar_normal" onMouseOver="toolbarHover('swf')" onMouseOut="toolbarUnHover('swf')" onMouseDown="toolbarMouseDown('swf')" alt="Inserts a flash movie">

----- [ UPLOAD ] ----------------------------------------

Upload the changed file, save the settings and have fun :-)

All done!

Will have a look @ glow, shadow & blur UBB buttons tommorow
Oh, They look cool! thank you, but dont forget about "Spoiler" :mrgreen:
Pages: 1 2