vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - ThreadNav: scrolling New Posts navigation bar for Showthread (https://vborg.vbsupport.ru/showthread.php?t=273500)

Alan_SP 12-01-2011 01:21 PM

How server intensive is this mod? Does it do one search for all users who have access to it, or one search for each user every minute (or whatever we specify in ACP)?

nerbert 12-03-2011 12:14 AM

Quote:

Originally Posted by penmai.com (Post 2271164)
Let me know which template i have to edit. i am using vb4.1.5.

Sorry I didn't get back to this earlier. Thanksgiving vacation, business, blah blah blah.....

I think this should do it -- Modify the ThreadNav Search plugin as follows:

PHP Code:


if(($vbulletin->options['TN_onoff'] AND $show['member']  
AND 
$vbulletin->userinfo['tn_control'] != 0
OR (!
$show['member'] AND $vbulletin->options['TN_allow_guests'])) 

    
$threadbits search(); 
    if(
$numthreads 0
    {         
        
$templater vB_Template::create('threadnav'); 
            
$templater->register('threadbits'$threadbits); 
        
//$template_hook['showthread_above_posts'] .= $templater->render(); 
        
$templatevalues['threadnav'] = $templater->render(); 
        
vB_Template::preRegister('SHOWTHREAD'$templatevalues);
    }         

if(
$_REQUEST['do'] == search

    
$threadbits search(); 
    die(
$threadbits); 


Now place {vb:raw threadnav} wherever you wish in the navbar template. If the drop boxes don't show I'll have to find the appropriate division and edit in a z-index. See how it works.

nerbert 12-03-2011 12:16 AM

Quote:

Originally Posted by Alan_SP (Post 2273661)
How server intensive is this mod? Does it do one search for all users who have access to it, or one search for each user every minute (or whatever we specify in ACP)?

I searches every minute for every member. You can set the refresh interval to a very large number and save server loading and bandwidth

osix 12-05-2011 07:26 PM

i just install it on my new forum 4.1.8
after some setting it does not seem to appear .

any idea .

nerbert 12-05-2011 11:18 PM

Do you have any other product that puts anything at the top of the showthread page?

nerbert 12-06-2011 12:23 AM

If you don't have any other products at the top of showthread I'll have you do a simple diagnostic. Paste the following in at the bottom of the Threadnav Search plugin:

PHP Code:

$diagnose 1;
if(
$vbulletin->userinfo['username'] == 'osix' AND $diagnose == 1)
{
        die(
$numthreads ' threads found');


Change "osix" to your forum username. Refresh showthread and you should get a white page with the number of threads found in the search. If you have just clicked "Mark Forums Read" you won't get any results until someone posts a new thread. You may want to go to your user settings and click on ThreadNav Control and switch to "Today's Posts". You can disable the code I just posted by editing $diagnose to a value of 0

bada_bing 12-19-2011 03:48 AM

I like this mod but I would like to see a feature that allows you to only include the forums you want to show up rather then exclude forums, I have way more forums I want to exlude then include and this becomes a pain to manage when you have sponsors that come and go and forums that get altered.

thang28101993 01-19-2012 11:58 PM

not work http://downloadphimhd.com, help me

nerbert 01-20-2012 01:17 PM

Quote:

Originally Posted by thang28101993 (Post 2290046)
not work http://downloadphimhd.com, help me

This hasn't been working for some other people either and I'm not sure why.

Try this:

Admin CP > Options > General Settings > Thread/Forum Read Marking Type.

If it's not set to "Database (automatic forum marking)", change it to that and put some number in the next option if there isn't one there already. See if that makes it work.

osix 03-02-2012 10:27 PM

is this working for 4.1.10


All times are GMT. The time now is 07:40 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.02039 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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