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] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)

Abe1 03-10-2008 09:34 PM

Quote:

Originally Posted by choccyclaire (Post 1461462)
Any way I can edit the template so that another usergroup has the ability to remove all thanks?

I assume I need to change something on this line, in postbit template, but to what?

Code:

<if condition="$bbuserinfo['usergroupid'] == 6">
Thanks in advance.

It's controlled in the file also. You would need to use a hook to allow it.
Quote:

Originally Posted by daPLAYBOY (Post 1461628)
When deleting threads/posts, I woud like to prevent the loss of the Thanks count...any fix?

Yes. Next version.

choccyclaire 03-11-2008 07:05 PM

Quote:

Originally Posted by Abe1 (Post 1461804)
It's controlled in the file also. You would need to use a hook to allow it.

Yes. Next version.

I'm not very good with hooks lol. Any help? :)

Hypo 03-12-2008 08:47 AM

Quote:

Originally Posted by Abe1 (Post 1457966)
vbseo can mess it up i believe.

I've got thesame problem, and I'm not using vbseo, and the only 3rd party hack I can remember is the Advanced Statistics, which shows top10 blabla at the bottom of the board .
Anything else that can mess it up?

Abe1 03-14-2008 02:18 AM

Quote:

Originally Posted by Hypo (Post 1462856)
I've got thesame problem, and I'm not using vbseo, and the only 3rd party hack I can remember is the Advanced Statistics, which shows top10 blabla at the bottom of the board .
Anything else that can mess it up?

I would have to play around with you site to figure it out. Are you sure you have the latest files uploaded?

Abe1 03-16-2008 02:19 AM

Version 7.3 (03/15/08):
  • Updated file: functions_post_thanks.php
  • Updated template: post_thanks_memberinfo_block
  • Deleted template: post_thanks_memberinfo_css
  • New option: Choice to use Markup Usernames or not. (Thanks to Namaless)
  • New option: Ban User from Getting Thanks
  • New option: Max Thanks a User can Give Per Day
  • FIX Fixed repeating bug on vb 3.6.7 forums.
  • CHANGE Changed where the post thanks info shows on the Profile Page. Moved to same box as statistics. (This will require a template edit if you are running vb3.7 beta 2-4)

Hornstar 03-16-2008 03:47 AM

Just when you think it cant get any better, there are so many nice new features in this release. thanks.

Edit: the markup feature looks nice ^^

Dream 03-16-2008 03:53 AM

Thanks for the update.

The only thing that is missing is who's online for people browsing post_thanks.php, otherwise it's a perfect mod.

It's easy to do too. Here's mine from my radio mod:

online_location_process hook

Code:

if($filename=='radioandtv.php'){$userinfo['activity'] = 'radio_stations';}
online_location_unknown hook

Code:

if($userinfo['activity']=='radio_stations')
{
    $userinfo['where'] = '<a href="javascript:openRadioAndTV()">' . " $vbphrase[rs_radiostations]</a>";
    $userinfo['action'] = $vbphrase['rs_listening_to_radio'];
    $handled = true;
}

I can add this in mine if I want, this is just a heads up.

edit: just to clear it up, this is for when you are browsing who's online for a phrase to appear what the user is doing, and not the file name he's browsing

Abe1 03-16-2008 05:04 AM

Quote:

Originally Posted by Dream (Post 1465826)
Thanks for the update.

The only thing that is missing is who's online for people browsing post_thanks.php, otherwise it's a perfect mod.

It's easy to do too. Here's mine from my radio mod:

online_location_process hook

Code:

if($filename=='radioandtv.php'){$userinfo['activity'] = 'radio_stations';}
online_location_unknown hook

Code:

if($userinfo['activity']=='radio_stations')
{
    $userinfo['where'] = '<a href="javascript:openRadioAndTV()">' . " $vbphrase[rs_radiostations]</a>";
    $userinfo['action'] = $vbphrase['rs_listening_to_radio'];
    $handled = true;
}

I can add this in mine if I want, this is just a heads up.

edit: just to clear it up, this is for when you are browsing who's online for a phrase to appear what the user is doing, and not the file name he's browsing

No-one ever browses on post_thanks.php

stelthius 03-16-2008 09:51 AM

Does this mod work with beta 6 yet ?

Hypo 03-16-2008 09:55 AM

Quote:

Originally Posted by Abe1 (Post 1464325)
I would have to play around with you site to figure it out. Are you sure you have the latest files uploaded?

hah now with the update I'm sure I don't have the latest files uploaded, so let's try a bit further now than :D

Thanks ;)

beishe8 03-16-2008 09:56 AM

Quote:

Originally Posted by stelthius (Post 1465991)
Does this mod work with beta 6 yet ?

Yes,it does.

Thanks Abe1 ! :up:

Hypo 03-16-2008 10:23 AM

I've now updated to post_thanks_7_3 @ my vBulletin 3.6.7, but nothing actually changed for that searching problem.
Also the template edits I had to do already were done, they were all thesame as I've edited them when I installed it (post_thanks_6_2).
Also I've uploaded all the 7.3 version files.

What now?

.: EDIT :.
the only difference in the templates I can find is:
in postbit AND postbit_legacy I need to find
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
but at my templates there is only
Code:

<div>&nbsp;$post[icqicon] $post[aimicon] $post[msnicon]
I don't know if this could be the problem? Don't think so, but just thought I should mention it :)

Phr34q 03-16-2008 12:11 PM

<i>Clicks download</i>

Thanks for updating m8.

Abe1 03-16-2008 12:21 PM

Quote:

Originally Posted by stelthius (Post 1465991)
Does this mod work with beta 6 yet ?

Yes.

Abe1 03-16-2008 12:22 PM

Quote:

Originally Posted by Hypo (Post 1466009)
I've now updated to post_thanks_7_3 @ my vBulletin 3.6.7, but nothing actually changed for that searching problem.
Also the template edits I had to do already were done, they were all thesame as I've edited them when I installed it (post_thanks_6_2).
Also I've uploaded all the 7.3 version files.

What now?

.: EDIT :.
the only difference in the templates I can find is:
in postbit AND postbit_legacy I need to find
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
but at my templates there is only
Code:

<div>&nbsp;$post[icqicon] $post[aimicon] $post[msnicon]
I don't know if this could be the problem? Don't think so, but just thought I should mention it :)

Not sure what your problem is.

BadgerDog 03-16-2008 02:47 PM

Updated to 7.3 (running v3.6.7pl1) ...

Seems to be working fine ... :up:

Thanks

Regards,
Badger

ps: One thing I notice different is that I'm missing a carriage return in the profile display? In your demo screen here:

https://vborg.vbsupport.ru/attachmen...6&d=1205637411

You show two lines for "Find all posts ..."...

On my system it runs together like this...

Find all thanked posts for Badger Find all posts thanked by Badger

How can I add in the approproate carriage return in the template?

Boards.ie 03-16-2008 03:52 PM

I think that guarantee about being liked by all users needs to be re-examined ;)

It would be nice if the next iteration contained the ability for users to disable seeing/giving thanks themselves. Simple enough option.

Edit: also would be worth Ctrl+Fing through your code for the word "Hank" and replace it with "Hack", it appears a few times.

Namaless 03-16-2008 04:18 PM

Thanks for thanked me Abe, I have another one suggestion: You have writed "This can slow down a page load slightly.", is good choice to set 0 to default and not to 1 :)

Thanks for your release :)

Abe1 03-16-2008 05:57 PM

Quote:

Originally Posted by BadgerDog (Post 1466178)
Updated to 7.3 (running v3.6.7pl1) ...

Seems to be working fine ... :up:

Thanks

Regards,
Badger

ps: One thing I notice different is that I'm missing a carriage return in the profile display? In your demo screen here:

https://vborg.vbsupport.ru/attachmen...6&d=1205637411

You show two lines for "Find all posts ..."...

On my system it runs together like this...

Find all thanked posts for Badger Find all posts thanked by Badger

How can I add in the approproate carriage return in the template?

Can you revert the template if you edited it? (post_thanks_memberinfo_block)

Abe1 03-16-2008 06:00 PM

Quote:

Originally Posted by Boards.ie (Post 1466224)
I think that guarantee about being liked by all users needs to be re-examined ;)

It would be nice if the next iteration contained the ability for users to disable seeing/giving thanks themselves. Simple enough option.

Edit: also would be worth Ctrl+Fing through your code for the word "Hank" and replace it with "Hack", it appears a few times.

I found 2 plugins named with the spelling error. Fixed for next version.

Abe1 03-16-2008 06:01 PM

Quote:

Originally Posted by Namaless (Post 1466235)
Thanks for thanked me Abe, I have another one suggestion: You have writed "This can slow down a page load slightly.", is good choice to set 0 to default and not to 1 :)

Thanks for your release :)

Nah, let them turn it off if they want.

Fungsten 03-16-2008 06:48 PM

Quote:

Open template: memberinfo_block_statistics
I can't find that template. Did you mean the post_thanks_memberinfo_block? Here's the text I found in that template:

Quote:

<fieldset class="statistics_group">
<legend>$vbphrase[post_thanks_total_thanks]</legend>
Which is similar to what you mentioned:

Quote:


<fieldset class="statistics_group">
<legend>$vbphrase[general_information]</legend>

Abe1 03-16-2008 11:13 PM

Quote:

Originally Posted by Fungsten (Post 1466373)
I can't find that template. Did you mean the post_thanks_memberinfo_block? Here's the text I found in that template:



Which is similar to what you mentioned:

What version of vb do you have?

Fungsten 03-16-2008 11:32 PM

Quote:

Originally Posted by Abe1 (Post 1466575)
What version of vb do you have?

3.6.8 PL2

Abe1 03-17-2008 01:27 AM

Quote:

Originally Posted by Fungsten (Post 1466592)
3.6.8 PL2

i thin ky ouare using the wrong instructions.

LordDB 03-17-2008 08:48 AM

Originally Posted by daPLAYBOY
Quote:

When deleting threads/posts, I woud like to prevent the loss of the Thanks count...any fix?
Originally Posted by Abe1
Quote:

Yes. Next version.
Has this now been included in the latest release?:)

Sebijk 03-17-2008 09:49 PM

For Users with vBulletin Project Tools:

To fix the problem with "Find all thanked posts" in navbar search, set the Execution Order to "4" in Plugin Post Thank You Hack (Hook: global_setup_complete).

Boards.ie 03-18-2008 11:07 AM

Hmm, one more thing I've noticed, this is a relatively easy system to abuse, you can include a hard link in your signature that when visited will bump the thanks count of a particular post. While not exactly disastrous, it means the system can be quite easily made redundant.

Having the link itself hide the functionality using javascript or using an md5 hash (a bit overkill) would be an ideal solution, as it stands I will likely have to remove the mod until I can implement these features myself. Still, thanks for the effort, it's got some neat features and if it weren't for my cynical userbase might have been useful.

Abe1 03-18-2008 11:21 AM

Quote:

Originally Posted by daPLAYBOY (Post 1466859)
Originally Posted by daPLAYBOY

Originally Posted by Abe1


Has this now been included in the latest release?:)

Sorry, was an option in last version already.

Abe1 03-18-2008 11:22 AM

Quote:

Originally Posted by Boards.ie (Post 1467845)
Hmm, one more thing I've noticed, this is a relatively easy system to abuse, you can include a hard link in your signature that when visited will bump the thanks count of a particular post. While not exactly disastrous, it means the system can be quite easily made redundant.

Having the link itself hide the functionality using javascript or using an md5 hash (a bit overkill) would be an ideal solution, as it stands I will likely have to remove the mod until I can implement these features myself. Still, thanks for the effort, it's got some neat features and if it weren't for my cynical userbase might have been useful.

Will have to think of something.

YOUNG_MONEY_ENT 03-19-2008 02:03 PM

hi i installed the hide hack version 7.3 on my vbulletin 3.6.8 and everytime hi hit the thanks button nothing shows up? plz help maybe i did something wrong i see 2 thanks buttons

Dream 03-19-2008 05:21 PM

Quote:

Originally Posted by Abe1 (Post 1465854)
No-one ever browses on post_thanks.php

ok, they did at some point as I saw in the who's online, thanks.

firefoxx 03-19-2008 09:27 PM

updated. but i have a problem. when i edit a thanked post, the thanks disappear. and when i change a style in the thread, the thanks appear again. is this a bug?

Abe1 03-20-2008 02:50 AM

Quote:

Originally Posted by firefoxx (Post 1469129)
updated. but i have a problem. when i edit a thanked post, the thanks disappear. and when i change a style in the thread, the thanks appear again. is this a bug?

This would very hard to fix. It seems like that vb does not run the plug-ins when the update a post.

Abe1 03-20-2008 02:51 AM

Quote:

Originally Posted by Dream (Post 1468870)
ok, they did at some point as I saw in the who's online, thanks.

Will look into.

Abe1 03-20-2008 02:52 AM

Quote:

Originally Posted by YOUNG_MONEY_ENT (Post 1468713)
hi i installed the hide hack version 7.3 on my vbulletin 3.6.8 and everytime hi hit the thanks button nothing shows up? plz help maybe i did something wrong i see 2 thanks buttons

Can I check you APC?

crkgb 03-20-2008 07:40 AM

Hi. I just installed the 7.3 version on my 3.7.0 RC and do not have the tab in my profile, though have a couple test "Thanks" done. Please help

Hornstar 03-20-2008 07:44 AM

My thanks since installing this latest version are no longer displayed like they used to due to the markup (which is a feature I really do not want to disable as it is great!)

however take a look: http://www.gamerzneeds.net/forums/ru...nial-info.html

Many usernames are on separate lines

NeutralizeR 03-20-2008 08:34 AM

Quote:

Originally Posted by hornstar1337 (Post 1469435)
My thanks since installing this latest version are no longer displayed like they used to due to the markup (which is a feature I really do not want to disable as it is great!)

however take a look: http://www.gamerzneeds.net/forums/ru...nial-info.html

Many usernames are on separate lines

It's because of the "<div>" tags.

---------------------------------


I have a problem. I've just upgraded to 7.3 version (i'm still running vb 3.6.8).

Everything was perfect till i updated the post thanks counters. Now i have this error message at the top of some showthread-showpost pages:
Code:

Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 222
(you have to login, guests are not allowed to view the thanks)
Username: Tester
Password: asd123
Example:
http://www.msxlabs.org/forum/showpos...1&postcount=10
http://www.msxlabs.org/forum/showpos...1&postcount=19
http://www.msxlabs.org/forum/showpos...5&postcount=20

I think it's related to deleted-merged member accounts. How to fix this?

Edit: I've found a fix here https://vborg.vbsupport.ru/showpost....postcount=1857

Error message's gone but it displays an empty thanks box. Well, the thanks box is displayed because there are some thanks by deleted members and their usernames aren't displayed as they are deleted. How to hide it?

YOUNG_MONEY_ENT 03-21-2008 12:46 AM

Quote:

Originally Posted by Abe1 (Post 1469305)
Can I check you APC?

YES ILL SEND U MY INFO


All times are GMT. The time now is 12:16 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.03438 seconds
  • Memory Usage 1,853KB
  • 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
  • (10)bbcode_code_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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