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

Sometime between the time I started this thread and now I went from "Contributor" to "Coder". I take that very seriously. It's my duty to get this working!

Erica1977 11-09-2011 03:40 AM

Quote:

Originally Posted by nerbert (Post 2265903)
Sometime between the time I started this thread and now I went from "Contributor" to "Coder". I take that very seriously. It's my duty to get this working!

hehe just notice that great! :up:

nerbert 11-09-2011 04:19 AM

Erica1977, try this:

In "threadnav" replace function setWidth() with this:

Code:

                function setWidth() {
                        var n=list.innerHTML.match(/<td id="td_|<td class="blank">/gi).length;
                        var tableWidth=(width)*n;
                        fetch_object('table').style.width=''+tableWidth+'px';
                        for(i=0; i<cells.length; i++) {
                            if(cells[i].id.match(/td_\d/i)||cells[i].className=='blank'){
                                cells[i].style.width=''+(width)+'px';
                            }
                        }
                }

At the top of "threadnav_bit" replace <td> with this:
Code:

<td id="td_{vb:raw thread.threadid}">

Erica1977 11-09-2011 04:30 AM

Quote:

Originally Posted by nerbert (Post 2265911)
Erica1977, try this:

In "threadnav" replace function setWidth() with this:

Code:

                function setWidth() {
                        var n=list.innerHTML.match(/<td id="td_|<td class="blank">/gi).length;
                        var tableWidth=(width)*n;
                        fetch_object('table').style.width=''+tableWidth+'px';
                        for(i=0; i<cells.length; i++) {
                            if(cells[i].id.match(/td_\d/i)||cells[i].className=='blank'){
                                cells[i].style.width=''+(width)+'px';
                            }
                        }
                }

At the top of "threadnav_bit" replace <td> with this:
Code:

<td id="td_{vb:raw thread.threadid}">

Ok did the 3 that was messed up only go take a look please.

nerbert 11-09-2011 04:55 AM

Well it's finally working.

I know there's a problem with the drop boxes not closing when you exit on the right side but I have that fixed in the file I'm going to upload to the opening post. I also see a misalignment of borders between the cell and the drop box on the left side, I'll look into that too. When I get the new file up the changes will be compatible with all your other styles so no need to make any exceptions.

Erica1977 11-09-2011 05:00 AM

Quote:

Originally Posted by nerbert (Post 2265919)
Well it's finally working.

I know there's a problem with the drop boxes not closing when you exit on the right side but I have that fixed in the file I'm going to upload to the opening post. I also see a misalignment of borders between the cell and the drop box on the left side, I'll look into that too. When I get the new file up the changes will be compatible with all your other styles so no need to make any exceptions.

Thanks for helping me out and putting up with me lol as you can see most of this thread of your mod has more post of me than anybody else hehe anyway yea about the drop box your correct and again Thanks! :up: :)

nerbert 11-09-2011 05:21 AM

The problem you had would affect anyone who uses those styles and now I see your original problem and the mess-up you had later were related. That same problem could have affected other mods and styles too. It's a good thing all those issues came up right away before I forgot some of the details of how the JavaScript works.

All in all it's a better product now.

I'll get that new file up and I think I have a guess why those borders don't align properly. More on that later.

Erica1977 11-09-2011 05:29 AM

Quote:

Originally Posted by nerbert (Post 2265925)
The problem you had would affect anyone who uses those styles and now I see your original problem and the mess-up you had later were related. That same problem could have affected other mods and styles too. It's a good thing all those issues came up right away before I forgot some of the details of how the JavaScript works.

All in all it's a better product now.

I'll get that new file up and I think I have a guess why those borders don't align properly. More on that later.

Well Glad we caught it now no one will have at least the issues i had!

nerbert 11-09-2011 05:53 AM

An improved version of the ThreadNav file is now available. I hope this is the last change but we'll just have to see if more issues come up.

@Erica1977, I'll have a look at your site tomorrow and see if I can figure out that border alignment problem if it's still there with the new file.

Erica1977 11-09-2011 06:03 AM

Quote:

Originally Posted by nerbert (Post 2265939)
An improved version of the ThreadNav file is now available. I hope this is the last change but we'll just have to see if more issues come up.

@Erica1977, I'll have a look at your site tomorrow and see if I can figure out that border alignment problem if it's still there with the new file.

Ok well i update it to the one you post it public.


All times are GMT. The time now is 10:52 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.01290 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (5)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