vb.org Archive

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

V4Vendetta 12-26-2006 03:26 AM

I have seen a forum where the people who have done the thanking, are hidden. Instead it shows only the number of thanks the post has received. To view WHO has done the thanking (and when) you must click "show me".

I find this looks alot neater when lots of people thank the same post. See linked screenshot. http://img409.imageshack.us/img409/1...ddenzl4.th.jpg

Does anybody know how this was done?

Many Thanks & Merry Christmas all,

Vendetta

NeutralizeR 12-26-2006 11:10 AM

Abe1:
https://vborg.vbsupport.ru/showpost....&postcount=401

gbhedges 12-26-2006 01:32 PM

Nice Addon!

V4Vendetta 12-26-2006 02:40 PM

Quote:

Originally Posted by NeutralizeR (Post 1145241)

Was this in reply to my question? If so, then I don't think it has quite answered it, as I was after a way to make this hack NOT REVEAL the names of the thankers automatically, but instead requires the viewer to click "reveal" after the line "The following users found this post useful:". Then once you have clicked "reveal" the names and dates of the contributing thankers appears. Please see the image I have linked to above for an example of where I have seen this.

ALSO: Is there a way to bring the THANKS list just a few lines closer to the bottom of the post that it refers to, at the moment it is hard to distinguish whether it refers to the bost below or the post above because of the proximity to both.

Thanks again.

Vendetta

NeutralizeR 12-26-2006 03:07 PM

No, it was not a reply to your question. My request is stopping background script execution when you hide post_thanks to the guests via template conditionals.

Btw, it'd be nice to be added "collapse thanks" feature as you mentioned.

V4Vendetta 12-26-2006 03:11 PM

Well it already exists apparently. I just can't seem to find it!

Look at the forum at this address:
http://forums.moneysavingexpert.com/...=330596&page=5

V4Vendetta 12-27-2006 12:28 AM

Anybody?

EricaJoy 12-27-2006 04:43 AM

Is there a way to show the Thank you button for the first post in each thread on the forumdisplay page?

NeutralizeR 12-27-2006 01:38 PM

Quote:

Originally Posted by EricaJoy (Post 1145639)
Is there a way to show the Thank you button for the first post in each thread on the forumdisplay page?

https://vborg.vbsupport.ru/

V4Vendetta 12-27-2006 03:29 PM

bttt, is anybody able to answer my above questions .... or is it impossible?

EricaJoy 12-27-2006 03:30 PM

Quote:

Originally Posted by NeutralizeR (Post 1145796)

On forumdisplay, not showthread.

IrPr 12-31-2006 08:12 AM

Nice release
I'm stil waiting for showpost.php script

Thank you in advance

IrPr 12-31-2006 08:19 AM

Edit: Its already done by Abe1 for this version

andreamarucci 01-03-2007 07:56 PM

Good hack! Just a question. Do you think that it's possible to modify this one to make it a "happy birthday" hack or a "Welcome aboard" hack so that the users can click a button instead of posting a message saying "Happy birthday" or "welcome aboard"?

I'm asking ths since on my board I don't really need a thankyou hack but I would need a hack like the ones above...:D

Cybershaolin 01-03-2007 08:41 PM

Quote:

Originally Posted by Cybershaolin (Post 1136113)
How could I have the Thank you button also available within the first post of a thread when you use the vBHack DB System v.1.0 here: http://www.vbviet.org/forums/showthread.php?t=371

Is it possible to integrate it or get some info how to do it?

I repeat my question asked on December 10! :cry:

LILMORA4 01-05-2007 04:43 AM

*install*

adhari_com 01-09-2007 04:28 PM

Hi,

Why am I getting this JS error rarely happening from time to time, not ALL the time, once the error, the Thank button is hidden but no thanks has been posted, as shown:

Abe1 01-10-2007 11:36 PM

Quote:

Originally Posted by andreamarucci (Post 1150116)
Good hack! Just a question. Do you think that it's possible to modify this one to make it a "happy birthday" hack or a "Welcome aboard" hack so that the users can click a button instead of posting a message saying "Happy birthday" or "welcome aboard"?

I'm asking ths since on my board I don't really need a thankyou hack but I would need a hack like the ones above...:D

You can edit the phrases and img. how you'd like.

coderphp 01-10-2007 11:37 PM

thanx for the hack!

Abe1 01-10-2007 11:37 PM

Quote:

Originally Posted by Cybershaolin (Post 1150138)
I repeat my question asked on December 10! :cry:

I dont support other hacks. You have to find someone else to do it.

Abe1 01-10-2007 11:39 PM

Quote:

Originally Posted by adhari_com (Post 1154683)
Hi,

Why am I getting this JS error rarely happening from time to time, not ALL the time, once the error, the Thank button is hidden but no thanks has been posted, as shown:

Did you edit the post_thanks templates at all? Can you give me a better idea of how you get this error?

Cybershaolin 01-11-2007 12:31 AM

Quote:

Originally Posted by Abe1 (Post 1155878)
I dont support other hacks. You have to find someone else to do it.

This is just too bad although I find it kind of normal that you don't.

The database hack is a great mod and many forums use it, even here! Using that hack, the fact that somebody posts a file on the first post is usually the one which we would thanks for the file but it does not appear. But now the Thnaks button does not appear with it. Anyhow, I'll try to ask in another thread.

Thanks for having taken the time to answer my question. :) And thanks again for your great mod.

andreamarucci 01-11-2007 05:58 AM

Quote:

Originally Posted by Abe1 (Post 1155876)
You can edit the phrases and img. how you'd like.

Thank you very much. And if I would like to install two copy of your hack to have a "welcome aboard" and a "happy birthday hack" what I've to modify?

Thanks

jarosciak 01-11-2007 02:02 PM

Hi Everyone,

I have both THANKS and GROAN hacks install, but it's taking too much space on the right side.

Can someone quickly point me to a code change I have to do to go from this look:
https://vborg.vbsupport.ru/external/2007/01/17.jpg

to this one:
https://vborg.vbsupport.ru/external/2007/01/18.jpg

The second one looks so much more compact and I can't find the code anywhere.
I am sure it has been posted already, I just can't find it :)
Please help me out.

Joe

Abe1 01-11-2007 06:57 PM

Quote:

Originally Posted by jarosciak (Post 1156258)
Hi Everyone,

I have both THANKS and GROAN hacks install, but it's taking too much space on the right side.

Can someone quickly point me to a code change I have to do to go from this look:
https://vborg.vbsupport.ru/external/2007/01/17.jpg

to this one:
https://vborg.vbsupport.ru/external/2007/01/18.jpg

The second one looks so much more compact and I can't find the code anywhere.
I am sure it has been posted already, I just can't find it :)
Please help me out.

Joe

It is in the templates. One of the template edits you ade for the hack.

Abe1 01-11-2007 06:58 PM

Quote:

Originally Posted by andreamarucci (Post 1156033)
Thank you very much. And if I would like to install two copy of your hack to have a "welcome aboard" and a "happy birthday hack" what I've to modify?

Thanks

Not sure if you can do that easily. The tempalates have to be renames and the hackid has to be renamed also.

jarosciak 01-11-2007 07:01 PM

Any idea how to change it? I am sure I am not alone here, who would want this amendment done.
Any help?

jarosciak 01-11-2007 09:23 PM

Ok, thanks anyways, looks like I am on my own. Once I changed it, I will post the code here. Thanks for your help.

jarosciak 01-12-2007 03:07 AM

Ok, this is not the best way to do it, as I manually typed in wording, but it works fine.

I added this to postbit and postbit_legacy, replacing original values:

PHP Code:

<!-- Start Post Thank You Hack -->
<if 
condition="$post[userid]">
<
br />
Thanks Given$post[post_thanks_user_amount], Groans Given$post[post_groan_user_amount]
<
br />
<if 
condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if 
condition="$post[post_thanks_thanked_posts_on] == 1">
<
phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<
phrase 1="$post[post_thanks_thanked_times]2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- 
End Post Thank You Hack -->

<
br />

<!-- 
Start Post Groan Hack -->
<if 
condition="$post[post_groan_times_on] == 1">
$vbphrase[post_groan_time_post]
<else />
<if 
condition="$post[post_groan_posts_on] == 1">
<
phrase 1="$post[post_groan_times]">$vbphrase[post_groan_times_post]</phrase>
<else />
<
phrase 1="$post[post_groan_times]2="$post[post_groan_posts]">$vbphrase[post_groan_times_posts]</phrase>
</if>
</if>
</if>
<!-- 
End Post Groan Hack --> 

Now it shows like this:

Thanks Given: 0, Groans Given: 0
Thanked 0 Times in 0 Posts
Groaned at 0 Times in 0 Posts

ariellio 01-12-2007 09:18 PM

This is the best hack! I am so glad it works with AJAX! Thank you!!!

LBmtb 01-12-2007 10:06 PM

Would anybody be interested in a script that tallies up thanks in a month and spits out a table or list of users with the most thanks? Could make a nice "Top Thank Earners of the Month" page. I'm working on it right now and I have the bulk of it done. Just gotta make it pretty.

Also, I don't know how to make it into a plugin or a template yet. It's simply on a non-vb page right now. Do any more experienced coders know how to convert a php script to something that could be made into a plugin/product?

NeutralizeR 01-14-2007 09:03 AM

Abe1 :)
https://vborg.vbsupport.ru/showpost....&postcount=401

Majority of the visitors of my forums are the guest visitors and this hack uses too much server power, i need to disable/hide this hack for them.

srikanthjjjj 01-15-2007 01:28 AM

Just some questions, WIth this can you hide stuff with this mod and when the user clicks thanks the user cna see what's hidden
and also does it display how many thanks the user has recieved and how many it's given/
CAn you also check all the posts the user has been thanks in?

Abe1 01-15-2007 03:15 AM

Quote:

Originally Posted by NeutralizeR (Post 1158721)
Abe1 :)
https://vborg.vbsupport.ru/showpost....&postcount=401

Majority of the visitors of my forums are the guest visitors and this hack uses too much server power, i need to disable/hide this hack for them.

It should work.

NeutralizeR 01-15-2007 09:27 AM

Quote:

Originally Posted by Abe1 (Post 1159544)
It should work.

Unfortunately it doesn't work for post thank you hack. The query is still being executed in the background. Do you have any suggestions?

Abe1 01-15-2007 10:30 AM

Then you have to put the tags around on the plug-ins also.

NeutralizeR 01-16-2007 03:29 AM

Quote:

Originally Posted by Abe1 (Post 1159694)
Then you have to put the tags around on the plug-ins also.

Disabled all other plugins to figure out which plugin executes the query.

postbit_display_start

Tried a few conditionals but still no luck...

Quote:

if ($vbulletin->userinfo['usergroupid'] == 1)
{
}
else
{
plugin content
}
Quote:

if ($vbulletin->postinfo['usergroupid'] == 1)
{
}
else
{
plugin content
}
Quote:

if ($bbuserinfo['usergroupid'] == 1)
{
}
else
{
plugin content
}

stinger2 01-16-2007 08:16 AM

hi Abe1

some members are missing the thank you button SOME times..( not always).....is this a clitch maybe
you can see it here

http://img372.imageshack.us/img372/1410/nothanksbf6.jpg

Abe1 01-16-2007 12:10 PM

Quote:

Originally Posted by stinger2 (Post 1160436)
hi Abe1

some members are missing the thank you button SOME times..( not always).....is this a clitch maybe
you can see it here

http://img372.imageshack.us/img372/1410/nothanksbf6.jpg

Did you check the settings? I need more info.

Abe1 01-16-2007 12:12 PM

Quote:

Originally Posted by NeutralizeR (Post 1160338)
Disabled all other plugins to figure out which plugin executes the query.

postbit_display_start

Tried a few conditionals but still no luck...

In the post_bit_start, it would be this: $this->registry->userinfo['usergroupid']


All times are GMT. The time now is 03:11 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.02850 seconds
  • Memory Usage 1,852KB
  • 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_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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