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)

unfaceguy 12-28-2007 04:16 AM

Quote:

https://vborg.vbsupport.ru/attachmen...1&d=1198129320

he has 0 y it say he have 5
it says he thanked not was thanked lol.

mahler59 12-28-2007 06:52 PM

Hey guys the Install went smootly, but, the count doesnt change when hitting the thanks button. Any ideas on what is going on?

Thanks

ericgtr 12-28-2007 08:45 PM

Abe, thanks for the update!

For some reason there isn't a Thanks button for any of the posts by the admin only, everyone else has it. I have not changed any of the defaults either, any ideas?

Traxdata 12-28-2007 10:35 PM

Quote:

Originally Posted by mahler59 (Post 1410956)
Hey guys the Install went smootly, but, the count doesnt change when hitting the thanks button. Any ideas on what is going on?

Thanks

did you try with refresh? thanks count changes after refreshing.

mahler59 12-29-2007 04:41 AM

Quote:

Originally Posted by Traxdata (Post 1411096)
did you try with refresh? thanks count changes after refreshing.

Yea that was the first thing I tried. Any other ideas.....

Namaless 12-29-2007 01:31 PM

I have suggestion for username into thanks box:

In the /includes/functions_post_thanks.php at line 160:

For username use the vb function for get musername (username with style), I use this system:
Code:

                        // Get vBulletin User Group ID
                        $UserGroupID = ( $thank['displaygroupid'] == 0 ) ? 'usergroupid' : 'displaygroupid';
                        $cache[$thank['postid']][$thank['userid']]['username'] = fetch_musername($thank, $UserGroupID);

And the sql I have edited:
Code:

$thanks = $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX. "post_thanks AS ps INNER JOIN " .TABLE_PREFIX. "user AS u ON (u.userid = ps.userid) WHERE ps.postid IN (" . $post_ids . ") ORDER BY ps.username ASC");
I suggest to add this system ;)

I have rewrited the table at bottom post for get thead class for first cell and delete external divisor for more standard ;)

Thanks for your production :)

Taragon 12-31-2007 04:15 PM

could someone tell me perhaps when/where the thank you button is added. somehow -using a custom style- it's showing twice.

(when I revert the postbit_legacy template it is showing ok again)

http://files.taragon.nl/2007/12/thanks.jpg

steve1966 12-31-2007 08:18 PM

Hi sorry to be a pain but i have installed this hack and when i click on the thanks button the button disapears and no thanks is added what have i done wrong?

thanks

Red Spider 01-01-2008 04:07 AM

One of the best mods ever :)

steve1966 01-01-2008 08:28 AM

disregard my support i have fixed now and the mods cool


All times are GMT. The time now is 11:13 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.02523 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
  • (2)bbcode_code_printable
  • (3)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
  • (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