The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Most popular smilie !
i would like to display the most used smilie on forumhome ! is this possible ? ? eg :
most popular smilie = : :cross-eyed: has been used 504 times in the forums ! thanks ! |
#2
|
||||
|
||||
well, yes it's possible, but it would be quite intensitve to get the value, as long as noone knows a good query i wouldn't do it
|
#3
|
||||
|
||||
so is there a possiblility that a coder wood b able 2 do it , or is this too intense ? ?
|
#4
|
||||
|
||||
i just know a tooooo intense way.
it's because you have to go through each posts pagetext and count how often every smilie is used in it..... if you are on a hosted server your host would contact you very soon |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
they wouldn't be amused of the strongly increased serverload
especially on forumhome this could kill every server |
#7
|
||||
|
||||
seriously ive gotta think more carfully of my requests lol so wood it b possis just to grab the most used smilie and not have it say "has been used XXX times " ?
|
#8
|
||||
|
||||
no, if you give out the number or not doesn'T help, the problem is to find out how often a smilie has been use so you can say it's the mostused one...
|
#9
|
||||
|
||||
right wood u know of any other hacks along these lines to add a bit of FUN stats to forumhome ?
|
#10
|
||||
|
||||
I agree with Stefan. Easy way is too server intensive and your hosting company will kick you out at no time if you use such an algorithm.
However if any hackers take it, here is an algorithm which requires more hacking but is performance friendly: (Don't look at me, I don't have time, sorry!) You can add a new field to smilie table named "usagecount" and populate this field with a script once. Then you can hack newreply.php, newthread.php, editpost.php and private.php and apply a hack which updates this field on the fly whenever a new post is sent by counting the smilies. Then queries and smilies stats can easily be compiled without any server load. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|