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

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.webp

Do you think there's any way to fix this? :)
 
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" ?
 
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:

Rich (BB code):
<em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em>
 
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.
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. :)
 
Top Bottom