silverd
04-22-2010, 03:56 PM
Can anyone find whats wrong with this? For the life of me I cant.
Situation:
I have a profile field. Two checkboxes. Users can check one, or both. If they check one, the results are fine. If they check both however, the default comes up.
I've tried && and all the ways to combine statements I can think of. No cigar.
<!-- NEW POSTS -->
<if condition="$bbuserinfo['field36'] & 1"><if condition="$bbuserinfo['field36'] & 2">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205,139,19 3,192,194,67,115,94,133,150,173,171,199&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<if condition="$bbuserinfo['field36'] & 1">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,94,133,205 ,150,171,173,199&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<if condition="$bbuserinfo['field36'] & 2">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205,139,19 3,192,194,67,115&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
</if></if></if></if>
<!-- / NEW POSTS -->
--------------- Added 1271988673 at 1271988673 ---------------
nm
not sure what I did different, but AND worked this time around
--------------- Added 1271988707 at 1271988707 ---------------
lock er up!
Situation:
I have a profile field. Two checkboxes. Users can check one, or both. If they check one, the results are fine. If they check both however, the default comes up.
I've tried && and all the ways to combine statements I can think of. No cigar.
<!-- NEW POSTS -->
<if condition="$bbuserinfo['field36'] & 1"><if condition="$bbuserinfo['field36'] & 2">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205,139,19 3,192,194,67,115,94,133,150,173,171,199&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<if condition="$bbuserinfo['field36'] & 1">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,94,133,205 ,150,171,173,199&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<if condition="$bbuserinfo['field36'] & 2">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205,139,19 3,192,194,67,115&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]exclude=190,169,191,210,215,213,211,214,205&do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
</if></if></if></if>
<!-- / NEW POSTS -->
--------------- Added 1271988673 at 1271988673 ---------------
nm
not sure what I did different, but AND worked this time around
--------------- Added 1271988707 at 1271988707 ---------------
lock er up!