PDA

View Full Version : Mini Mods - Total Posts and Threads of the User in Navbar


WhaLberg
04-13-2007, 10:00 PM
I have done a search on the whole forum but all I found was this (https://vborg.vbsupport.ru/showthread.php?t=93940), 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:
<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:
<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
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
1) Upload the plugin through your AdminCP -> Plugin System -> Download / Upload Plugin.

2) Go to your navbar and find:

<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:


<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

$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
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:

<td class="vbmenu_control"><a href="misc.php?do=topstats">$vbphrase[top_statistics_navbar]</a></td>

This is top statistic Nav1:

<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:
<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:
<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...