conditional based on useragent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kevinmiddleton
    New Member
    • Jul 2003
    • 16

    conditional based on useragent

    I want to write a conditional based upon if the Yahoo bot is visiting, but I cannot find the correct variable. Any ideas?

    e.g. <If condition="$correct_variable_for_useragent = correct_name_for yahoo_slurp">

    Thanks
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Code:
    <if condition="$_SERVER[HTTP_USER_AGENT] == '[color=red]string for yahoo[/color]'">
    
    </if>

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎