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)

Erica1977 11-10-2011 11:40 PM

Quote:

Originally Posted by Erica1977 (Post 2266760)
ok just changed it with this code btech red.

Did UO Purple and UO Blue as well.

nerbert 11-11-2011 02:54 AM

I've watched that page load several times and can see no general method of catching it at just the right stage with any general purpose code. There's just too many things going on with all those modifications.

But ....

Here's a little work-around just for your site. Find
Code:

                listWidth=fetch_object('right').offsetLeft-19-17+1;
near the bottom of threadnav and just below it add this line
Code:

                if(',50,29,31,41,'.match(/{vb:raw style.styleid}/))listWidth-=34;
It anticipates the problem styles will shrink 34 pixels horizontally and subtracts that much from the calculated width of the space available.

Erica1977 11-11-2011 02:57 AM

Quote:

Originally Posted by nerbert (Post 2266815)
I've watched that page load several times and can see no general method of catching it at just the right stage with any general purpose code. There's just too many things going on with all those modifications.

But ....

Here's a little work-around just for your site. Find
Code:

                listWidth=fetch_object('right').offsetLeft-19-17+1;
near the bottom of threadnav and just below it add this line
Code:

                if(',50,29,31,41,'.match(/{vb:raw style.styleid}/))listWidth-=34;
It anticipates the problem styles will shrink 34 pixels horizontally and subtracts that much from the calculated width of the space available.

which style all?

nerbert 11-11-2011 03:21 AM

Duh! I didn't need to figure out that fancy conditional, each style has its own template (It's been a long day)

Just put in

Code:

                listWidth-=34;
in the templates for btech red and all the styles below it in the list.

Erica1977 11-11-2011 03:46 AM

Quote:

Originally Posted by nerbert (Post 2266818)
Duh! I didn't need to figure out that fancy conditional, each style has its own template (It's been a long day)

Just put in

Code:

                listWidth-=34;
in the templates for btech red and all the styles below it in the list.

ok where do i add this line under what.

nerbert 11-11-2011 04:06 AM

Same place as I stated earlier.

socialteenz 11-11-2011 04:49 PM

Installed & nominated :)

*****

nerbert 11-11-2011 05:45 PM

Quote:

Originally Posted by socialteenz (Post 2266980)
Installed & nominated :)

*****

Thanks!

Do check back, I'm working on an upgraded version that will work with more styles. The present version will work with most styles but I'm trying to get it more general.

nerbert 11-11-2011 09:03 PM

Erica1977, I think the problem here is your min-width setting. When btech page loads it resizes twice, first for the scrollbar and then again when all the forum content is finished. As far as I know the body min-width + all the padding, borders, outline and margins must add to less than 1024 regardless of how wide the user has the page. You have it set at 980px which is much too wide. I think you could set that as low as 650px. Go to StyleVars > Common > doc-minWidth and try something much smaller, then check if the page has to resize. This should speed page loading and make it a lot cleaner.

The next thing to do is eliminate the resizing for the scrollbar. Practically every vBulletin page is too tall to display on the screen so they all need scrollbars. But as it is now the page loads starting at the top, and when it gets to the bottom of the window it has to stop, put in a scrollbar, resize eveything and proceed to finish the page. It ought to have a scrollbar from the get-go. If you want to fix this for SHOWTHREAD only go to the SHOWTHREAD template and find the body tag and add style="overflow-y:scroll;" inside the tag. But a simpler way to do it for all pages is go to vbulletin.css and in the .body properties add the line overflow-y:scroll;. There is only one page I know of that doesn't need a scrollbar and that's the vBulletin Message page, but who's going to notice an inactive scrollbar there anyway?

Once this project is done I'm doing this for all my styles.

Now to get rid of the attempts to fix ThreadNav: If changing min-width eliminates the resizing of the page you can get rid of the line I suggested earlier. And if you add the scroll property to vbulletin.css, then in threadnav, go to the line

listWidth=fetch_object('right').offsetLeft-19-17+1;

and edit out "-17" (And you thought I was just too lazy to do my arithmetic!)

FReeSTER 11-12-2011 10:12 AM

For some reason any of the updates seen to work at my board. I dont see the navbox


All times are GMT. The time now is 11:01 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.01749 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_code_printable
  • (4)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