vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Most Popular Avatar on Forum Home 1.0 (https://vborg.vbsupport.ru/showthread.php?t=51476)

N9ne 04-10-2003 10:00 PM

Most Popular Avatar on Forum Home 1.0
 
// 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

Quote:

Today at 05:54 PM Mist said this in Post #6
Would be good to cache this ;)?

Probably would be good, but how? :p

Sebastian 04-11-2003 08:59 PM

Quote:

Today at 02:19 PM N9ne said this in Post #7
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?


All times are GMT. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01039 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete