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;)

mgurain 10-01-2007 08:37 AM

can't be without manual template edit ?

WhaLberg 10-06-2007 10:08 AM

Auto template edits may cause problems in your custom templates, that's why it's better for you to edit manually.

deLi_kurT 05-07-2008 09:31 AM

Thanks - Teşekkürler.

WhaLberg 05-11-2008 02:24 AM

This plugin works with 3.7, so 3.7 users can use it.

Super Jinni 05-16-2008 02:04 PM

works fine on 3.7

is there any way to show the numbers of replies too?

thanks for the nice work...

Super Jinni 05-18-2008 07:25 PM

OK, installed and works fine -at least most of the time- because I have a small issue with it

when I visit some pages in the forum the numbers of threads and posts disappear, if there is anyway to fix this?

and I have vbadvanced portal, when I'm in the homepage of the vbadvanced portal, the numbers of threads and posts disappear too!

I hope and I think you can fix this small problem because this hack is very good and I really like it and users like it too

thans

:)

Super Jinni 05-21-2008 01:39 PM

any ideas how to make this works with VBA please?

the number of threads and posts doesn't show up in the vbadvanced portal, any help?

Super Jinni 05-24-2008 12:57 PM

this thread is supported, isn't it?

my issue with this is that threads and posts number appear in some pages but in some pages of the forums they don't show up, just the word threads and post without numbers, how to fix this, please?

Super Jinni 05-24-2008 12:58 PM

anyway, I think this doesn't work well with 3.7

I think it is needed to be updated to work fine with 3.7 gold

jbd 05-26-2008 03:51 PM

I don't get how to install this, any assistance would be welcome :(

Do PM if you feel the need.

Super Jinni 05-26-2008 07:12 PM

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?

jbd 05-29-2008 01:39 AM

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?

jeefo 05-29-2008 02:33 PM

nice one ,,,

work good with 3.7 :)

Super Jinni 05-29-2008 06:10 PM

Quote:

Originally Posted by jbd (Post 1534639)
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?

jbd 05-31-2008 03:27 PM

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?

Super Jinni 06-01-2008 09:08 AM

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>

creative-friend 04-17-2010 11:09 PM

Thank You...


All times are GMT. The time now is 04:54 PM.

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.01157 seconds
  • Memory Usage 1,784KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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