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)

nerbert 11-09-2011 03:42 PM

Erica1977, when you get the new file installed and everything is reverted, if you still have that border mis-alignment problem try replacing function show(type, id) with this:

Code:

                function show(type, id) {
                        var cell    = fetch_object('cont_'+id);
                        var field    = fetch_object('threadnav').parentNode;
                        field.style.position='relative';
                        field.style.zIndex=1;
                        var scroll  = fetch_object('threadlist').scrollLeft;
                        var offset  = cell.offsetLeft;
                        var drop    = fetch_object(type+'_'+id);       
                        var nav      = fetch_object('threadnav');
                        var left    = fetch_object('left');
                        var right    = fetch_object('right');       
                        var delta1  = left.offsetLeft + 17;
                        var delta2  = right.offsetLeft - width - 1;       
                        var position = offset-scroll - 1;
                        if(position < delta1) {
                                list.scrollLeft += position - delta1;
                                drop.style.left =''+(delta1)+'px';
                        }
                        else if(position > delta2) {
                                list.scrollLeft += position - delta2;
                                drop.style.left =''+(delta2)+'px';
                        }   
                        else {
                                drop.style.left =''+(position)+'px';
                        }
                        nodelay=1;
                        deltaY = 41;
                        drop.style.top=''+(nav.offsetTop + deltaY)+'px';
                        drop.style.display='block';
                        dropWidth=type=='info'?width:(width+36);
                        drop.style.width=''+(dropWidth-1)+'px'
                        var border='1px solid {vb:stylevar postbit_background.backgroundColor}';
                        fetch_object('name_'+id).style.borderBottom=border;
                }


Erica1977 11-09-2011 03:55 PM

Quote:

Originally Posted by nerbert (Post 2266090)
Erica1977, when you get the new file installed and everything is reverted, if you still have that border mis-alignment problem try replacing function show(type, id) with this:

Code:

                function show(type, id) {
                        var cell    = fetch_object('cont_'+id);
                        var field    = fetch_object('threadnav').parentNode;
                        field.style.position='relative';
                        field.style.zIndex=1;
                        var scroll  = fetch_object('threadlist').scrollLeft;
                        var offset  = cell.offsetLeft;
                        var drop    = fetch_object(type+'_'+id);       
                        var nav      = fetch_object('threadnav');
                        var left    = fetch_object('left');
                        var right    = fetch_object('right');       
                        var delta1  = left.offsetLeft + 17;
                        var delta2  = right.offsetLeft - width - 1;       
                        var position = offset-scroll - 1;
                        if(position < delta1) {
                                list.scrollLeft += position - delta1;
                                drop.style.left =''+(delta1)+'px';
                        }
                        else if(position > delta2) {
                                list.scrollLeft += position - delta2;
                                drop.style.left =''+(delta2)+'px';
                        }   
                        else {
                                drop.style.left =''+(position)+'px';
                        }
                        nodelay=1;
                        deltaY = 41;
                        drop.style.top=''+(nav.offsetTop + deltaY)+'px';
                        drop.style.display='block';
                        dropWidth=type=='info'?width:(width+36);
                        drop.style.width=''+(dropWidth-1)+'px'
                        var border='1px solid {vb:stylevar postbit_background.backgroundColor}';
                        fetch_object('name_'+id).style.borderBottom=border;
                }


Ok go look only on btech red only did it to that style .

nerbert 11-09-2011 04:12 PM

That seems to fix it.

Now I have to update the file again. Well, some day I'll get this perfect.

I'll post here when the fixed file is edited into the OP.

nerbert 11-09-2011 04:42 PM

Updated file in opening post.

Erica1977, when you get everything updated I have some ideas for getting the scroll buttons in seamus style looking better.

Will check back later.

Erica1977 11-09-2011 05:00 PM

Quote:

Originally Posted by nerbert (Post 2266112)
Updated file in opening post.

Erica1977, when you get everything updated I have some ideas for getting the scroll buttons in seamus style looking better.

Will check back later.

Ok going to update now Thanks! :up:

Erica1977 11-09-2011 05:47 PM

Ok have to go out be back soon.

nerbert 11-09-2011 06:20 PM

Looks like you need to revert templates again. I'm having that problem with drop boxes not closing when I exit out the left side.

nerbert 11-09-2011 08:03 PM

I looked and those are the right templates. I shall have to scratch my head and rub my chin and get a very serious look on my face. That usually works when I need to figure something out.

Ahmet Turan 11-09-2011 08:59 PM

thanx

Erica1977 11-09-2011 10:15 PM

Quote:

Originally Posted by nerbert (Post 2266205)
I looked and those are the right templates. I shall have to scratch my head and rub my chin and get a very serious look on my face. That usually works when I need to figure something out.

so are they correct my templates cause i know i reverted them.


All times are GMT. The time now is 11:26 AM.

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.01458 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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