vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Release] Top Thread Starter/Top Poster (https://vborg.vbsupport.ru/showthread.php?t=85500)

Brad 11-30-2002 10:00 PM

[Release] Top Thread Starter/Top Poster
 
Author: Converted to phpinclude by Anime-loo, Based off Lesanes hack for 2.0.3
Description: This modification will add two new stats to index.php. It will show the top poster/thread starter, link to their profile, show their amount of posts/threads.
Demo: N/A
Screenshot: In next post.
Warning: This will add 2 queries to index.php (the most bust page on your forum). Not recomended for large boards to install this.

Brad 12-01-2002 05:41 AM

Screenshot.

Tony G 12-01-2002 06:32 AM

Very popular hack, will do well in template forum. Nice job! :)

Cypher720 12-01-2002 01:16 PM

nice job..i really like this;)

I'll install this with version 3

Rufus69 12-01-2002 01:41 PM

-_- now mine is obsolete..

filburt1 12-01-2002 03:35 PM

This is two queries, so beware. I think it can be combined into one, though, investigating...

otacon 12-01-2002 03:56 PM

very cool

Brad 12-01-2002 07:14 PM

Quote:

Originally posted by filburt1
This is two queries, so beware. I think it can be combined into one, though, investigating...
yea, i ran it on a board about 8 months ago and it seemed fine as the queries its running are small, but im adding a warning to the frist post.

assassingod 12-04-2002 06:57 PM

I like it:)
If I wanted to add just top posters, I would add this to the phpinc code?

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
}

then add this to forumhome

<b>Top Poster:</b> <a href="member.php?&action=getinfo&userid=$topposter s[userid]"><b>$topposters[username]</b></a>(with $topposters[posts] posts)


Right? :)

Brad 12-04-2002 07:06 PM

correct.


All times are GMT. The time now is 01:44 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.00982 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete