What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Fixed Googlebot For Smartphones

Discussion in 'Bug Reports' started by SelfSufficientMe, Aug 20, 2014.

  1. SelfSufficientMe

    SelfSufficientMe Authorized Member Authorized

    I received an email from Google Webmasters about Googlebot for Smartphones suddenly not being granted access to images in my gallery - (response code 403). Nothing has changed on my forum for several weeks no updates etc so I'm unsure what has triggered this, any ideas? It's only the gallery - none of my other pages are affected...
     
  2. sonnb

    sonnb Administrator Staff Member

    Can you access the forum with smartphone? There is no reason for this since that is just guest permission which is the same on PC. It will help if you can reproduce yourself.
     
  3. SelfSufficientMe

    SelfSufficientMe Authorized Member Authorized

    Yes I can access everything fine on my mobile it's only that stupid Google Webmaster tools which is showing access errors for their bot on the images. Should I just disregard it?

    Dear webmaster of http://www.selfsufficientculture.com/,
    We want to let you know that smartphone users might not be able to access your content at all, and Google might not be able to show your pages in search results. This is because Googlebot for smartphones encountered a sudden jump in the number of blocked URLs for your site.
    Two common reasons for this issue:
    - returning an HTTP 403 (forbidden) response code,
    - displaying a login page for Googlebot for smartphones.

    smartphone errors gallery.jpg
    error page
     
  4. sonnb

    sonnb Administrator Staff Member

    It is download page of each individual photo. I confirm this is an issue on the overlay view. Guest should not able to see download link of photo but on the overlay view, I miss the check for this so googlebot crawls this link and get 403.

    I will move this thread to bug report.
     
  5. SelfSufficientMe

    SelfSufficientMe Authorized Member Authorized

    Ok good find mate!

    Thanks for looking into this for me :)
     
  6. sonnb

    sonnb Administrator Staff Member

    Instead of waiting a fix, I can tell you how to get rid of it.

    Open template: sonnb_xengallery_photo_view_overlay
    Find:
    HTML:
    <li><a target="_blank" href="{xen:link gallery/photos/download, $content}"><i></i><span>{xen:phrase sonnb_xengallery_download}</span></a></li>
    Replace with:
    HTML:
    <xen:if is="{$visitor.user_id}"><li><a target="_blank" href="{xen:link gallery/photos/download, $content}"><i></i><span>{xen:phrase sonnb_xengallery_download}</span></a></li></xen:if>
     
  7. SelfSufficientMe

    SelfSufficientMe Authorized Member Authorized

    Ok, will do! Thanks :)
     

Share This Page