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)

Abe1 03-21-2008 11:48 AM

Quote:

Originally Posted by tnedator (Post 1470164)
Hi, I have version 6.3 of postthanks installed and am running 3.6.8 (patch level 2). Today I started getting the following error on a couple threads.

This is at the top of the page in orange or red:

Code:

Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183
Then this is in a "vBulletin Message" box:

Code:

Unable to add cookies, header already sent.
File: /home/tnedator/public_html/forums/includes/class_core.php
Line: 3075

If you go to this thread http://www.broncosforums.com/forums/...ad.php?t=11734 and click on the second page, the error occurs.

I see that "for each" errors have been fixed in some of the 7.x releases. Should I just upgrade to 7.3? Is there any issues using 7.3 with 3.6.8?

Any help would be appreciated.

Are there any thank boxes that show thanks that dont have any thanks in them?

oldengine 03-21-2008 03:29 PM

How do I shrink the postbit font size in the post_thanks_postbit section for $vbphrase[post_thanks_user_says]

I'd like it to be much smaller than the post itself.

EDIT: I found part of the cure in post_thanks_postbit shrinking the list of user names in the tag.
Code:

<div class="smallfont">$post[post_thanks_bit]</div>
Now to get that to work on the line, "The Following 2 Users Say Thank You" - I don't know what the hell I'm doing, but I did it...
Code:

<td class="alt2" style="padding:0px"><div class="smallfont">
                                <if condition="$post['post_thanks_amount'] == 1">
                                        <phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
                                <else />
                                        <phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
                                </if></div>
                        </td>


Pirat3 03-21-2008 03:38 PM

This is what I find:
Code:

post_thanks_thanked_post          Standard Phrase          Thanked Post         
post_thanks_time_post        Standard Phrase        Thanked 1 Time in 1 Post       
post_thanks_times_post        Standard Phrase        Thanked {1} Times in 1 Post       
post_thanks_times_posts        Standard Phrase        Thanked {1} Times in {2} Posts

Which one do I edit? I want basically Thanked to turn into help and I dont want to show the # of posts thanked in.

amlouline 03-21-2008 05:46 PM

hello all , plz help , i have probleme with post hack thank you , message warning:
Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 222

atlambros83 03-21-2008 07:31 PM

lol this hack would really be helpful on vb.org......then we'd only have to sort through half of the pages in a thread to view feedback and get help. great hack, i'll bookmark it and add it to my forums later.

tnedator 03-21-2008 10:52 PM

Quote:

Originally Posted by Abe1 (Post 1470665)
Are there any thank boxes that show thanks that dont have any thanks in them?

Yes. I hadn't noticed until you said to look, but one thanks box has no thanks, but says this: "The Following 4,294,967,295 Users Gave High Fives to BOSSHOGG30 For This Useful Post: "

petacat 03-21-2008 11:24 PM

Thanks for the updates.

We really needed the limits on giving thanks and being able to ban abusers of thanks.

oldengine 03-22-2008 12:30 AM

Quote:

Originally Posted by petacat (Post 1471167)
Thanks for the updates. We really needed the limits on giving thanks and being able to ban abusers of thanks.

Double dittos! I had dropped off this hack for a while, but all my users missed it terribly. Now that I can keep certain individuals from thanking EVERY post on the board, it's great!

Shannonx 03-22-2008 12:50 AM

OK, I just installed this on my VB 3.6.8, did everything in the instructions and the thanks button is showing just fine as is everything else, but when the thanks button is pressed, nothing happens (appart from the button disappearing as it should) until you refresh the page and the button is back and the thanks count doesn't go up.

Any ideas what I am missing out? I made sure I have enabled it in admincp etc. just stuck to what it could be missing.

Many thanks. x

Konstantinos 03-22-2008 07:56 AM

are there any thank buttons based on the vb2 buttons ?


All times are GMT. The time now is 12:44 PM.

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.03142 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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
  • (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