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)

archet1337 02-27-2010 02:22 AM

Gah.. this mod is haunting me :(

I'm having some trouble with getting
Code:

{vb:raw template_hook.postbit_userinfo_right_after_posts}
to look the same as the other ones. This is what it looks like:

https://vborg.vbsupport.ru/

How to fix this?

Edit: When someone has been thanked two times or more, it looks fine:

http://www.digi-tech.org/images/diverse/testing5.png

Supramania 02-27-2010 02:46 AM

Trying to install on 4.0.2pl1 getting "Importing Product, Please Wait..."

No errors in mysql log or apache log.

Never installs.

Any ideas?

grc 02-27-2010 05:26 PM

Quote:

Originally Posted by mokonzi (Post 1991826)
Abe, is there a way of reducing the height that thanks box displays underneath the post, as it is considerably larger than the 3.8 version?

Thanks for a great product, and the great support at getting it up and running for vB4.

I think the height of the thanks section is due to the large font being used. I posted my hack of the hack in post #560 of this thread. I don't know if anyone else tried it or not, but it makes quite a difference in screen vertical real estate being used on our forum.

wrestlepower 02-27-2010 06:11 PM

Still no fix for being taken back to the first page of threads upon thanking a post? Shame, becuase this has to be one of the most popular hacks on any vB forum, but Abe obviously has some issues preventing him from getting on to sort it.

Also, even though you are supposed t be able to serach users' thanks stats from their profiles, the option isn't there when you actually go to the profile.

mokonzi 02-27-2010 07:16 PM

Quote:

Originally Posted by grc (Post 1986809)
Since Abe seems to be busy with other things, I went ahead and hacked the font size on the "Following Users Say..." line on the forums.

Listen, I'm not a coder and all I can say is that it works on my forum -- follow at your own risk and be sure you can go backwards if needed.

Anyway...

In post_thanks_postbit find:
HTML Code:

<h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
If you're using the legacy (vertical) postbit template: change the word "title" to "bitlegacy"

Otherwise change the word "title" to "content"

Again: I'm no coder - try it at your own risk.

Awesome grc, thanks for that tip. Been a headache trying to workout how to best change it. :)

TonicWater 02-27-2010 07:48 PM

i miss the "links" like "search for my thanks" on the user profil pages. i remember for 3.8.4 it was there.

Rob F 02-27-2010 09:46 PM

Quote:

Originally Posted by archet1337 (Post 1992525)
Gah.. this mod is haunting me :(

I'm having some trouble with getting

How to fix this?

Are you sure you edited all 3 lines of the code to align left? I had the same problem when first installing and then realised that I'd only reset the alignment for one of the 3 lines. Below is what I have in my post_thanks_postbit_info file and we've no alignment issues anymore :)

You want to set the 3 lines to be {vb:stylevar left}

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};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


archet1337 02-27-2010 10:32 PM

Quote:

Originally Posted by Rob F (Post 1993250)
Are you sure you edited all 3 lines of the code to align left? I had the same problem when first installing and then realised that I'd only reset the alignment for one of the 3 lines. Below is what I have in my post_thanks_postbit_info file and we've no alignment issues anymore :)

You want to set the 3 lines to be {vb:stylevar left}

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};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


Thank you very much!

Working like a charm. :)

Rob F 02-28-2010 08:13 AM

You're very welcome - glad to hear it fixed it for you :)

Diablotic 02-28-2010 09:55 AM

Where in database I can find number of thanks each user have?
After migrating from another script I would like to migrate 'thanks' as well but I cannot find this in the database. Please help.


All times are GMT. The time now is 06:58 AM.

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.03648 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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