View Single Post
  #119  
Old 11-19-2012, 01:06 PM
TinCow1 TinCow1 is offline
 
Join Date: Mar 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;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&amp;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;"> &nbsp; {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 />
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01214 seconds
  • Memory Usage 1,773KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete