Quote:
Originally Posted by qwer81
Hello! I noticed that the content of the message for guests appears in the search results on google, under the title of the topic
Is there a way to hide it? Thank you!
|
Editing "Code including" in Plugin Manager does this. Replace it with the code below:
Code:
if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register'))) {
$templater = vB_Template::create('guestwarn_html'); //Create html template
$guestwarn_html = $templater->render(); //saving template on a variable
$templater = vB_Template::create('guestwarn_css'); //Create css template
$template_hook[headinclude_css] .= $templater->render(); //Including template on footer hook
$templater = vB_Template::create('guestwarn_script'); // Create javascript template
$template_hook[footer_javascript] .= $templater->render(); //including template on footinclude hook
$vbulletin->templatecache['footer'] .= ' $final_rendered .= \'' . addcslashes($guestwarn_html, "'\\") . '\'; '; //Inserting html in the footer template
}
This basically moves it to the footer which is way beyond what Google shows on the search results...