Hi i am trying to add the no index tag to threads with 0 replies.
All the conditionals i try dont seem to work.
Any help appreciated.
Thanks,
Dave.
This is a discussion on Noindex threads with 0 replies within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hi i am trying to add the no index tag to threads with 0 replies. All the conditionals i try ...
Hi i am trying to add the no index tag to threads with 0 replies.
All the conditionals i try dont seem to work.
Any help appreciated.
Thanks,
Dave.
$post[postcount] should be what you're looking for, but it won't be available in 'headinclude'.... it's not in scope until the post bit renders.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
That's the issue im having, any ideas on a workaround?
short of doing the query ahead of time which would require massive code edits, (or doubling the query load for every page view), i don't think so.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
The variabkle isn't available until well after the 'head' is printed. Putting a meta tag in the body will do nothing.
If anything is to be done, a manually query which writes a txt file in robots format to block certain urls is probably the best option.
But, it's really a wasted effort IMO. Google already will only index 'good' threads as it sees fit anyway.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Yeah, that's why the index is full of spam.But, it's really a wasted effort IMO. Google already will only index 'good' threads as it sees fit anyway.
These days it is a websites responsibility to showcase it's best content, not Google to find and index it.
If you allow access to shallow/thin content you will get penalized. This includes content that provides a bad user experience, bounce rate, time on site are all taken into account in the algo.
I suggest you read up on the Panda Update.
For anyone interested, here is how you noindex 0 reply threads, as threads without an answer do not offer value to a search visitor.
It was actually very simple, im surprised no one at vb or vbseo came up with it.
<if condition="THIS_SCRIPT == 'showthread'">
<if condition="!$threadinfo['replycount']">
<meta name="robots" content="noindex,follow" />
</if>
</if>
Just because a thread has no replies doesn't mean it's spam. Some of the best articles have been stickied/closed with no replies.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
That's true, Brian, on my technical forum many threads with no replies are valuable reviews or tutorials. However, this may differ based on the type of a forum. Numerous people, since Panda, have implemented noindex meta tag on pages they consider "thin content". The code Dave has shared may be valuable to some people.
It also may stop any new threads from being indexed. All theads start as a no reply. If google hapepns to be on your site at the time a thread is started, it may note that thread as an 'avoid' and never come back to it for months, meanwhile it gained replies.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!