Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Avatar Usage Statistics in AdminCP 1.0 Details »»
Avatar Usage Statistics in AdminCP 1.0
Version: 1.00, by N9ne N9ne is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-10-2003 Last Update: Never Installs: 9
 
No support by the author.

// Avatar Usage Statistics In AdminCP
-- // A hack by N9ne
-- // Creation Date: 11th April 2003
-- // Copyright N9ne 2003+

// Description
-- // This hack will add an option in the 'Avatar' options, in your AdminCP.
The option will read 'Usage Statistics' and upon clicking on it, a page
will be brought up listing, ordered by # of users descending, avatar IDs
with the number of users using each avatar next to it. Avatars are not
displayed on the page as for some forums, this could be quite intensive!
Avatars which have no one using them will not be listed.

// What needs to be done to install this hack
-- // Modification of: admin/(index.php, avatar.php)

// Hack Requested by B Freeze

// Addons
-- // Search for avatars by avatar ID in adminCP.
-- // Show Avatar Image In Listing Too

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-12-2003, 08:09 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pretty cool, could you get it to display the avatar next to the picture?
Reply With Quote
  #13  
Old 04-12-2003, 08:13 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sabret00the, you probably mean display the avatar next to the ID, and yes, it's possible but you must know it will be quite intensive to load up the page, but I'll post up instructions for you to do so if you wish..
Reply With Quote
  #14  
Old 04-12-2003, 08:20 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Addon: Display Actual Avatar too
- Firstly install the actual hack, and then do these steps.

In admin/avatar.php, find:

PHP Code:
$get_the_info=$DB_site->query("SELECT COUNT( username ) AS users, avatar.avatarid, user.avatarid 
Replace that with:

PHP Code:
$get_the_info=$DB_site->query("SELECT COUNT( username ) AS users, avatar.avatarid, avatar.avatarpath, user.avatarid 


Find:

PHP Code:
<tr class='tblhead'><td align=\"center\" colspan=2><b> 
Replace that with:

PHP Code:
<tr class='tblhead'><td align=\"center\" colspan=3><b> 


Find:

PHP Code:
<tr class='".getrowbg()."'><td align=\"center\" nowrap><font size='1'> 
Replace that with:

PHP Code:
<tr class='".getrowbg()."'><td align=\"center\" nowrap><font size='1'><b>Avatar</b></font></td><td align=\"center\" nowrap><font size='1'> 


Find:

PHP Code:
            $numberusers=$the_info['users'];
            
$avatarid=$the_info['avatarid']; 
Replace that with:

PHP Code:
            $numberusers=$the_info['users'];
            
$avatarid=$the_info['avatarid'];
            
$avatar=$the_info['avatarpath']; 



Find:

PHP Code:
<tr class='".getrowbg()."'
Replace that with:

PHP Code:
<tr class='".getrowbg()."'><td align=\"center\" nowrap><img src=\"$bburl/$avatar\" border=\"0\"></td> 


Done!
Reply With Quote
  #15  
Old 04-15-2003, 03:44 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can one make this page availible to anyone when they edit their avatar - perhaps in the avatar page where you choose your avatar - place a number beside / under it saying how many people are currently using that avatar? Or is this another hack already released?
Reply With Quote
  #16  
Old 04-25-2003, 01:00 AM
MarkL MarkL is offline
 
Join Date: Apr 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After doing the add-ons, I recieved this error when trying to do anything with Avatars in the Admin CP....

"Parse error: parse error, expecting `','' or `';'' in /admin/avatar.php on line 57"

What does that mean?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06849 seconds
  • Memory Usage 2,263KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete