I'm having a formatting error that I can't figure out. Everything displays properly, with one exception. For posts with more than 6 Thanks, the list of Thanks (which is hidden behind a toggle-able spoiler-style box) no longer displays for a person who has Thanked that post. It displays perfectly fine if you haven't thanked, but once you add yourself to the list clicking the toggle button does nothing. What am I doing wrong?
Code:
<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0; border-left: 0px"</vb:if>>
<div class="postrow">
<vb:if condition="$bbuserinfo['usergroupid'] == 6 || $post['show_thanks_remove_option']">
<div class="smallfont" style="float:{vb:stylevar right}">
<vb:if condition="$bbuserinfo['usergroupid'] == 6">
<a href="post_thanks.php?do=post_thanks_remove_all&p={vb:raw post.postid}"<vb:if
condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if
condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase
post_thanks_remove}</a>
</vb:if>
<vb:if condition="$bbuserinfo['usergroupid'] == 6 && $post['show_thanks_remove_option']">
|
</vb:if>
<vb:if condition="$post['show_thanks_remove_option']">
<a href="post_thanks.php?do=post_thanks_remove_user&p={vb:raw post.postid}"<vb:if
condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if
condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase
post_thanks_remove_user}</a>
</vb:if>
</div>
</vb:if>
<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>
<vb:if condition="$post['post_thanks_amount'] == 1">
{vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
<vb:else />
{vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
</vb:if>
<vb:if condition="$post['post_thanks_amount'] > 6">
<div class="smallfont" style="margin-bottom:0px"> <input type="button" value="Show List" style="width:60px;font-size:10px;margin:0px;padding:0px;float:left" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
!= '') {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= '';this.innerText = ''; this.value = 'Hide List'; } else {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= 'none'; this.innerText = ''; this.value = 'Show List'; }"> </div><div class="alt1"><div style="display: none;"> {vb:raw post.post_thanks_bit}
</div></div>
<vb:else />
<span id="thanks">
<div class="content">
<div id="post_thanks_bit_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.post_thanks_bit}
</blockquote>
</div>
</div>
</span>
</vb:if>
</div>
</div>
<hr />