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)

ForceHSS 08-30-2011 05:50 PM

pity you did not as I dont have this installed on my live site and only installed it on my test site to update it as it is now removed and dont have the time to check for you unless you had that ss. I am working on other things if I do have time at a later date will have a look

NTMID8 08-31-2011 12:17 AM

1 Attachment(s)
OK, I got it back now... for the most part. I have the desired location and look (see attachment) but it is now reloading the page when I click thank so I believe I broke the AJAX. Can you help me correct that?

I changed post_thanks_box to:

PHP Code:

{vb:raw post_thanks_box

I changed post_thanks_postbit to:

PHP Code:

<br />
    <
div class="bbcode_container">
        <
div class="bbcode_quote">
            <
div class="quote_container">
                <
div class="bbcode_quote_container"></div>
                <
div class="bbcode_postedby">
                    <
vb:if condition="$bbuserinfo['usergroupid'] == 6 || $post['show_thanks_remove_option']">
                        <
div class="smallfont" style="float:{vb:stylevar right}">
                            <
vb:if condition="$bbuserinfo['usergroupid'] == 6">
                                <
a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:raw post.postid}"
                                
<vb:if condition="$vboptions['disable_ajax'] != 2"onclick="return post_thanks_remove_all({vb:raw post.postid}, 
                                    <vb:if condition="
$vboptions['post_groan_integrate']">true
                                    <vb:else />false
                                    </vb:if>);"
                                
</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove}
                                </
a>
                            </
vb:if>
                            <
vb:if condition="$bbuserinfo['usergroupid'] == 6 && $post['show_thanks_remove_option']">
                                |
                            </
vb:if>
                            <
vb:if condition="$post['show_thanks_remove_option']">
                                <
a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:raw post.postid}"
                                
<vb:if condition="$vboptions['disable_ajax'] != 2"onclick="return     post_thanks_remove_user({vb:raw post.postid}, 
                                    <vb:if condition="
$vboptions['post_groan_integrate']">true
                                    <vb:else />false
                                    </vb:if>);"
                                
</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove_user}
                                </
a>
                            </
vb:if>
                        </
div>
                    </
vb:if>
<!--                <
img src="images/styles/streetrod/misc/quote_icon.png" alt="Quote" />     -->
                    
These members thank <strong>{vb:raw post.username}</strong> for this useful post.
                </
div>
                <
div class="message">
                    {
vb:raw post.post_thanks_bit}
                </
div>
            </
div>
        </
div>
    </
div>
<
hr /> 

I also modified the plugin postbit_display_complete replacing:

PHP Code:

$template_hook['postbit_end'] .= $templater->render(); 

with:

PHP Code:

$template_hook['postbit_signature_start'] .= $templater->render(); 


ForceHSS 08-31-2011 10:33 AM

will run some tests see what I can do to help you

Marios858 09-01-2011 09:32 AM

Tested on 4.1.5 works . Thanks , Excellent Hack.:)
Quote:

Originally Posted by Hippy (Post 2194225)


ForceHSS 09-01-2011 03:36 PM

Quote:

Originally Posted by Marios858 (Post 2240750)
Tested on 4.1.5 works . Thanks , Excellent Hack.:)

https://vborg.vbsupport.ru/showpost....postcount=1779

prabhgrewal 09-01-2011 07:12 PM

I get a access denied message for some users when they click the thanks button, and it seems to be a randomly occuring event, in the sense that the same user is able to use the thanks and then all of a sudden he gets a "You are not authorised to view this page" message, though the thanks seems to have registered fine

NTMID8 09-03-2011 03:58 AM

Any luck with restoring the AJAX functionality?

One other request I have... is it possible to add a notification so the user's are notified when their posts are thanked? It would be nice to see this show up with other notifications and then clicking it would show a list of the thanked posts.

pcmwebmaster 09-03-2011 10:43 AM

hello
i an getting this error
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

30et 09-05-2011 03:32 AM

Does this work with the vbulletin native mobile skin?

AussieDave 09-06-2011 12:53 PM

vBulletin version 4.1.5 L1

New forum - plug in not used before.

Downloaded and installed code update:
https://vborg.vbsupport.ru/showpost....postcount=1779

No errors given but neither buttons are displaying in post.
Checked output of compiled code and it's present. Checked postbit and postbitlegacy code is in bothbBut still wont work.

Anyway idea what's up and how to fix?

URL of site (remove xxx):
xxxhttp://www.awaa.com.au/forums/

Any help much appreciated, thanks!


Cheers

Dave


All times are GMT. The time now is 08:38 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.04787 seconds
  • Memory Usage 1,779KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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