Thread: Show Thread Enhancements - [AJAX] Post Thank You Hack
View Single Post
  #1943  
Old 11-05-2011, 12:11 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first off thanks goes out to channelfuse
for getting post_thanks search to work again..
found here https://vborg.vbsupport.ru/showpost....postcount=1534



then I believe Phaedrus put all the fixes I and others posted all together
https://vborg.vbsupport.ru/showpost....postcount=1433

Rob F posted the fix for the postbit alignment issue here
https://vborg.vbsupport.ru/showpost....&postcount=607



thanks to findingpeace for posting this fix..

someone with a space in their username thanks a post breaks the line seems to break
can view here http://i.imgur.com/9JAsNaF.png


a few members have brought this issue up

Quote:
Originally Posted by findingpeace View Post
Fixed (for anyone else curious) -

Open up functions_post_thanks.php

Find

Code:
$virg
And add a space to both of the first two instances. Should end up looking like this:

Code:
if ($cmpt<$number_rows)
			{
				$virg=", ";
			}
			else
			{
				$virg=" ";
			}
I will be updating the archive here asap..

fixes I posted can be found here

https://vborg.vbsupport.ru/showthrea...40#post2045040
https://vborg.vbsupport.ru/showthrea...08#post2111408
https://vborg.vbsupport.ru/showpost....postcount=1048
https://vborg.vbsupport.ru/showthrea...66#post2130566

Guests Can't View [AJAX] Box Under Post

newer post for Move Post thanks button
https://vborg.vbsupport.ru/showpost....postcount=2357

move this hook so the thanks button will be in the correct place (optional)
https://vborg.vbsupport.ru/showpost....postcount=1842

If your using
eTiKeT? 2011 Posbit_legacy - Postbit Details


+++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++


You may need to remove extra &nbsp; if you originally added spaces via the post_thanks_box_bit template (like I did). This was hacky, and much better to do through the functions file. Usernames will break as expected now.


you will need to replace your "post_thanks_postbit_info" template with this
over write the template completely so it will match the rest of the postbit details

Code:
<vb:if condition="$post['userid']">
<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
    {vb:rawphrase post_thanks_thanks} <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
    <vb:if condition="$post['post_thanks_thanked_times'] == 1">
        {vb:rawphrase post_thanks_time_post}
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
        {vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</div>
    <vb:else />
   <div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">     
{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</div>
    </vb:if>
</vb:if>
Baja Version min max edit https://vborg.vbsupport.ru/showthrea...66#post2130566
https://vborg.vbsupport.ru/showthrea...41#post2129541
please note you will need to change this in the xml file to upload to the newest versions of vb


ForceHSS also put one together, but I never went over it to see if all the fixes where implemented


FReeSTER pointed this out.. great template edit


Great Article
BirdOPrey5 Great Post Thanks Articles
How to turn the "Post Thank You" hack into a "Likes" system similar to vBulletin.org



This is a Must Have if you have a hug box of thanks under your posted.
big thanks to demonfatal Great addon for Post Thanks
[vB4.0.X] Show/Hide list of the thanked
Thanks for sharing that Great addition to this mod..


###########################################
###########################################
###########################################

Great Addon's for Post thanks

Badshah93 vFCoders - Hide Hack

Scandal Recent Thanks for [AJAX] Post Thank You Hack

plugin for Recent Thanks for [AJAX] Post Thank You Hack
Hippy WOL for Recent Thanks for [AJAX] Post Thank You Hack addon


postbit change for Recent Thanks for [AJAX] Post Thank You Hack
Quote:
Originally Posted by Furcal15 View Post
I did some modification to this....If anyone is interested....In the user info panel, it shows "Thanked XX times in XXX post", well that phrase is now a link and it takes you to http://yoursite.com/recent_thanks.php

See demo here: http://baseballnation.net/showthread...ll=1#post57431

Edit Templates > Post_Thanks_Postbit_Info and replace EVERYTHING will the following code:

Code:
<vb:if condition="$post['userid']">
    <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
    <vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="/recent_thanks.php">{vb:rawphrase post_thanks_time_post}</a></dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</a></dd>
    <vb:else />
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</a></dd>
    </vb:if>
</vb:if>

###########################################
###########################################
###########################################

you may find a tweak or 2 to help you with most issues. Search for my posts in this mod
Poke To Find All Posts In This Mod By Hippy


this is a list of all the help / support given here (thanks goes out to everyone that is helping to keep this great mod alive..)

Regards
Hippy
Reply With Quote
3 благодарности(ей) от:
djbaxter, FReeSTER, spamgirl
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01419 seconds
  • Memory Usage 1,847KB
  • Queries Executed 12 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (3)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete