Version: 1.00, by JTMON
Developer Last Online: May 2007
Version: 2.2.x
Rating:
Released: 01-15-2002
Last Update: Never
Installs: 44
No support by the author.
Ok first, 100% of the credit for this goes to FireFly aka Chen
I had requested this and he answered. I have tested this on 2.2.0 through 2.2.5 and with vbPortal and it has worked great. This was my original question:
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
I posted this here so I could have it on my install list and for anyone else wanting this.
The file you edit is admin/functions.php
Replace:
Code:
if ($smtotal > 0) {
$smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie");
With this:
Code:
if ($smtotal > 0) {
$smilies = $DB_site->query("SELECT title, smilietext, smiliepath FROM smilie ORDER BY RAND()");
Once again, my thanks to FireFly and all the Hackers!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It caused all default links to no longer work. It was probably something hokey Dreamweaver did on me, but I thought it was worth mentioning. I fixed the problem code using the original file and now it's working with the hack in place.
I have like 500+ smilies (yeah I know, I know) and some are just STOOPID sizes and whatnot.. would there be anyway to have it just randomize certain smilies and exclude others?
im got fireflys (my hero) smilie order edit installed, and I just number like the MAIN smilies 0 (so they show up first) then the semi-good ones 1 (so they show up next) then the rest are numebred 2.. so would there be a way to randomize the smilies in the 0 or just 1, or just 2 group?
I have been looking for a hack which does not seem to exist, this is kind of on the same lines so i am hoping you might be interested in this hack.
New area in admin panel.
Allows you to set the smilies in Posts to be displayed ramdomly or pick the ones you wish from your smilies list to display in the New Post area.
Also allows option to display smilies in Get More as ramdom but also allows you to select how many smilies should appear in Get More before splitting the page.
For example if you have 400 smilies and you set the number to split at 50. The result would be 8 seperate pages with the smilies on.
This is much better - i have lots of smilies and they all display on one page. Many of the smilies i have are animated and the server cannot cope with so many on one page. I think a lot of people have this problem. The result is many of the smilies do not show as a graphic.