awww yisss senpai finaly we got sum gud spoiler codes
31/03/2015 - Shortcode system.
Posts
ok
okay
can we make the spoilers onclick instead of onmouseover?
mumu wroteok
okaycan we make the spoilers onclick instead of onmouseover?
Senpai wrote(I'll be making it stay open on click tomorrow, just put this together quickly before bed).
Senka wrotemy noods
I know, old joke. but i never got to participate ;_;
your noods are hot
[username] spooky magic
hahaha guest plebs cant see this
how exactly does [ username ] work
mumu wrote[username] spooky magic
[hide]hahaha guest plebs cant see this[/hide]
[spoiler]how exactly does [ username ] work[/spoiler]
This is the code for it. :^)
[php]
function shortcode_username($params, $content) {
global $mybb;
if ($content) { // this does not require any content.
return false;
}
if($mybb->user['uid']) {
return $mybb->user['username'];
} else {
return "future member";
}
}
Shortcodes::add("username", "shortcode_username");
[/php]
I'll likely release the shortcodes plugin for free.
EDIT, btw, you can escape the shortcodes by wrapping them in brackets: [[username]]
[[username]]
>mfw this updates

Well done. ily, @Senpai.
senpai a bulli, never gib permission to share those
What if we want to give nsfw spoilers a title?
mis wrotesenpai a bulli, never gib permission to share those
What if we want to give nsfw spoilers a title?
You can.
mis ily
pls marry me mis :heart:
@"Senpai" @"mumu" today i learned that the whole forum doesn't talk about me
(
Do you love me [username] ?
jokatk wrote@"Senpai" @"mumu" today i learned that the whole forum doesn't talk about me
(
Do you love me [username] ?
Maybe you should join the Slack :^)

