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)

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 02:10 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.01130 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (5)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
  • (7)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