Can you link to the top of a thread?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tracks78
    Member
    • Oct 2017
    • 51
    • 5.2.x

    Can you link to the top of a thread?

    Whenever anyone is logged in it seems to take folks to the bottom of the thread where they can enter text into the box, which is great for most threads but not so great for announcements where the only thing important is that top post. Is there any sort of setting that addresses this, especially for sticky topics?

    Presumably I could close the topic so the text box doesn't bring folks to that part of the page but I want folks to be able to give input, I just don't want the first thing they see to be the bottom of the page.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    If you click where it says #1 in the top right hand corner of the first post, that provides a direct link to it.

    As an example:
    https://www.vbulletin.com/forum/foru...ad#post4379679

    This works for any post in a thread.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • tracks78
      Member
      • Oct 2017
      • 51
      • 5.2.x

      #3
      My forum doesn't do that. Only if a person is logged out will that work. Here's a video of the issue.
      It does the same thing regardless of which post it is in the thread that is linked to.

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #4
        If it's not working for you then try clearing your browser cache and restarting the browser.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • tracks78
          Member
          • Oct 2017
          • 51
          • 5.2.x

          #5
          I tried that but it does not work. I also confirmed it on two other machines running firefox logged into that forum, all three machines exhibit the same behavior. It only happens when logged in and only when using firefox.

          If I try the same thing on this forum it works fine 100% of the time with no problem, regardless of the browser. I can paste any direct link into any browser on any machine, and it takes me right there.

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24286
            • 6.0.X

            #6
            Probably a customisation or server configuration problem then. Most likely the former. Try creating a new style with no parent and using that to browse the forum.
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

            • glennrocksvb
              Former vBulletin Developer
              • Mar 2011
              • 4011
              • 5.7.X

              #7
              Do you have a mod or plugin that automatically opens the Advanced editor? It might be programmatically clicking the A button which causes it to get focus.

              Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

              Comment

              • tracks78
                Member
                • Oct 2017
                • 51
                • 5.2.x

                #8
                I'm not too sure. Is that under products and hooks? Here's a screenshot of that.
                Click image for larger version

Name:	2017-10-26 08_01_46-Hooks & Products System - Electricbike.com Ebike Forum - vBulletin Admin Control.png
Views:	90
Size:	35.8 KB
ID:	4379849




                Is there any way to determine if the style is the cause without making a new style? Seems kinda disruptive to make a change like that on a production server.

                Comment

                • glennrocksvb
                  Former vBulletin Developer
                  • Mar 2011
                  • 4011
                  • 5.7.X

                  #9
                  Didn't notice your site is electric bike in the video. But only realized it is through those 3 active products because they are mine. So I can say those products do not cause the issue you're having now.

                  Anyway to answer your question on style, as Administrator you can change style from the style chooser at the lower left bottom of the page. This will only affect your account.

                  Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                  Comment

                  • tracks78
                    Member
                    • Oct 2017
                    • 51
                    • 5.2.x

                    #10
                    Yes, hello it's nice to meet you The plugins work great thanks, the usergroup tool is especially handy for what we need.

                    I tried changing the style from that dropdown and sure enough the issue went away when I switched from Cool Blue to Default.

                    So I take it that means it's something in the CSS on that style? Here's the code. Doesn't look like there's much in there, and I still saw the issue after systematically removing each entry, saving and testing.

                    Code:
                    /*.b-post-control__bubble-flyout {
                        position: absolute;
                        right: -35px;
                        left: auto;
                        top: -1px;
                        background: white;
                        color: #696969;
                        padding: 3px;
                    }
                    
                    .like-button {
                        float: left;
                        position: absolute;
                        left: 32px;
                        background-color: #8b9dc3;
                        padding: 3px 20px;
                        font-size: 15px;
                        color: white;
                        border-radius: 3px;
                    }*/
                    #editProfilePicture { display: block; }
                    /* .b-toolbar__item[data-panel="b-content-entry-panel__content--gallery"] { display: none; } */
                    
                    /* Hide Redirect notice of moved topics */
                    .topic-list-container .topic-list .topic-item.redirect {
                        display: none;
                    }
                    
                    /* CKEditor Drag and Drop Upload Notice - START */
                    .b-editor__placeholder {
                       box-sizing: border-box;
                       width: 100%;
                       height: 100%;
                    }
                    .b-editor__placeholder:before {
                       content: '';
                       background: url(images/css/sprite_icons_vb_ltr.png) no-repeat -416px -80px; /* Change ltr to rtl if you are using RTL language. */
                        width: 12px;
                       height: 12px;
                       display: inline-block;
                       position: absolute;
                       bottom: 7.5px;
                    }
                    .b-editor__placeholder:after {
                       content: 'You can also drag and drop images here from file system to attach images'; /* Replace this message as needed. */
                       position: absolute;
                       left: 0;
                       bottom: 0;
                       margin: 0 15px 5px 30px;
                       color: darkgray;
                       font-size: 13px;
                       font-style: italic;
                    }
                    [USER="3396"]media[/USER] only screen and (max-width: 500px) {
                            .b-editor__placeholder:before {
                                    bottom: 22.5px;
                            }
                    }
                    /* CKEditor Drag and Drop Upload Notice - END */

                    Comment

                    • glennrocksvb
                      Former vBulletin Developer
                      • Mar 2011
                      • 4011
                      • 5.7.X

                      #11
                      There's nothing in the custom css that is causing the issue. Did you edit any templates in the Cool Blue theme? Check the templates in that theme in the Style Manager in AdminCP. Modified themes are listed with red color.

                      Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                      Comment

                      • tracks78
                        Member
                        • Oct 2017
                        • 51
                        • 5.2.x

                        #12
                        Ok I see it, looks like it's hook_open_advanced_editor. Commenting it out seems to resolve it.
                        Don't suppose there's a way to utilize this code without having the cursor do that?
                        Code:
                        <script>
                        (function() {
                            function init() {
                                $('.b-toolbar__item[data-panel="b-content-entry-panel__content--toggle-editor"]').click();
                            }
                            if (window.addEventListener) {
                                window.addEventListener('load', init, false);
                            } else if (window.attachEvent) {
                                window.attachEvent('onload', init);
                            } else {
                                var w = window.onload;
                                window.onload = function(e) {
                                    e = e || window.event;
                                    w && w.call(this, e);
                                    init();
                                };
                            }
                        })();
                        </script>

                        Comment

                        • glennrocksvb
                          Former vBulletin Developer
                          • Mar 2011
                          • 4011
                          • 5.7.X

                          #13
                          Try replacing .click() inside the init() function with .triggerHandler('click')

                          Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

                          Comment

                          • tracks78
                            Member
                            • Oct 2017
                            • 51
                            • 5.2.x

                            #14
                            Doesn't appear to have worked but that's okay, only thing we really need is the ability to link to the top of a thread. Thanks so much for the help, our documentation threads look much more professional now that links point to the top instead of pulling users to the bottom of the page.

                            Comment

                            • tracks78
                              Member
                              • Oct 2017
                              • 51
                              • 5.2.x

                              #15
                              Is the code for hooks persistent within a style even after a hook is deleted? I disabled and then even deleted the template hook to open advanced editor by default but it still opens the editor whenever I switch to a new style, thus I have to keep it on cool blue or it will always take users to the bottom of a linked thread.

                              Not sure why as I do not see that hook even listed in the templates under any style, the hook was deleted entirely from where you manage template hooks.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...