inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Feb 29, 2020 17:32:47 GMT -8
Hi... I have a question about the coding for duplicating the navigation bar at the bottom of a thread as mentioned in this thread below: support.proboards.com/thread/655077/duplicating-navbar-bottomWhen I use the coding provided in that thread and add it to the Global Header, the navigation bar is duplicated below the affiliate table. How do I code it so that the duplicated navigation bar appears below the quick reply and above the shout box? Thanks for the help!
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Feb 29, 2020 18:25:21 GMT -8
How do I code it so that the duplicated navigation bar appears below the quick reply and above the shout box? Hi Shaliza That's the Navigation Tree. I think we can just make one slight tweak on Scott 's script to place it before an element with the classes shoutbox, container, and full, rather than before the element footer. Try this and let me know if it works for you: <script type="text/javascript"> $(document).ready(function(){ var navTreeTop = $('#navigation-tree').offset().top + $('#navigation-tree').height(); $(window).scroll(function(){ if($(window).scrollTop() > navTreeTop && !$('#navigation-placeholder').length){ $('#navigation-tree').before('<div id="navigation-placeholder"></div>').insertBefore('.shoutbox.container.full'); $('#navigation-placeholder').height($('#navigation-tree').height()).css('margin-bottom',$('#navigation-tree').css('margin-bottom')); } else if($(window).scrollTop() < navTreeTop && $('#navigation-placeholder').length) { $('#navigation-tree').insertAfter('#navigation-placeholder'); $('#navigation-placeholder').remove(); } }); }); </script>
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Feb 29, 2020 18:36:22 GMT -8
Thank you so much, Retread. That worked perfectly to have the Navigation Tree below the Quick Reply Box and above the Shout Box. I really appreciate the help.
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Mar 2, 2020 20:29:21 GMT -8
I tried the coding on my forum and it doesn't even show up, except in the title bar of the shoutbox, which is only on the home page of the forum.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 3, 2020 8:55:41 GMT -8
I tried the coding on my forum and it doesn't even show up, except in the title bar of the shoutbox, which is only on the home page of the forum. That makes sense. The script Scott wrote removes the nav tree from the page after you scroll it off the screen, then places it before the footer. The change I made, places it before the shoutbox instead of before the footer. Without the shoutbox on the page, the script has nowhere to place it.
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Mar 3, 2020 19:35:15 GMT -8
Hello NscalerrSorry the code did not work for you since your shout box is only on the home page. I originally tried to use the coding which was provided by Scott in this thread... support.proboards.com/thread/655077/duplicating-navbar-bottom<script type="text/javascript"> $(document).ready(function(){ var navTreeTop = $('#navigation-tree').offset().top + $('#navigation-tree').height(); $(window).scroll(function(){ if($(window).scrollTop() > navTreeTop && !$('#navigation-placeholder').length){ $('#navigation-tree').before('<div id="navigation-placeholder"></div>').insertBefore('footer'); $('#navigation-placeholder').height($('#navigation-tree').height()).css('margin-bottom',$('#navigation-tree').css('margin-bottom')); } else if($(window).scrollTop() < navTreeTop && $('#navigation-placeholder').length) { $('#navigation-tree').insertAfter('#navigation-placeholder'); $('#navigation-placeholder').remove(); } }); }); </script>
This is the original code without the editing that I asked for, which Retread was kind enough to provide. Hope this unedited version will work for you.
|
|