vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - SCANU's Guest Warn 3 - Elegant Floating Warning for your guests (https://vborg.vbsupport.ru/showthread.php?t=270070)

Scanu 11-02-2012 09:54 AM

Well I can hide the warn to spiders like google yahoo etc.. (I think it's possible) but probably if someone visit google cache or translate your site using google translate, he won't see the warn, if this is not a problem i can add this feature to the next version

qwer81 11-10-2012 01:34 AM

Ok! Thank you! I'm waiting for the next version!

fxdigi-cash 12-04-2012 05:48 AM

works well. I installed it on my website version v4.2.0 www.forexmegacashback.com

Thanks,

fxdigi-cash

RichieBoy67 08-01-2013 11:46 AM

Does this work on 4.2.1?

Thanks

Krusty1231 08-01-2013 12:52 PM

I use it on 4.2.1 with no issues.

BeoRski 08-05-2013 04:41 PM

Quote:

Originally Posted by qwer81 (Post 2375839)
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...

kandhro 08-21-2013 08:00 PM

such a great mod , nominated for NOM

Scanu 08-22-2013 04:27 PM

Quote:

Originally Posted by kandhro (Post 2440225)
such a great mod , nominated for NOM

Thank you :)

Scanu 09-06-2013 08:35 PM

Guest warn 3 has been released! Here is the new feature list
Quote:

- 3.0
- Improved javascript code
- Hidden to spiders
- Hidden in the login page
- Fixed templates group name
- Fixed some phrases
- Added the possibility to add a second message like "Thank you you take a good choice You're being redirected to the register page in n seconds"
- Now the warn's message is a phrase, not an option (for multi-languages forum)

ForceHSS 09-09-2013 01:32 AM

Quote:

Originally Posted by BeoRski (Post 2437371)
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...

From this
Code:

if ($vbulletin->options['guest_warn_active'] && !$show['search_engine'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register','login'))) {
to this
Code:

if ($vbulletin->options['guest_warn_active'] && $show['guest'] && !in_array(THIS_SCRIPT, array('register','login'))) {


All times are GMT. The time now is 01:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01519 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete