vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

Hippy 12-16-2011 08:40 PM

does your post_thanks_box_bit template
have this code in it ?
Code:

<a href="member.php?{vb:raw session.sessionurl}u={vb:raw thank.userid}" rel="nofollow">{vb:raw thank.username}</a><vb:if condition="$date_thank">&nbsp;({vb:raw date_thank})</vb:if>{vb:raw virg}
I cant tell but from your picture it looks like this is missing
&nbsp;
and the hide hack you would see Show/Hide list of the thanked
so if you are using it maybe the edit it not correct
make sure you have reverted all your post_thanks templates as well..

haidm 12-18-2011 12:53 PM

Quote:

Originally Posted by Hippy (Post 2278444)
does your post_thanks_box_bit template
have this code in it ?
Code:

<a href="member.php?{vb:raw session.sessionurl}u={vb:raw thank.userid}" rel="nofollow">{vb:raw thank.username}</a><vb:if condition="$date_thank">&nbsp;({vb:raw date_thank})</vb:if>{vb:raw virg}
I cant tell but from your picture it looks like this is missing
&nbsp;
and the hide hack you would see Show/Hide list of the thanked
so if you are using it maybe the edit it not correct
make sure you have reverted all your post_thanks templates as well..

I check the post_thanks_box_bit, and it has "&nbsp;" in there, but don't know still have this error.

bkhan530 12-19-2011 02:52 AM

Is there a modification that replaces the reputation meter and instead labels it as a "Thank You" meter? I have it set to give 1 reputation point per Thank You received so this would be very useful. I'd also like to remove the existing reputation button (star) in place of Thank You.

Penguin82 12-19-2011 03:10 AM

How do I move the Thanked xx in xx posts from being right aligned to left aligned in the postbit?

mfractal 12-19-2011 12:34 PM

@OP - Great mod, thanks for the hard work! :)
One request :
Is it possible to add a link to all thanked posts to a user profile ? Currently i can only see total thanks and in how many posts.

mfractal 12-20-2011 10:04 AM

In case you are migrating from VBSEO Likes to this mod, here are the SQLs you need to run to convert all the likes retroactively to thanks.
Those statements assume you want to add 1 reputation point for each Thanks given (retroactively)


Code:

insert into reputation (postid,userid,reputation,whoadded,reason,dateline) select l_contentid,post.userid,1,l_from_userid,'Thanked Post',l_dateline from vbseo_likes, post where l_contentid=postid
insert into post_thanks (userid,username,date,postid) values select l_from_userid,l_from_username,l_dateline,l_contentid from vbseo_likes;

update user set post_thanks_thanked_times = (select count(userid) from reputation where reputation.userid = user.userid) ;
update user set post_thanks_user_amount = (select count(userid) from reputation where reputation.whoadded = user.userid);
update user set post_thanks_thanked_posts = (SELECT COUNT(DISTINCT postid) from reputation where reputation.userid = user.userid);

update user set reputation = (select sum(reputation) from reputation where reputation.userid = user.userid)

update post set post_thanks_amount = (select count(postid) from reputation where reputation.postid = post.postid);


Chri5123 12-20-2011 05:08 PM

Does this work with versions 4.1.8?

Crotan 12-20-2011 05:14 PM

Quote:

Originally Posted by Chri5123 (Post 2279475)
Does this work with versions 4.1.8?

Yes

Chri5123 12-20-2011 05:24 PM

Quote:

Originally Posted by Crotan (Post 2279478)
Yes

Cheers for getting back to me.

Can you tell me which link I should download from or which version?

Can't get this to work.

If you could post a link to the exact version would be awesome or just let me know?

Chris

sadiq6210 12-20-2011 05:31 PM

Quote:

Originally Posted by Chri5123 (Post 2279481)
Cheers for getting back to me.

Can you tell me which link I should download from or which version?

Can't get this to work.

If you could post a link to the exact version would be awesome or just let me know?

Chris

https://vborg.vbsupport.ru/showpost....postcount=1847


All times are GMT. The time now is 06:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05785 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete