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
Random Smilies when Posting
Random Smilies when Posting by : http://www.persiandc.ir/forums
ٍ1- Edit " inc/functions.php "
2- Find :
reset($smiliecache);
3- Add to bottom :
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);
End !
آموزش فارسي :
http://www.persiandc.ir/forums/thread-5448.html