vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Collapsible List Of Thanked (https://vborg.vbsupport.ru/showthread.php?t=205499)

mad@Max 02-15-2009 10:00 PM

[AJAX] Collapsible List Of Thanked
 
1 Attachment(s)
If you have installed Post Thank You Hack and you have large lists of thanked, this hack for you :)

This is rewrite of my old modification.

Initially the list is not loaded, this happens only after clicking on the link, in background (AJAX).

How it's work (video): http://www.youtube.com/watch?v=fZl5vY3jeIM

relaxiha 02-15-2009 11:01 PM

plz pic!!

dai-kun 02-15-2009 11:18 PM

hm.. does this work? I installed, uploaded the file, pressed thanks and I don't see a list, just the number of people thanked was updated..

NVM.. there's an option in the admincp, which isn't stated here so I didn't know.
Is there a way to expand the list? Since people want to know if they thanked already.

mad@Max 02-15-2009 11:24 PM

relaxiha, Added video in first post. Wait when approve.
dai-kun, Yes, the condition is triggered if the thanks amount of more number that you set.

dai-kun 02-15-2009 11:26 PM

Do you know if there's any conflict or something with another product? I watched the video but when the condition is met for it to collapse, nothing shows up in the "username" section. I just see this " 42 Users Say Thank You to (username): " to the left.

mad@Max 02-15-2009 11:32 PM

What version you use of Post Thank You Hack?
Show content of your template post_thanks_postbit_legacy or post_thanks_postbit.

dai-kun 02-15-2009 11:35 PM

I use Post Thank You Hack 7.7

Legacy
Code:

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr valign="top">
                        <td class="alt2" width="175">
                                <if condition="$post['post_thanks_amount'] == 1">
                                        <strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
                                <else />
                                        <strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
                                </if>
                                <if condition="$bbuserinfo['usergroupid'] == 6">
                                        <br /><a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
                                </if>
                                <if condition="$post['show_thanks_remove_option']">
                                <br /><a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
                                </if>
                        </td>
                        <td class="alt1"><div>$post[post_thanks_bit]</div></td>
                </tr>
        </table>
</div>


mad@Max 02-15-2009 11:40 PM

Please download again and reimport product.

dai-kun 02-15-2009 11:54 PM

Ok thanks it works perfectly now! Installed

I have tons of posts with 100+ thanks so this is very useful :D

mad@Max 02-16-2009 12:40 AM

I have 1000+ :D


All times are GMT. The time now is 06:40 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.01128 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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