1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Google Indexes User's Rank Along With Post Title, Not The Username

Discussion in 'Troubleshooting and Problems' started by TheBigK, Jul 8, 2012.

  1. TheBigK

    TheBigK Well-Known Member

    I'm not sure whether I should report this as a bug or a suggestion or just find a way to fix this. I've implemented Google Custom Search Engine on my site and found that instead of indexing the Username of the poster, Google indexes user's rank on the site. The rank isn't quite useful when people are searching for information, but username might just be.

    See what I mean -

    Search-Results.jpg

    Do you think there's any way to fix this? :)
     
  2. TheBigK

    TheBigK Well-Known Member

    #ImpatienceHurts. Anyone? o_O
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  4. MagnusB

    MagnusB Well-Known Member

    Code:
    <div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
    <div class="messageUserBlock">
     
    <div class="avatarHolder">
    <span class="helper"></span>
    <a href="members/thebigk.1319/" class="avatar Av1319m" data-avatarhtml="true"><span class="img m" style="background-image: url('styles/default/xenforo/avatars/avatar_male_m.png')"></span></a>
    <!-- slot: message_user_info_avatar -->
    </div>
     
     
     
     
    <h3 class="userText">
    <a href="members/thebigk.1319/" class="username" itemprop="name">TheBigK</a>
    <em class="userTitle" itemprop="title">Well-Known Member</em>
    <!-- slot: message_user_info_text -->
    </h3>
    <span class="arrow"><span></span></span>
    </div>
    </div>
    It seems like the rank has itemprop="title", while the username has itemprop="name". I am not familiar with microdata, but Google's example differs from xF implementation:
    Code:
    <div itemscope itemtype="http://data-vocabulary.org/Person">
      My name is <span itemprop="name">Bob Smith</span>,
      but people call me <span itemprop="nickname">Smithy</span>.
      Here is my homepage:
      <a href="http://www.example.com" itemprop="url">www.example.com</a>.
      I live in
      <span itemprop="address" itemscope
          itemtype="http://data-vocabulary.org/Address">
          <span itemprop="locality">Albuquerque</span>,
          <span itemprop="region">NM</span>
      </span>
      and work as an <span itemprop="title">engineer</span>
      at <span itemprop="affiliation">ACME Corp</span>.
    </div>
    Is it itemscope="itemscope" or just itemscope itemtype="blah" ?
     
  5. TheBigK

    TheBigK Well-Known Member

    @Jake : It appears for all the titles. You could try out by heading to http://www.crazyengineers.com/community and enter 'Xenforo' in the search engine box. Check the results - they seem to be from 'The Good Administrator' that I am ;)

    Is there any way to fix this?
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I personally wouldn't bother with this. Search results are Google's responsibility. Trying to reverse engineer and manipulate their search results is yucky business.

    Having said that, you can try removing the itemprop from the templates:

    Admin CP -> Appearance -> Templates -> message_user_info

    Remove the red code:

    Code:
    <em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em>
    
     
  7. TheBigK

    TheBigK Well-Known Member

    Well, I agree that it is. Just thought that since we aren't adding 'real names' in the search results, usernames won't help in anyway. Will decide whether to implement this or not.

    But I appreciate your help. :)
     

Share This Page