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)

grc 04-04-2010 07:34 PM

Hopefully, we'll get a complete upgraded version of this mod someday soon, but till then I'll mention that I stumbled upon a workaround, sort of, that fills in the missing thanks search capability. Come to think of it, I may be the only person who didn't know this!

Anyway, if you turn on the vB reputation system and have the Thanks mod set up to give a reputation point for thanks, users can click on "Settings" and see which of their posts have been "thanked."

The reputation system defaults to showing only the five most recent reputation boosts they've received but you can increase that to whatever number you want.

Our users have been disappointed that they can't find their "thanks" and this workaround restores that to some limited functionality.

PamelaE 04-04-2010 11:03 PM

Can this be altered so its a groan mod? I prefer groaning to thanking.

djbaxter 04-04-2010 11:41 PM

Quote:

Originally Posted by PamelaE (Post 2015852)
I prefer groaning to thanking.

What an admission! :eek:

Comic book guy on The Simpsons: "No groaning in my store!"

Vaira 04-05-2010 12:26 PM

Quote:

Originally Posted by grc (Post 2015769)
Hopefully, we'll get a complete upgraded version of this mod someday soon, but till then I'll mention that I stumbled upon a workaround, sort of, that fills in the missing thanks search capability. Come to think of it, I may be the only person who didn't know this!

Anyway, if you turn on the vB reputation system and have the Thanks mod set up to give a reputation point for thanks, users can click on "Settings" and see which of their posts have been "thanked."

The reputation system defaults to showing only the five most recent reputation boosts they've received but you can increase that to whatever number you want.

Our users have been disappointed that they can't find their "thanks" and this workaround restores that to some limited functionality.

Thanks for that great idea.

robbiefritz 04-05-2010 01:22 PM

Quote:

Originally Posted by grc (Post 2015769)
Hopefully, we'll get a complete upgraded version of this mod someday soon, but till then I'll mention that I stumbled upon a workaround, sort of, that fills in the missing thanks search capability. Come to think of it, I may be the only person who didn't know this!

Anyway, if you turn on the vB reputation system and have the Thanks mod set up to give a reputation point for thanks, users can click on "Settings" and see which of their posts have been "thanked."

The reputation system defaults to showing only the five most recent reputation boosts they've received but you can increase that to whatever number you want.

Our users have been disappointed that they can't find their "thanks" and this workaround restores that to some limited functionality.

Many thanks for this. Our members have been asking about this since we upgraded to 4.0

Vaira 04-05-2010 01:54 PM

Hi again.

It seems that one question is still unanswered and asked by others as well.

How can I make the font of the entire users (and date) that have thanked, listed at the box below of the post, smaller?
I have tried to analyse it with firebug, but wasn't able to manage it by myself.

If I could make it smaller to gain space would be nice.

Anybody?

Thanks in advance.

War.Frog 04-05-2010 01:58 PM

Quote:

Originally Posted by Vaira (Post 2016166)
Hi again.

It seems that one question is still unanswered and asked by others as well.

How can I make the font of the entire users (and date) that have thanked, listed at the box below of the post, smaller?
I have tried to analyse it with firebug, but wasn't able to manage it by myself.

If I could make it smaller to gain space would be nice.

Anybody?

Thanks in advance.

This solution by grc worked well for me: https://vborg.vbsupport.ru/showpost....&postcount=560

Gursimran 04-05-2010 02:42 PM

Thanks djbaxter for the file

Vaira 04-05-2010 06:52 PM

Quote:

Originally Posted by War.Frog (Post 2016170)
This solution by grc worked well for me: https://vborg.vbsupport.ru/showpost....&postcount=560

Yes, sure it affects the: "The Following X Users Say Thank You to YZ For This Useful Post:" line only. (As described by grc.)

My question was about the font size of all listed users that have thanked! (All user names and dates in the box.)

Still unresolved?

Any solution?

Thanks.

grc 04-05-2010 07:10 PM

Quote:

Originally Posted by Vaira (Post 2016355)
Yes, sure it affects the: "The Following X Users Say Thank You to YZ For This Useful Post:" line only. (As described by grc.)

My question was about the font size of all listed users that have thanked! (All user names and dates in the box.)

Still unresolved?

Any solution?

Thanks.

When I made the edits I described it also changed the font size of the users who are listed on my forum. Are you perhaps talking about the horizontal screen real estate taken up by the usernames plus the dates? You might consider just turning off the dates. So far as our forum users are concerned I don't think the date is all that important. In fact, I doubt they even know that that option is available since I've never activated it.

TheGorf 04-05-2010 09:52 PM

I am repeatedly getting this error in my forums:

Code:

Database error in vBulletin 4.0.2:

Invalid SQL:

                      REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
                      VALUES (0, '173.160.151.225', 1, 'Hugs & Hisses', '', 'post.dateline', 'DESC', 0.00521, 1, '82076,81918,80565,80397,79291,78669,78659,78334,77976,77744,77266,76845,76782,76717,76494,76449,76445,76304,75850,75787,75386,75385,74770,74633,73678,73162,73035,72371,72230,71802,71394,70338,69937,68475,67925,66787,66205,66188,66098,64710,64644,64296,64069,63850,63826,63627,63545,63493,63487,63411,63202,62754,62329,61424,60658,60652,59645', 1270507241, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:813;s:17:\"Hugs & Hisses\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'ba678b6b15c81aac30e8c7c52ddb73a8');

MySQL Error  : Table 'pnwhs_forums.vb_search' doesn't exist
Error Number  : 1146
Request Date  : Monday, April 5th 2010 @ 03:40:41 PM
Error Date    : Monday, April 5th 2010 @ 03:40:41 PM
Script        : http://forums.pnwhs.org/post_thanks.php?do=findthanks&u=813
Referrer      :
IP Address    : 173.160.151.225
Username      : Unregistered
Classname    : vB_Database_MySQLi
MySQL Version :

I see quite clearly where it is coming from. Line 278 of post_thanks.php is the file that has that SQL query and is part of the IF block that has the do=findthanks. However this script also generates the error for do=findthanks_user_gave as well. If I go look in the vB database there is no "search" table. Anyone have any idea why this is?

*edit*
Ok I see that this is a common error in this hack and that the best solution appears to be this:
https://vborg.vbsupport.ru/showpost....&postcount=396

However, why am I commenting out dozens of lines of code? Is this actually broken then? Abe1 would you care to comment on this?

War.Frog 04-06-2010 01:57 AM

Quote:

Originally Posted by TheGorf (Post 2016471)
However, why am I commenting out dozens of lines of code? Is this actually broken then? Abe1 would you care to comment on this?

Abe1 has gone MIA I'm afraid.

djbaxter 04-06-2010 02:06 AM

Quote:

Originally Posted by TheGorf (Post 2016471)
However, why am I commenting out dozens of lines of code? Is this actually broken then? Abe1 would you care to comment on this?

You are commenting out the lines that are involved in the search function, which has never worked for 4.02.

See https://vborg.vbsupport.ru/showpost....&postcount=760

Vaira 04-06-2010 09:13 AM

Quote:

Originally Posted by grc (Post 2016368)
When I made the edits I described it also changed the font size of the users who are listed on my forum. Are you perhaps talking about the horizontal screen real estate taken up by the usernames plus the dates? You might consider just turning off the dates. So far as our forum users are concerned I don't think the date is all that important. In fact, I doubt they even know that that option is available since I've never activated it.

Thanks. I have turned off the date. Anyway I would like to know how to make the font size of the listed user smaller......your 'hack' affects definetively the headline, not what's listed in the box!

grc 04-06-2010 12:57 PM

Quote:

Originally Posted by Vaira (Post 2016709)
Thanks. I have turned off the date. Anyway I would like to know how to make the font size of the listed user smaller......your 'hack' affects definetively the headline, not what's listed in the box!

I guess I changed the font of the user's name elsewhere, possibly not related to this hack of the thanks mod. I was thinking the usernames were changed when I did the hack. I reversed it on my forum and I see that the usernames stayed the same, smaller size.

Frankly, I can't remember how I did it but I think its somewhere in the Style Variable Editor. Sorry for the misdirection.

TheGorf 04-06-2010 05:13 PM

So now I find that with this mod, a user deleting their own thanks gets a permission denied error, but the thanks still gets deleted.

The block of code is on about line 116 and starts:

PHP Code:

if ($_REQUEST['do'] == 'post_thanks_remove_user')
{
    (
$hook vBulletinHook::fetch_hook('post_thanks_main_remove_user_thanks_start')) ? eval($hook) : false;

    if (!(
delete_thanks($postinfo$vbulletin->userinfo['userid'])))
    {
        
$using_ajax ? exit : print_no_permission();
    } 

So I altered the logic in that block and removed the bang from infront of delete_thanks() and it works fine now. Another bug in this hack... *sigh*

Oh and while we are on the subject, is anyone else having problems with this hack using AJAX? No matter what options I select adding or removing a Thanks causes a full page refresh.

Kolbi 04-06-2010 06:56 PM

CanĀ“t reproduce these issues..

Antonio Pereira 04-07-2010 06:25 AM

Inside a Thread if a try Inline Mod (Select All) only select a first post.

Anyone can reproduce this bug?

Best Regards

mad@Max 04-07-2010 11:26 PM

1 Attachment(s)
Mostly for developer.
Some improvements with js for OOP: one namespace, autoset events, less size.
Would be even better if the hack work with xml :)

Antonio Pereira 04-08-2010 07:15 AM

Quote:

Originally Posted by mad@Max (Post 2017699)
Mostly for developer.
Some improvements with js for OOP: one namespace, autoset events, less size.
Would be even better if the hack work with xml :)

This fix that bug?
Quote:

Inside a Thread if a try Inline Mod (Select All) only select a first post.

Anyone can reproduce this bug?

Best Regards

Best Regards

mad@Max 04-08-2010 12:56 PM

Quote:

Originally Posted by Antonio Pereira (Post 2017277)
Inside a Thread if a try Inline Mod (Select All) only select a first post.

Anyone can reproduce this bug?

Best Regards

In template post_thanks_box delete unnecessary class postbitim, it needed for inline moderation.

Julie 04-08-2010 03:03 PM

Quote:

Originally Posted by mad@Max (Post 2017908)
In template post_thanks_box delete unnecessary class postbitim, it needed for inline moderation.

Thanks!

grc 04-08-2010 03:55 PM

Quote:

Originally Posted by mad@Max (Post 2017699)
Mostly for developer.
Some improvements with js for OOP: one namespace, autoset events, less size.
Would be even better if the hack work with xml :)

Can you do anything to return search capability to the mod?

djbaxter 04-08-2010 04:56 PM

Quote:

Originally Posted by mad@Max (Post 2017699)
Mostly for developer.
Some improvements with js for OOP: one namespace, autoset events, less size.
Would be even better if the hack work with xml :)

This modification contains references to both post_thanks.js and post_thanks2.js but there is no file named post_thanks2.js.

mad@Max 04-08-2010 05:56 PM

You can remove it from template i forgot did it myself.
Quote:

Can you do anything to return search capability to the mod?
I don't know, there is difficult with search criteria...

Antonio Pereira 04-08-2010 07:20 PM

Quote:

Originally Posted by mad@Max (Post 2017908)
In template post_thanks_box delete unnecessary class postbitim, it needed for inline moderation.

Code:

<li class="postbit<vb:if condition="$vboptions['legacypostbit']">legacy</vb:if> postbitim" id="post_thanks_box_{vb:raw post.postid}"<vb:if condition="!$post_thanks_box == 1"> style="display:none"</vb:if>>
        {vb:raw post_thanks_box}
</li>

Hi can you explain?

Best Regards

mad@Max 04-08-2010 07:41 PM

Like that
HTML Code:

<li class="postbit<vb:if condition="$vboptions['legacypostbit']">legacy</vb:if>" id="post_thanks_box_{vb:raw post.postid}"<vb:if condition="!$post_thanks_box == 1"> style="display:none"</vb:if>>
        {vb:raw post_thanks_box}
</li>


FractalizeR 04-09-2010 06:51 AM

Looks like developer just keeps hack alive and that's all.

Diablotic 04-09-2010 07:19 AM

That's a shame. It is one of the best mods around but the developer is gone :(

s0lidgr0und 04-09-2010 07:43 AM

I'd assume the developer has more important things going on in his life than keeping a free modification up to date.

If it's not something you guys want to worry about, uninstall it.

Vaira 04-09-2010 11:25 AM

Quote:

Originally Posted by mad@Max (Post 2018053)
Like that
HTML Code:

<li class="postbit<vb:if condition="$vboptions['legacypostbit']">legacy</vb:if>" id="post_thanks_box_{vb:raw post.postid}"<vb:if condition="!$post_thanks_box == 1"> style="display:none"</vb:if>>
        {vb:raw post_thanks_box}
</li>


Thanks for that. :)

Furcal15 04-09-2010 03:54 PM

How can I make it so in the profile we can see "Find all thanked posts by this user" "Find all post that were thanked" just like the 3.8 version.

TonicWater 04-09-2010 08:21 PM

Quote:

Originally Posted by Furcal15 (Post 2018418)
How can I make it so in the profile we can see "Find all thanked posts by this user" "Find all post that were thanked" just like the 3.8 version.

i am asking the same but nobody is answering...

grc 04-09-2010 09:27 PM

Quote:

Originally Posted by TonicWater (Post 2018537)
i am asking the same but nobody is answering...

Check out item number 2 in the very first post of this thread.

djbaxter 04-09-2010 09:41 PM

Quote:

Originally Posted by grc (Post 2018565)
Check out item number 2 in the very first post of this thread.

I believe you mean "in the second post", i.e., post #2 at https://vborg.vbsupport.ru/showpost....92&postcount=2

grc 04-09-2010 10:00 PM

Quote:

Originally Posted by djbaxter (Post 2018572)
I believe you mean "in the second post", i.e., post #2 at https://vborg.vbsupport.ru/showpost....92&postcount=2

That's fine, but I think you'll find that it's the first post.

djbaxter 04-09-2010 10:06 PM

Quote:

Originally Posted by grc (Post 2018580)
That's fine, but I think you'll find that it's the first post.

No. It may be the first REPLY but it's the second post, aka post #2.

grc 04-09-2010 10:12 PM

Quote:

Originally Posted by djbaxter (Post 2018583)
No. It may be the first REPLY but it's the second post, aka post #2.

My final post on the topic - would you mind providing me a link to the first post?

djbaxter 04-09-2010 10:29 PM

1 Attachment(s)
Quote:

Originally Posted by grc (Post 2018586)
My final post on the topic - would you mind providing me a link to the first post?

Sure:

First Post (aka the OP or thread starter)

Second Post (notice how the URL even says "postcount=2" and how it is labelled "#2"?)

grc 04-09-2010 10:46 PM

Quote:

Originally Posted by djbaxter (Post 2018596)
Sure:

First Post (aka the OP or thread starter)

Second Post (notice how the URL even says "postcount=2" and how it is labelled "#2"?)

Perhaps you somehow have a different view that I do, are you telling me you see a post that is labeled #1?

What I see is that the first post is labeled #2. When I said it is the first post in the thread, I mean that it's the first post. I didn't say the post labeled #1 - just that it's the first post.

I take it you actually see a post prior to #2?

Sorry to everyone for the off topic posts...but it has me curious now.


All times are GMT. The time now is 12:34 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.04182 seconds
  • Memory Usage 1,866KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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