View Full Version : Random smilies available on new replies.
JTMON
12-09-2001, 12:34 PM
Here's one that I'm not even sure how easy/hard it is. One of my members wanted to have it so when you click to reply to a thread, the smilies box on the left will have random ones from your total collection so that they would be encouraged to use different smilies and not have to click the get more button. I would love this hack as increasing the number of smilies in that box breaks my table border so I had to only allow 18 smilies in that box vs. 30
Admin
12-09-2001, 12:47 PM
In functions.php replace this:
if ($smtotal > 0) {
$smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie");
with:
if ($smtotal > 0) {
$smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie ORDER BY RAND()");
JTMON
12-09-2001, 12:49 PM
Chen, Chen, Chen,
THANK YOU!!!!!!
THANK YOU!!!!!!
THANK YOU!!!!!!
JTMON
12-09-2001, 01:10 PM
Working like a Charm!!
Admin
12-09-2001, 01:14 PM
No problem. :D
JTMON
12-09-2001, 01:17 PM
Are you going to release this? It's a big help to those of us that have 120+ smilies hehehe.......
I have used this hack forever but now just won't work anymore with 2.3.2 hmmm did i do something
assassingod
10-29-2003, 09:42 AM
[QUOTE=Kewl]I have used this hack forever but now just won't work anymore with 2.3.2 hmmm did i do something
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.