Announcement

Collapse
No announcement yet.

back to top?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • back to top?

    been waiting for a back to top feature, and havent seen it in the tracker. this is something i think vB5 needs to have....perhaps in the floating bar?

  • #2
    http://www.vbulletin.com/forum/forum...bar-suggestion

    However, only votes in JIRA do count...

    Comment


    • #3
      This is something that can be implemented in 5 minutes with a template hook.

      Here is the JIRA: http://tracker.vbulletin.com/browse/VBV-7803

      Here is the template hook modification: http://www.vbulletin.com/forum/blogs...-luke/3929999-
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment


      • rhens
        rhens commented
        Editing a comment
        added my vote....thank you

    • #4
      While waiting for the Go to Top button to be implemented, you may want to install the vB5 Floating Bar userscript I created. Aside from the Go to Top button, it replaces the pagination controls with the controls similar to the one at the bottom of the thread page. It also moves the +Subscribe/Unsubscribe button into the floating bar and it prevents the buttons to unnecessarily reload the page.
      Last edited by glennrocksvb; Tue 17 Sep '13, 4:28pm.

      GIPHY for vB5 AutoLinker Auto-Create Flag Report INITIALS AVATAR (Better) Name Card Quote Selected Text Likes Summary Disable AJAX Pagination Stop Links in Posts...& MORE!

      Comment


      • #5
        Just made an updated version of this. Better code and technique.

        Create a new template called "footer_goto_top" and place the following code within it:
        HTML Code:
        <script type="text/javascript">
        $("a[href='#top']").click(function() {
        $("html, body").animate({ scrollTop: 0 }, "slow");
        return false;
        });
        </script>
        Save the template.

        Go to Hooks & Products -> Hook Manager and add a new template hook. Use these values.
        Hook: footer_end
        Template: footer_goto_top
        Active: Yes.

        Give it a name and Save.

        Now go to Site Builder and edit your footer. Create a new footer link called Top and its target URL should be #top. Save. Save the footer.

        Reload your page. You should have a Top link in your footer and clicking it should take you to the top of the page. You can see it in action here: http://vbcodex.com

        I'll need to write a new blog eventually.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #6
          Originally posted by Wayne Luke View Post
          Code:
          ​<script type="text/javascript">
          $("a[href='#top']").click(function() {
          $("html, body").animate({ scrollTop: 0 }, "slow");
          return false;
          });
          </script>
          The Top button does not animate because the selector $("a[href='#top']") does not match any element. The Top link is <a href="http://vbcodex.com/#top">Top</a>.

          You should change the selector to $("a[href*='#top']") or change the href to href="#"

          GIPHY for vB5 AutoLinker Auto-Create Flag Report INITIALS AVATAR (Better) Name Card Quote Selected Text Likes Summary Disable AJAX Pagination Stop Links in Posts...& MORE!

          Comment


          • #7
            I have mentioned this numerous times..

            Ok, there are work arounds and codes to input but if these codes and work arounds are being suggested and taken on board then really, they should be implemented as part of the core features.. Not merely additions to get around the lack of basic functionality..

            Thank you Glenn and Wayne for your efforts. It is bizarre that you really have to post these suggestions at this point.
            Just get into JIRA and add them... No voting, no making of improvement requests, just do it....

            Excuse my impatience...

            OBVIOUSLY voted and commented....

            http://tracker.vbulletin.com/browse/VBV-7803
            Last edited by DemOnstar; Thu 19 Sep '13, 6:55am. Reason: Forgot to post a link to what I had voted on.


            Comment


            • #8
              cant believe we're still having to scroll back to the top of the page! who in the company decided that having rapid access to the top of the page was a feature the customers didnt deserve? i hope its one of the ones who got fired!

              Comment


              • #9
                Nothing wrong with having this addition but not making the index page infinitely long is a better idea. One either has to scroll to the header or to the footer in either case.

                Comment


                • #10
                  i working around back to top by adding footer Back to top with javascript javascript:scroll(0,0)

                  Comment


                  • #11
                    Originally posted by rhens View Post
                    cant believe we're still having to scroll back to the top of the page!
                    You can't believe it? Sure you can, it is like everything else.


                    Soon to be released...

                    In the floating bar would be ideal.


                    Comment


                    • #12
                      Ok I've made a workaround. You can find it here:
                      http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-customization/4021450-working-back-to-top-link-in-the-footer-here-is-how-you-do-it

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X