vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Total Posts and Threads of the User in Navbar (https://vborg.vbsupport.ru/showthread.php?t=144829)

WhaLberg 04-13-2007 10:00 PM

Total Posts and Threads of the User in Navbar
 
I have done a search on the whole forum but all I found was this, so I decided to publish this mod here.

ABOUT THE MOD:
This mod adds to navbar how many posts the user posted and how many threads the user opened in total. You may check the screenshot. This hack will work with 3.5.x and 3.6.x.

HOW TO INSTALL THE MOD:
1) Upload the plugin through your AdminCP -> Plugin System -> Download / Upload Plugin.

2) Go to your navbar and find:
HTML Code:

<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
Add after:
HTML Code:

<br />You have <a href="search.php?do=finduser&u=$bbuserinfo[userid]">$totalpost posts</a> and <a href="search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">$totalthread threads</a>.
Please do not forget to update your counters from your AdminCP -> Maintenance -> Update Counters.

That's all. :)

Good luck.

Update Informations:
- No queries for counting user's post.

Beermonster 04-14-2007 12:55 PM

Thanks will check it out.

edit: for some reason it give me the totally wrong figures

Barakat 04-14-2007 01:35 PM

great ,,,, works fine . thanks

rayw 04-14-2007 02:10 PM

Thanks, looks good! :)

EDIT: Install was easy and it works fine.

Subah 04-14-2007 06:13 PM

Cool :)

hnjco 04-15-2007 04:21 PM

Installed but giving me wrong info of posts. plus my forum become slow and as soon i uninstall forum speed was normal like before. i try 2 time and both time forum become slow.

on My forum avg online users are around 350+ at one time.

auctionguy 04-15-2007 07:03 PM

It seems to be working for me! 3.6.5 Just installed and marked it installed BTW!! I love it!! Nice work!

WhaLberg 04-16-2007 07:03 AM

Quote:

Originally Posted by hnjco (Post 1228412)
Installed but giving me wrong info of posts. plus my forum become slow and as soon i uninstall forum speed was normal like before. i try 2 time and both time forum become slow.

on My forum avg online users are around 350+ at one time.

Do not forget to update your statistics and post counts hnjco.

rayw 04-18-2007 11:14 AM

There is a little bug in this mod. Whenever I have it enabled and a user goes to register, it shows up the username Unregistered in the username field.

BuRaCh 09-15-2007 07:43 AM

nice idea.thank you.
İnstalled;)


All times are GMT. The time now is 09:50 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.01048 seconds
  • Memory Usage 1,734KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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