newpost & lastpost Variables When Viewing Thread

Discussion in 'Support & Feedback' started by digitalpoint, Apr 26, 2006.

  1. #1
    I made a vBulletin plug-in that intercepts the newpost and lastpost functions and rewrites them to be t=xxxxx&page=xxx#postxxxx instead of p=xxxx#postxxxx

    The only real purpose is keeping duplicate content out of search engines... but please let me know if you see anything weird with it when viewing a thread.
     
    digitalpoint, Apr 26, 2006 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You made it for me too, then :) I was always annoyed when I wanted the link to the thread, and I just had the post # in the url. It's much more logical the way you have it set up now. Thanks.
     
    exam, Apr 27, 2006 IP
  3. piniyini

    piniyini Well-Known Member

    Messages:
    514
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Excellent idea, I've always wanted vb to do this by default. Instead of the url pointing to showthread.php?goto=lastpost&t=79051 why not link it to showthread.php?t=79051#postXXX or is that uneccessary queries?
     
    piniyini, Apr 27, 2006 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    It doesn't get ride of the goto=lastpost and goto=newpost URLs, but those URLs end up redirecting to showthread.php?p=postnumber by default. This causes a lot of duplicate content.

    For example, every post could produce a unique URL that has the same content as the normal thread URL. For example:

    http://forums.digitalpoint.com/showthread.php?t=79051
    http://forums.digitalpoint.com/showthread.php?p=843008
    http://forums.digitalpoint.com/showthread.php?p=844526
    etc...

    So now the newpost and lastpost links redirect to the URL based on the thread instead of individual post.

    It doesn't get RID of lastpost/newpost URLs, because in order to that, it would be a massive amount of unnecessary queries (basically would be 3 extra queries per thread when you look at a listing of threads), all are wasted unless you actually visit every thread with both types of links.
     
    digitalpoint, Apr 27, 2006 IP
  5. piniyini

    piniyini Well-Known Member

    Messages:
    514
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #5
    I understand why you're doing this, the above quote answers my question.
     
    piniyini, Apr 27, 2006 IP
  6. WhatiFind

    WhatiFind offline

    Messages:
    1,789
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    180
    #6
    Sometimes get this error..

    screenshot

    Not really sure if this has anything to do with the new plugin Shawn made.
     
    WhatiFind, Apr 27, 2006 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    That's probably more because the servers are overloaded. :)
     
    digitalpoint, Apr 27, 2006 IP
  8. piniyini

    piniyini Well-Known Member

    Messages:
    514
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #8
    Thought I'd let you know that it uses ?p= to redirect after leaving rep, only minor I know.
     
    piniyini, May 8, 2006 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    I know... there are some places where it still uses it.
     
    digitalpoint, May 8, 2006 IP