HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Noindex based on min word count?
Please can someone provide me an IF statement I can insert somewhere so that any thread pages with a word count below X will have the following added: <meta name="robots" content="noindex"/> Reason being is I'd like to try and minimise what might be considered 'thin content' to Google and although word count is only one… -
Re: Noindex based on min word count?
I think you are taking the phrase too literally watch this video https://support.google.com/webmasters/answer/2604719?hl=en it is nothing to do with succinct discussions. You can have really useful questions that are short, with a single simple answer. You are far better off encouraging the behaviours you want, rather than… -
Re: Noindex based on min word count?
A little bit input from my experience for others interested in no-index (not misunderstanding the issue that was asked here, automatization). About a manual approach. Google is pretty strict on user generated content when it comes to SEO. Especially if you have two or more discussions with similar content (which is likely… -
Re: Noindex based on min word count?
Please can aonyone figure out why @hgtonight 'noindex' code is causing discussion controller errors on most of the forum functions? Deleting, favouriting etc. Reminder of @hgtonight 's code: public function discussionController_render_before($sender) { $threshold = C('AutoNoIndex.Threshold', 100); $wordCount =… -
Re: Noindex based on min word count?
I assume you want to filter on the number of words in the discussion and comments bodies. public function discussionController_render_before($sender) { $threshold = C('AutoNoIndex.Threshold', 100); $wordCount = str_word_count($sender->Discussion->Body); if($wordCount >= $threshold) { return; } $comments =… -
Re: Noindex based on min word count?
Again you will need to encourage your users to make make better topics, there are a number of ways to do that from interface to behavioural incentives. If you want to add noindex conditionally in a theme hooks file you can add this hook public function DiscussionController_Render_Before($Sender){ if… -
Re: Noindex based on min word count?
I appreciate your point and working the leading SEO agency in Europe, I do have a reasonable grasp of this. The nature of my forum is there are a lot of 'request' one liner topics that offer no value for searchers but it would not be reasonable for me to try and stop that activity. I understand thin content is not simply… -
Re: Noindex based on min word count?
The plugin looks good to me. I've just tested it on my Vanilla 2.3.1 test installation. As long as a role either has Garden.Moderation.Manage or Garden.Curation.Manage rights, users of that role have the right to "Add NoIndex"/"Remove NoIndex" A discussion which is marked with "NoIndex" has the following line added to the… -
Re: Noindex based on min word count?
$PluginInfo['TestingGround'] = array( // You put whatever you want to call your plugin folder as the key 'Name' => 'Testing Ground', // User friendly name, this is what will show up on the garden plugins page 'Description' => 'A skeleton plugin that adds its resources to every page, creates a settings page, and creates a…
9 results