Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
Random Smilies when Posting
Random Smilies when Posting(newThread)
Edit : inc/functions.php
Find :
reset($smiliecache);
-----------------------
Add Below :
function custom_shuffle($my_array = array()) {
$copy = array();
while (count($my_array)) {
// Random Smilies By Andy
$element = array_rand($my_array);
// http://www.persiandc.ir
$copy[$element] = $my_array[$element];
//www.persiandc.ir/forums
unset($my_array[$element]);
}
return $copy;
}
$smiliecache = custom_shuffle($smiliecache);
-------------------------
Source: http://www.persiandc.ir/forums
By : Andy
Demo : http://www.persiandc.ir/forums