2005-07-20, 08:13 PM
After moving from PhpBB to MyBB on our own forums, we decided to release this small mod.. It allows your users to show what they are playing with a simple modification to your forum. They must sign up at Gerpok.com in order to use this feature.
Usage: [playing]Gerpok Username[/playing]
Example: [playing]Quiky[/playing]
which results in the image below.
Note, the Now Playing bar only displays once per page.
Installation:
inc/functions_post.php
Remember, change BGCOLOR and FCOLOR to match your forum!
(BGColor is background, Fcolor is the text).
Usage: [playing]Gerpok Username[/playing]
Example: [playing]Quiky[/playing]
which results in the image below.
Note, the Now Playing bar only displays once per page.
Installation:
inc/functions_post.php
// AFTER
while(preg_match("#\[list=(a|A|i|I|1)\](.*?)\[/list\]#esi", $message))
{
$message = preg_replace("#\[list=(a|A|i|I|1)\](.*?)\[/list\]#esi", "dolist('$2', '$1')", $message);
}
// INSERT
while(preg_match("#\[playing\](.*?)\[/playing\]#si", $message))
{
$message = preg_replace("#\[playing\](.*?)\[/playing\]#si", "<script src=\"http://gerpok.com/view/js.php?username=$1&bgcolor=CCCCCC&fcolor=000000\" ></script><br />", $message);
}
Remember, change BGCOLOR and FCOLOR to match your forum!
(BGColor is background, Fcolor is the text).