Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2013, 02:34 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Back to top

How does one include a 'back to top' link in the navbar?
On the same note, can we also remove the 'back to top' link from the footer?

Thanks for you input...
Reply With Quote
  #2  
Old 11-28-2013, 02:50 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would you need a back to top in the navbar, your not far at all from the top.
Reply With Quote
  #3  
Old 11-28-2013, 03:06 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
How does one include a 'back to top' link in the navbar?
On the same note, can we also remove the 'back to top' link from the footer?

Thanks for you input...
Is it possible you worded your question incorrectly? Otherwise I have to agree with @Ozzy47 on this. Anyway, both are easy concepts, that we can provide you if this is what you really want.

What I do not understand is, the 'back-to-top' on the footer is needed -- you're at the bottom, compared to inserting it at the 'navbar' as @Ozzy47 stated is usually near the top.

Straighten us out!
Reply With Quote
  #4  
Old 11-28-2013, 03:10 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I just wanted clarification, both are quite possible.
Reply With Quote
  #5  
Old 11-28-2013, 03:26 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, to clear things up a tad...

I understand what it is you are telling me but due to my inability to code with any competence, my floating navbar efforts have prevented the 'back to top' link in the footer from working..

Also, the navbar is the navbar and as such, should be the main area of navigation..

I very rarely go to the bottom of the page and touch the footer but the floating thing is always there and I get used to it.. For myself, it just seems the most natural place to put the extra element 'back to top' in the navbar...

I understand your queries in this case but we are all different in our requirements and I was just wondering how to achieve my unusual request...

Thanks to the pair of you for being so prompt...
Reply With Quote
  #6  
Old 11-28-2013, 03:38 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok in the Navigation Manager, make a new tab and add the following in the field, Target URL.

Code:
{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;
To remove from the footer, it that template find the following:
Code:
<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
And change it to this:
Code:
<vb:comment><li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li></vb:comment>
Reply With Quote
  #7  
Old 11-28-2013, 03:45 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying @DemOnStar. I am guessing the floating 'navbar' is 'CSS positioned fixed' at the top of the page, thus it is available even when you get to the bottom of the page. If this is the case I get the picture.

Thanks @Ozzy47 for helping him out.
Reply With Quote
  #8  
Old 11-28-2013, 04:12 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers guys... Quick response but no success...

Ozzy47, I have no doubt that your instructions are correct.. I have a link in the navbar, I have also removed the link from the footer using your instruction but I feel that the JS script I created is preventing or hiding the true top of the page...Possibly css related also..

How do I truly ID the top of the page?
Reply With Quote
  #9  
Old 11-28-2013, 04:15 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know, without testing it, there is no way to know.
Reply With Quote
  #10  
Old 11-28-2013, 04:17 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Cheers guys... Quick response but no success...

Ozzy47, I have no doubt that your instructions are correct.. I have a link in the navbar, I have also removed the link from the footer using your instruction but I feel that the JS script I created is preventing or hiding the true top of the page...Possibly css related also..

How do I truly ID the top of the page?
We need a link to the site, so we can see the source for the page.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:11 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.04062 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete