Visitor and bots separation

hhss

New member
Xenforo seperate visitors and bots because I want to index my content on google etc sites But I do not want her to see the content.

Example:

Template: message

This code does not work. I could not work :)

Code:
<xen:if is="{$visitor.user_id}">
{xen:raw $message.messageHtml}
<xen:if is="{$visitor.from_search}"> or bots see.
{xen:raw $message.messageHtml}
<xen:else />
You can see by logging in.
</xen:if>

and For only first message.

<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
{xen:raw $message.messageHtml}
</xen:if>

If possible, could you tell me how to do it.

@Mike @Kier @Chris D


 
Google will penalise you and possibly blacklist you if you show different content to bots and guests.

Actually, there is a misunderstanding. I want Google to fully crawl the content. But I do not want members to see content in some categories without logging in.

Example:

A Category - Everyone sees
B Category - Only the bots see the visitor need to log in or see login screen
C Category - Everyone sees

I tried it for it, but I could not.

Not for all content. Just a few
 
B Category - Only the bots see the visitor need to log in or see login screen
Brogan has already mentioned this:

Google will penalise you and possibly blacklist you if you show different content to bots and guests.

That is exactly what you would be doing with the B Category, showing different things to visitors and to Google (and other bots). It's called cloaking and is a big no no in Google's eyes.
 
Top Bottom