Thread: Show Thread Enhancements - [AJAX] Post Thank You Hack
View Single Post
  #1323  
Old 06-23-2007, 08:46 AM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vitrag24
i have vb 3.6.4 aND version of this hack 5.3
can i update this addon?is it compatible with vb 3.6.4 also?

and how to update now?
Yes yiu may upgrade, USE 6.0 gold instead of 6.2.
In order to upgrade, just reupload all the new files to the FTP, reinstall the product, with overwrite on YES, and redo ALL template modifications following the instructions.

And your are done ^^

Quote:
Originally Posted by Quantnet.org
Which conditions would you use so that it only display Thanks and Thanked when it > 1.
I used to be able to do this with the if condition in earlier version but I don't know how to do it now.
Something like < if $vbphrase[post_thanks_thanks] >=1 or something
hmmm lets see

go to the template called post_thanks_postbit_info
and unless you hav emodified it change it to
HTML Code:
<if condition="$post[userid]">
	<if condition="$post[post_thanks_user_amount_formatted] > 0"><div>$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div></if>
	<div>
		<if condition="$post[post_thanks_thanked_times_formatted] != 0">
		<if condition="$post[post_thanks_thanked_times] == 1">
			$vbphrase[post_thanks_time_post]
		<else />
			<if condition="$post[post_thanks_thanked_posts] == 1">
				<phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
			<else />
				<phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
			</if>
			</if>
		</if>
	</div>
</if>
basically added

<if condition="$post[post_thanks_user_amount_formatted] > 0">
which means: if this person has thanked more than 0 times then show the content.
* WHy did i put > 1 ?
because it woudl be any number bigger than one not including 1.
* Then use >= 1
bah > 0 does the job

then the second conditional is
<if condition="$post[post_thanks_thanked_times_formatted] != 0">
which means: if this person thanked times is NOT zero (hence has been thanked) then show the content
^^ I think that should help

Quote:
Originally Posted by maidos
when i click on the thank you button it redirects me to

you do not have permission to access this page. This could be due to one of several reasons: [...]
This one is harder to answer because the problem is more abstract. Are you by any chance in a baned usergroup (banned from thanking, secondary groups are affected)
I can't tghink of anything else, if that doesn't do it abe1 should be able to answer ^^
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,782KB
  • 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_html
  • (3)bbcode_quote
  • (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