vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   template condition for spider bots? (https://vborg.vbsupport.ru/showthread.php?t=242017)

NeXuM 05-07-2010 06:19 AM

template condition for spider bots?
 
I have a simple question:

I desactivated the archive on my forum, but i would like to display some text only for spider bots... is there a template condition / variable to do this ?

something like

<if condition="spider bot = 1">hello google bot</if>

thanks !

vbenhancer 05-07-2010 12:37 PM

<if condition="$show['spider']">

NeXuM 05-10-2010 02:01 AM

its not working :(

i'm trying to display some text only for humans and hide it for spider bots, so i tryed:

<if condition="$show['spider']"><else />welcome, you are an human !</if>

but if i display my site with a google bot spoofer, the text is also displayed for spider bots :(

NeXuM 05-11-2010 08:26 PM

bump

NeXuM 05-13-2010 06:00 AM

why isn't it working ? :(

Speysider 05-13-2010 11:51 AM

Spiders don't have their own array, not sure why nexia told you that they did. Spiders are counted as guest users.

vbenhancer 05-13-2010 12:13 PM

if you don't know, why do you reply...

$show['spider'] is the default variable to identify a web crawler for vB 3.x ... in some situations it may not work... if i remember right, the bot spoofer is just a web interface, am i right? if so, it will not work because your browser still hold the session you are using to access your site the regular way, so you are considered human.

NeXuM 05-13-2010 06:49 PM

well phpbb have a similar variable condition to identify the spider bots, and the google bot spoofer works and the forum identify me as a spider so the page is displaying the spider conditions.... i think it should be the same for vbulletin

is there any other way to spoof a web crawler ? i really need to see how my page is displayed for spider bots


All times are GMT. The time now is 08:02 AM.

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.01036 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete