<tag.bn_badwords>
<var _badWords_regex = return>
<ensure variable="att.chunk" value="1">
<ensure variable="att.where_prepend" value="">
<ensure variable="att.show_details" value="1">
<ensure variable="att.no_link" value="0">
<var _total = 0>
<div>
<if att.chunk NEQ 0>
<!---
Chunk posts so no one user shows too many updates
--->
<var _exclude_ids = "0">
<var _exclude_a = "0">
<var _exclude_b = "0">
<var _counter = 1>
<loop condition="_counter LTE 15">
<var _found = 0>
<var _stop = 0>
<set orb="bull" select="bull.id,bull.title,bull.user_id,bull.giveto_unsignedint,bull.site_id,bull.name,bull.notes,bull.body,bull.so_dateinserted,bull.uname,bull.uballoon,bull.uballoon_b,bull.uname_b"
maxrows="2"
orderby="bull.so_dateinserted DESC"
where="#att.where_prepend# ( bull.uballoon <> '' AND bull.uballoon IS NOT null AND bull.user_id NOT IN (#_exclude_b#) AND bull.id NOT IN (#_exclude_ids#) ) AND bull.site_id = 897">
<setcrawl><if listFind(_exclude_b,set.user_id) GT 0><break></if>
<tag.bn_bull action="output" set="#set#" row="#set.currentrow#"
show_details="#att.show_details#" no_link="#att.no_link#">
<var _found = _found + 1>
<var _total = _total + 1>
<if listFind(_exclude_a,set.user_id) GT 0>
<var _exclude_b = _exclude_b & "," & set.user_id>
<else>
<var _exclude_a = _exclude_a & "," & set.user_id>
</if>
<var _exclude_ids = _exclude_ids & "," & set.id>
</setcrawl>
<setempty>
<var _stop = 1>
</setempty>
</set>
<var _counter = _counter + _found>
<if _stop EQ 1>
<break>
</if>
</loop>
<else>
<!--- do not chunk posts --->
<var _total = 0>
<set orb="bull" select="bull.id,bull.title,bull.user_id,bull.giveto_unsignedint,bull.site_id,bull.name,bull.notes,bull.body,bull.so_dateinserted,bull.uname,bull.uballoon,bull.uballoon_b,bull.uname_b"
maxrows="15"
orderby="bull.so_dateinserted DESC"
where="#att.where_prepend# ( bull.uballoon <> '' AND bull.uballoon IS NOT null ) AND bull.site_id = 897">
<setcrawl>
<tag.bn_bull action="output" set="#set#" row="#set.currentrow#"
show_details="#att.show_details#" no_link="#att.no_link#">
<var _total = _total + 1>
</setcrawl>
</set>
</if>
</div>
<return _total>