Hello,
i am trying to modify a condition that doesnt allow guests to resd posts.
What i want is that spiders are allowed to read the posts.
So i have tried the following but it doesnt work.
Code:
<if condition="$bbuserinfo['usergroupid'] != 1 and $bbuserinfo[usergroupid] != 3 and $_SERVER['HTTP_USER_AGENT'] == google and $_SERVER['HTTP_USER_AGENT'] == slurp@inktomi and $_SERVER['HTTP_USER_AGENT'] == yahoo! and $_SERVER['HTTP_USER_AGENT'] == msnbot">
</if>
Can someone here tell me what is wrong and how to do this correctly?
Greetings Karlo
PS. Maybe i should add that this code is in the SHOWTHREAD template and works when it is like this:
Code:
<if condition="$bbuserinfo['usergroupid'] != 1 and $bbuserinfo[usergroupid] != 3">
<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>
<div id="posts">$postbits</div>