PDA

View Full Version : Most Popular Avatar on Forum Home 1.0


N9ne
04-10-2003, 10:00 PM
// Most Popular Avatar on Forum Home
-- // A hack by N9ne, Copyright N9ne 2003+
-- // Created on 11th April 2003

// Description
-- // This hack will display the most popular avatar, ie.
the most used avatar, on forumhome.

// What needs to be done to install the hack
-- // Add some code to index.php

corsacrazy
04-11-2003, 01:51 PM
nice idea ! how many queries does it add (sorry if a dumb question)

wood it b poss 4 u to make "most popular smilie on forum home" ! cheers

N9ne
04-11-2003, 02:06 PM
It adds one query to forumhome.

I don't know how to make the most popular smilie appear, as I'm not even sure if it's possible to search through posts counting how many times each smilie is used, etc. etc.

It would be far too intensive to do the same for smilies though, even if it is possible.

LangTuDaTinh
04-11-2003, 03:11 PM
how can u determine which is the most popular????

N9ne
04-11-2003, 03:51 PM
It does it automatically, based on how many users are using the avatar.

Dean C
04-11-2003, 04:00 PM
Would be good to cache this ;)?

N9ne
04-11-2003, 05:25 PM
Today at 05:54 PM Mist said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=380644#post380644)
Would be good to cache this ;)?


Probably would be good, but how? :p

Sebastian
04-11-2003, 08:59 PM
Today at 02:19 PM N9ne said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=380668#post380668)
Probably would be good, but how? :p

you could make a table that stores the info and have it update it on a preset time, like once an hour.

Dean C
04-12-2003, 10:02 AM
Indeed if someone could help n9ne do this then i can pinch the code and again learn from it ;)

N9ne
04-12-2003, 10:44 AM
The problem with storing the information in a separate table, is:

1. Another table is added
2. There will still be one query required, to retrieve the data from the table
3. Somewhere, an update must be run, albeit even if it is automatic, some form of query will be run then...

GXON.matt
04-13-2003, 05:02 AM
Is it possible to make the avatar come with the number of people using it in text?