Results 1 to 3 of 3

Javascript scroll to anchor (post) doesn't work since installing vBSEO

This is a discussion on Javascript scroll to anchor (post) doesn't work since installing vBSEO within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Before I installed vBSEO , when you went to showthread.php?p=12345#post12345 , the following would happen: Your browser scrolls to the ...

  1. #1
    Member Viper007Bond's Avatar
    Real Name
    Viper007Bond
    Join Date
    Jan 2008
    Location
    Portland, Oregon, USA
    Posts
    65
    Liked
    0 times

    Javascript scroll to anchor (post) doesn't work since installing vBSEO

    Before I installed vBSEO, when you went to showthread.php?p=12345#post12345, the following would happen:

    1. Your browser scrolls to the post via the anchor
    2. Images and stuff load in the thread, making the page scroll, often no longer showing the post
    3. Page is fully loaded and a little stock-vB Javascript re-scrolls back to the post/anchor


    Now #3 no longer happens due to there being to "p" parameter in the URL.

    Is there any way to somehow fix this so it works again? This was a feature of vB that my users and I really enjoyed.
    FinalGear.com Forums -- my site/forums dedicated to Top Gear and Fifth Gear, two UK TV shows

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    please try the following modification:
    Create a new plugin in vB admincp for "showthread_complete" hook with this code:
    PHP Code:
                global $onload;
                if(!
    $onload)
                {
                    
    $onload "if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}";
                } 

  3. #3
    Member Viper007Bond's Avatar
    Real Name
    Viper007Bond
    Join Date
    Jan 2008
    Location
    Portland, Oregon, USA
    Posts
    65
    Liked
    0 times
    Worked like a charm. Thanks much!
    FinalGear.com Forums -- my site/forums dedicated to Top Gear and Fifth Gear, two UK TV shows

Similar Threads

  1. Does VBSEO work with Photo Post?
    By acuraowner in forum Pre-Sales Questions
    Replies: 10
    Last Post: 01-27-2008, 09:27 PM
  2. Unable to post to threads after installing vbSEO
    By Laughingbird in forum Troubleshooting
    Replies: 3
    Last Post: 02-17-2007, 01:21 AM
  3. Replies: 2
    Last Post: 01-29-2007, 06:33 PM
  4. after installing vbseo cannot post
    By peteinoz2 in forum Troubleshooting
    Replies: 5
    Last Post: 02-01-2006, 04:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •