Back to vBulletin 3.5 Add-ons

Random smilies in posts/reply
Mod Version: 1.00, by GuaRRand

This modification is in the archives.
vB Version: 3.5.0 Rating: (1 vote - 3.00 average) Installs: 33
Released: 27 Oct 2005 Last Update: Never Downloads: 6
Not Supported Code Changes  

I edited the original 3.0.7 code, by BluPheonix, a bit to comply with 3.5.
Tetsed it with my 3.5 site and it works fine.

In includes/functions_editor.php find:

Code:
$smilies = $vbulletin->db->query_read("
				SELECT smilieid, smilietext, smiliepath, smilie.title,
				imagecategory.title AS category
				FROM " . TABLE_PREFIX . "smilie AS smilie
				LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
				ORDER BY imagecategory.displayorder, smilie.displayorder
			");
Replace it with:

Code:
$smilies = $vbulletin->db->query_read("
				SELECT smilieid, smilietext, smiliepath, smilie.title,
				imagecategory.imagetype AS category
				FROM " . TABLE_PREFIX . "smilie AS smilie
				LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
				ORDER BY rand()
			");
Should work fine!!

Download

No files for download.

Screenshots

 

Similar Mods

Random Smilies v1 vBulletin 3.0 Full Releases
Random Smilies in box on New Thread/Reply vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2025