Results 1 to 6 of 6

Canonical not showing in threads & home, showing only in forums

This is a discussion on Canonical not showing in threads & home, showing only in forums within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I'm quite sure canonicals were working sitewide in the past, but I just noticed a few minutes ago that they ...

  1. #1
    Senior Member
    Real Name
    Marvin Hlavac
    Join Date
    Oct 2007
    Posts
    254
    Liked
    15 times

    Canonical not showing in threads & home, showing only in forums

    I'm quite sure canonicals were working sitewide in the past, but I just noticed a few minutes ago that they now only appear in forums, and they are missing in threads and home (and most likely elsewhere, too). Disabling & re-enabling canonicals in vBSEO doesn't fix it.

    I suspect I have broke this feature myself while editing some vBulletin templates in the past, and only now noticed it.

    Any hints where I could start looking to fix this?

    Thanks in advance.

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you create a new style with no parent, do the canonicals appear under that style?

  3. #3
    Senior Member
    Real Name
    Marvin Hlavac
    Join Date
    Oct 2007
    Posts
    254
    Liked
    15 times
    Hi Brian,

    A couple of months ago I disabled (reason described here) the following two vBSEO plug-ins:

    - vBSEO Forumhome Complete
    - vBSEO Showthread Complete

    Only today I realized they are responsible also for the canonical feature. Not a big deal though.

    Now, instead of enabling the two plug-ins, I'd prefer to add the canonical tags to threads manually. I just experimented with adding the following line to the showthread template, right above $headinclude:

    Code:
    <link rel="canonical" href="$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]<if condition="$pagenumber>1">&page=$pagenumber</if>" />
    It seemed to work as expected, but I'm not sure if referencing the original vBulletin URL is the best way. When I check the source code in the web browser, I see the correctly re-written URL by vBSEO.

    Is the above approach a good one, or is there a way for me to reference the vBSEO URL directly?

    Your help and time is very much appreciated.

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I'm not sure.. I'll flag this for a developer to look at.

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, this approach is fine - all necessary details are cahced by vBSEO so it won't add extra server load.

  6. #6
    Senior Member
    Real Name
    Marvin Hlavac
    Join Date
    Oct 2007
    Posts
    254
    Liked
    15 times
    Thanks very much Brian.

Similar Threads

  1. vBulletin 4.x Next / Previous threads not showing titles
    By blacknight in forum Bug Reporting
    Replies: 3
    Last Post: 02-08-2010, 04:58 AM
  2. help threads not showing up
    By sportsmedjosh in forum Troubleshooting
    Replies: 1
    Last Post: 01-31-2007, 12:11 AM

Posting Permissions

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