MyBB Community Forums

Full Version: Random smilies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have a lot of smilies on my forum but is there a way that you see "random" emotes everytime you open a topic or post a reply?

Hope you understand me. :$

Problem solved.
function custom_shuffle($my_array = array()) {
$copy = array();
while (count($my_array)) {
// Random Smilies By IksDee
$element = array_rand($my_array);
// http://www.iksdee.nl
$copy[$element] = $my_array[$element];
//www.iksdee.nl
unset($my_array[$element]);
}
return $copy;
}
$smiliecache = custom_shuffle($smiliecache);