Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Total Posts and Threads of the User in Navbar Details »»
Total Posts and Threads of the User in Navbar
Version: 1.1, by WhaLberg WhaLberg is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.5 Rating:
Released: 04-13-2007 Last Update: 12-04-2007 Installs: 35
DB Changes Uses Plugins Template Edits
 
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:

Comments
  #22  
Old 05-26-2008, 07:12 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
1) Upload the plugin through your AdminCP -> Plugin System -> Download / Upload Plugin.

2) Go to your navbar and find:

PHP 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> 
after that add the following code:


PHP 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.
is it clear?
Reply With Quote
  #23  
Old 05-29-2008, 01:39 AM
jbd jbd is offline
 
Join Date: Jul 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've gone to the navbar after installing it, but it doesn't have that code written 0.o

Odd?

Rather it has

Quote:
$search_text = "vbphrase[faq]</a></td>";
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.fetch_templa te('top_statistics_navbar'),$vbulletin->templatecache['navbar']);
Solutions?
Reply With Quote
  #24  
Old 05-29-2008, 02:33 PM
jeefo jeefo is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one ,,,

work good with 3.7
Reply With Quote
  #25  
Old 05-29-2008, 06:10 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jbd View Post
I've gone to the navbar after installing it, but it doesn't have that code written 0.o

Odd?

Rather it has



Solutions?
are you sure you -exactly- followed the instructions?
Reply With Quote
  #26  
Old 05-31-2008, 03:27 PM
jbd jbd is offline
 
Join Date: Jul 2004
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did it all.

I went to the Top statistics navbar option, there's navbar 1 and navbar.

Here's the code for Top statistics Navbar:

Quote:
<td class="vbmenu_control"><a href="misc.php?do=topstats">$vbphrase[top_statistics_navbar]</a></td>
This is top statistic Nav1:

Quote:
<tr>
<td class="alt1" align="right" nowrap="nowrap">
<b>$vbphrase[top_statistics_newest_member] :</b>
</td>
<td class="alt2" align="left">
$topposters
</td>
</tr>
<tr>
<td class="alt1" align="right" nowrap="nowrap">
<b>$vbphrase[top_statistics_most_repl] :</b>
</td>
<td class="alt2" align="left">
$maxthreadxs
</td>

</tr>
<tr>
<td class="alt1" align="right" nowrap="nowrap">
<b>$vbphrase[top_statistics_most_view] :</b>
</td>
<td class="alt2" align="left">
$maxviewxs
</td>

</tr>
<tr>
<td class="alt1" align="right" nowrap="nowrap">
<b>$vbphrase[top_statistics_most_forum] :</b>
</td>
<td class="alt2" align="left">
$maxforumxs
</td>

</tr>
Any help?
Reply With Quote
  #27  
Old 06-01-2008, 09:08 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it won't show in the navbar block

it will be under the welcome message..

so you should add the code:
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>.
after -or before- the code:
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>
Reply With Quote
  #28  
Old 04-17-2010, 11:09 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You...
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 01:06 AM.


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.10825 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (5)bbcode_quote
  • (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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_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