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

XF 1.3 Spoiler vs Indexation

Daniel-SP

Active member
#1
Is there any relation between hidding a content into a spoiler and idexating it into web search sites ?

I mean, If I put a content inside spoiler its going to be indexed into google as any other part of the content that is outside the spoiler ?

Thanks :)
 

Chris D

XenForo developer
Staff member
#2
Yes it will.

It is only hidden with JavaScript or a very basic CSS tweak if JS is disabled.

Either way, bots have full visibility of it.
 

DRaver

Active member
#3
The question is: Is that spoiler not cloaking and a violation of the Google webmaster guidelines?!
This could mean a disaster for your site.
 

Mike

XenForo developer
Staff member
#4
Cloaking is showing different things to a search engine than what you show users (coming from that search engine).
 

DRaver

Active member
#5
Cloaking is showing different things to a search engine than what you show users
Right. The bot see the text an the user see the button. That are different things.
So I ask a Google engineer about the problem. Can this hurt my site?
And the and the answer was Google like: YES and NO :)

If the major text content of a page "hidden" in this way this not good for your site.
Be Careful.
Are you running it, user-friendly than it is ok.

I think everyone should assess the risk for themselves.
 

Chris D

XenForo developer
Staff member
#8
If you're talking about things like:

Code:
<xen:if is="!{xen:helper ismemberof, 1, 2, 3, 4}">
      Do not show this
</xen:if>
Then, no. XF conditional statements are compiled as PHP code so the effects of that code are server side meaning if something is hidden inside a conditional such as the one above, then Google can't see any trace of that happening at all.