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)

Guest210212002 02-13-2008 07:20 PM

This isn't installing through my product manager in 3.7 b4. The import just hangs.

Guest210212002 02-13-2008 10:12 PM

/me clicks install

I got the product in, and updated my files, but my postbit is not showing the thanks button in 3.7. Per the readme, there are no template edits required, correct?

Guest210212002 02-13-2008 11:03 PM

Removed.

Guest210212002 02-13-2008 11:14 PM

Edit: Yep, vb3_post.MYI corrupted again after trying to uninstall this hack.

iettafune 02-14-2008 07:59 AM

sorry but in my forum i see this hack

---->

https://vborg.vbsupport.ru/external/2008/02/16.jpg

and not

----->

https://vborg.vbsupport.ru/external/2008/02/16.jpg

SemperFideles 02-14-2008 10:26 PM

I know this is supposedly resolved in 7.2 but I've had 7.2 installed since 25 Jan and I just started getting this error on one thread today:

Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183

I have re-uploaded every single file, reinstalled but I still get the error on this single thread. Is there any issue where the Thanks on a page can get corrupted in the dB?

Namaless 02-15-2008 06:11 AM

Now I have optimize the query for get color groups (with secondary group selected).
PHP Code:

function fetch_thanks($postid 0$postids ''$fetch_again false)
{
    global 
$vbulletin;
    static 
$cache$act;

    (
$hook vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_start')) ? eval($hook) : false;

    if ((!(
$cache) && !($act)) || ($fetch_again))
    {
        
$cache = array();

        if (
$postids)
        {
            
$post_ids "0$postids";
        }
        else
        {
            
$post_ids $postid;
        }

        
$thanks $vbulletin->db->query_read("SELECT ps.*, u.username,u.usergroupid,u.displaygroupid 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");

        while (
$thank $vbulletin->db->fetch_array($thanks))
        {
            
$cache[$thank['postid']][$thank['userid']]['userid'] = $thank['userid'];
            
            
//$cache[$thank['postid']][$thank['userid']]['username'] = $thank['username'];
            // Get vBulletin User Group ID
            
$cache[$thank['postid']][$thank['userid']]['username'] = fetch_musername($thank);
            
            
$cache[$thank['postid']][$thank['userid']]['date'] = $thank['date'];
            
$cache[$thank['postid']][$thank['userid']]['postid'] = $thank['postid'];
        }
    }

    (
$hook vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_end')) ? eval($hook) : false;

    
$act true;
    return 
$cache[$postid];


Thanks for hack :)

Guest210212002 02-15-2008 09:29 PM

Abe, if you could take a peek at this thread I'd really appreciate it. :)

CLF 02-16-2008 12:42 AM

Quote:

Originally Posted by Abe1 (Post 1440492)
Can i look at your ACP?

No problem (do you want me to pm you details). I thought I fixed it but just as this guy I quoted - I'm getting the same thing:

Quote:

Originally Posted by rinkrat (Post 1414743)
My thank button is looped too and also the list of Thankers is after every post instead of just the first one! I managed to get rid of the multiple thanks by limiting thanks to the first post, but still the list of thankers is after EVERY POST in the thread which clutters the whole page.

How do I fix this?

Same problem here. It loops and then I limited to the first post but same as yours, the list of members that thanked is showing at the bottom of each post and it is sooo ugly.

THANK YOU, ABE!

youradhere4222 02-16-2008 01:19 AM

Quote:

Originally Posted by iettafune (Post 1442739)

I see this too...


All times are GMT. The time now is 02:44 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.02554 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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