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 07-29-2007 02:33 PM

Quote:

Originally Posted by CityGuard (Post 1303327)
Abe1, this is a very cool hack and we'd like to implement it in our forum. Per post 1428 we're getting a strange error when attempting installation -- strange only because we're using 3.6.7 patch 1. Any clue why the installation system would be confused about which version of vBulletin we are using or what I can do to solve it?

What file are you trying to install?

Abe1 07-29-2007 02:34 PM

Quote:

Originally Posted by duditas (Post 1303373)
I have the same problem.

https://vborg.vbsupport.ru/attachmen...0&d=1184925775



But what 5? I can't see any :(

post_thanks_postbit
Code:

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="alt2" style="padding:0px">
                                <if condition="$post['post_thanks_amount'] == 1">
                                        <strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
                                <else />
                                        <strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
                                </if>
                        </td>
                        <if condition="$bbuserinfo['usergroupid'] == 6">
                                <td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
                                        <a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
                                </td>
                        </if>
                        <if condition="$post['show_thanks_remove_option']">
                                <td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
                                        <a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
                                </td>
                        </if>
                </tr>
                <tr><td class="alt1" colspan="3"><div>$post[post_thanks_bit]</div></td></tr>
        </table>
</div>


Try that first variable. It should be cellpadding.

Abe1 07-29-2007 02:37 PM

Quote:

Originally Posted by princeedward (Post 1304277)
dunno why is it my thanks button position is at the right place.....as far as i know...it should be at the left side...right?...
maybe anyone from you guys or abe can help me to put it to the left place...please view my attachment below...

thanks and best regards to all...

:confused:

Change where the template hook is located. Check out the postbit template.

Abe1 07-29-2007 02:37 PM

Quote:

Originally Posted by InuyashaXTC (Post 1304347)
Thanks for the hack. I got this to work on vBulletin 3.6.8 default's skin, but not on other custom skins.

The only thing that show up in the source of the postbit is the line:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

All the other lines corresponding to the post thanks simply wouldn't show up. How would I go about manually changing the templates to get the hack to work on these custom skins?

Do a 'history' compare. Add all the 'template_hook' locations.

Abe1 07-29-2007 02:39 PM

Quote:

Originally Posted by ABDALWAHID (Post 1304454)
Hi,

i have a problem

i have this mod installed.

first post 1 thanks button and on profil 1 info
second post 2 thanks button and on profil 2 info
and 3 and 4....

hiere my screenshots

what is my problem?

regard

Install vb3.6.8 or the fix included in the first post.

Abe1 07-29-2007 02:39 PM

Quote:

Originally Posted by fariborz (Post 1304536)
Please update your plugin for vb 3.6.8 without any this bugs!

Do you mind sharing? I can't fix bugs if I dont know what or where they are.

princeedward 07-29-2007 06:44 PM

Quote:

Originally Posted by Abe1 (Post 1304619)
Change where the template hook is located. Check out the postbit template.

Million thanks Bro...got it the easy way...


To Move The Thanks Button From Right Place To the Left Place Beside Edit button:

ACP > Styles & Templates > Search In Templates > Search In Your Own/Actual Skin Style > Search For Text > Postbit Or Postbit Legacy > Click Find

Find: The Red Code Below: Copy & Delete:


Code:

$template_hook[postbit_controls]
<!-- / controls -->

Move: Paste It Between:
Code:

<!-- controls -->
$template_hook[postbit_controls]
<if condition="$post['editlink']">


Hope This Help Anyone...The Easy Way Tutorial!

Best Regards To All!

:p

InuyashaXTC 07-29-2007 09:12 PM

Quote:

Originally Posted by Abe1 (Post 1304620)
Do a 'history' compare. Add all the 'template_hook' locations.

If I manually add in the template hooks, do will they still correspond to the options set in the vBulletin's options for the Post Thank You hack? (ie will only show up where in the forums that I specified)

Thanks.

Abe1 07-29-2007 11:20 PM

Quote:

Originally Posted by InuyashaXTC (Post 1304868)
If I manually add in the template hooks, do will they still correspond to the options set in the vBulletin's options for the Post Thank You hack? (ie will only show up where in the forums that I specified)

Thanks.

I'm not 100% sure your question. Can you explain more?

Abe1 07-30-2007 04:22 AM

Version 6.3 (07/30/07):
  • Moved post thanks stats in postbit from hook postbit_userinfo_right to hook postbit_userinfo_right_after_posts. (for vb 3.6.8 and <3.6.6)
  • Released for all versions of vb 3.6.x

Just make sure you ONLY have template edits that the instructions tells you. For some of the versions, there is a file to tell you want template edits you need if you have a custom style.


All times are GMT. The time now is 03:04 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.04242 seconds
  • Memory Usage 1,760KB
  • 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
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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