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)

vivamexico55 07-22-2007 06:18 PM

What's the proper process to upgrade from 5.3 to 6? I'd like to avoid the problems mentioned in this thread.

Rickeo 07-23-2007 04:23 AM

It works ok so far just on the posts it is howing this multiple times

Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts

Any idea how to fix this??

powerful_rogue 07-23-2007 08:36 AM

Quote:

Originally Posted by Abe1 (Post 1298218)
You have to revert the templates that have a $template_hook in it.

Hi,
Ive got exactly the same problem. How do I go about doing that?

fariborz 07-23-2007 01:07 PM

I restored my backup, but all off users thanks counter is 0 and now show me this error:
Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

What can i do now? :( my SQL Post Thanks Table is not problem, but on my forum is not show any counter and all off thanks is reset to 0!
Can you help me please?

zorab 07-23-2007 03:21 PM

Quote:

Originally Posted by fariborz (Post 1299163)
I restored my backup, but all off users thanks counter is 0 and now show me this error:
Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

What can i do now? :( my SQL Post Thanks Table is not problem, but on my forum is not show any counter and all off thanks is reset to 0!
Can you help me please?

I have the same problem. I upgraded from version 5 to 6.2 after bringing my vbulletin forum up-to-date with version 3.6.7. Despite importing the post_thanks table from a backup of my database into the new database, all the 'thanks' statistics are being reported as zero! Is there a specific counter that needs to be reset to recreated the thanks statistics?

fariborz 07-23-2007 09:43 PM

Quote:

Originally Posted by zorab (Post 1299265)
I have the same problem. I upgraded from version 5 to 6.2 after bringing my vbulletin forum up-to-date with version 3.6.7. Despite importing the post_thanks table from a backup of my database into the new database, all the 'thanks' statistics are being reported as zero! Is there a specific counter that needs to be reset to recreated the thanks statistics?

Dear Developer, Can you help to us for this problem? What can we do for resolve this problem?!
I disabled my post thanks plugin :( please fastest

katie hunter 07-24-2007 02:12 AM

Hi What should i do ? I can't log into my admin cp nor fix this error when i tried to install this hack, and i recived this error

This hack has too many bugs " a hack like that to cause a forum to crash " I think it should be Dropped

Many ppl experienced that fatal error and no one wrote warning on the first post of this hack, I think there should be warning on the first page so some ppl don't have to lose their sites and back up the forum that is if they luckly did it before installing that hack

Fatabase error in vBulletin 3.6.7:

Invalid SQL:

SELECT thanks.*, post.userid as postuserid, user.username
FROM thanks as thanks
LEFT JOIN post as post ON (post.postid = thanks.postid)
LEFT JOIN user as user ON (user.userid = thanks.userid)
ORDER BY thanks.dateline DESC;

MySQL Error : Table 'nihonoma_forumdb.thanks' doesn't exist
Error Number : 1146
Date : Monday, July 23rd 2007 @ 10:11:06 PM
Script : http://forum.nihonomaru.com/index.php

SuperTaz 07-25-2007 03:20 AM

I installed it and everything works except it does not show the thanks button for all the forums, just a few of them. I have all the forum ID's filled in to allow it, but they do not show the thanks button. Is there a different code that I need for that?

NaughtyStud 07-25-2007 07:04 AM

This has probably already been discussed, but I really wasn't up for looking though 97 pages to see.I have the problem of having a half dozen buttons and like the poster above this...

Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts

When I select to just go with the first post, it doesn't show up at all.I followed the instructions and I am running on 3.6.7.Thanks ;)

CarlitoBrigante 07-25-2007 10:30 PM

Hello,

This hack has indeed some bugs, which I noticed while developing an add-on for a client that has this hack installed on his boards.

Anyhow, the one you are experiencing can be simply fixed by installing the fix included in this thread.

vspro 07-26-2007 10:49 AM

How i can change place for the Thanks button ?? i want it beside the Edit Button

chiwexa 07-27-2007 12:41 PM

Quote:

Originally Posted by chiwexa (Post 1296617)
Thank you. Another question:

I don't see a border around the Thanks-Box in the postbit_legacy, but in postbit I do.

post_thanks_postbit:

Code:

<div style="padding:0px 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>


post_thanks_postbit_legacy no Border?!


Code:

<div style="padding:0px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="162">
<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>
<if condition="$bbuserinfo['usergroupid'] == 6"><br />
<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>
</if>
<if condition="$post['show_thanks_remove_option']"><br />
<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>
</if>
</td>
<td class="alt1">
<div>$post[post_thanks_bit]</div>
</td>
</tr>
</table>
</div>



Anyone?
:(

dricho 07-27-2007 06:29 PM

This is fantastic, easy and valuable on my style of forum...thanks to you!

CityGuard 07-27-2007 07:37 PM

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?

Quote:

The following dependencies were not met:

This product is not compatible with version 3.6.5 of vBulletin. (Compatible starting with 3.6.7)

duditas 07-27-2007 08:29 PM

I have the same problem.

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

Quote:

Originally Posted by Abe1 (Post 1296453)
Edit the post_thanks_postbit template. Look at one of the first things in there. I think you have to change a number from 5 to 0.

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>


chiwexa 07-28-2007 10:15 AM

Heyho,

you have to edit the first line:

Search this:
Code:

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
Replace it with:
Code:

<div style="padding:0px 0px 0px 0px">

belinea 07-28-2007 08:13 PM

Does someone have a German language pack for this hack?

princeedward 07-28-2007 11:29 PM

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:

InuyashaXTC 07-29-2007 03:20 AM

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?

ABDALWAHID 07-29-2007 08:06 AM

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

fariborz 07-29-2007 11:43 AM

Please update your plugin for vb 3.6.8 without any this bugs!

Abe1 07-29-2007 02:23 PM

Quote:

Originally Posted by vivamexico55 (Post 1298450)
What's the proper process to upgrade from 5.3 to 6? I'd like to avoid the problems mentioned in this thread.

What version of vb do you have now?

Abe1 07-29-2007 02:23 PM

Quote:

Originally Posted by Rickeo (Post 1298751)
It works ok so far just on the posts it is howing this multiple times

Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts

Any idea how to fix this??

CAN'T YOU READ THE FIRST POST???? You can install vb 3.6.8 and it should fix it also.

Abe1 07-29-2007 02:24 PM

Quote:

Originally Posted by powerful_rogue (Post 1298889)
Hi,
Ive got exactly the same problem. How do I go about doing that?

Please go to the vbulletin.com and read the post about updating versions.

Abe1 07-29-2007 02:25 PM

Quote:

Originally Posted by fariborz (Post 1299163)
I restored my backup, but all off users thanks counter is 0 and now show me this error:
Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

What can i do now? :( my SQL Post Thanks Table is not problem, but on my forum is not show any counter and all off thanks is reset to 0!
Can you help me please?

In the ACP, there are Post Thanks recounters. Please use them.

Abe1 07-29-2007 02:28 PM

Quote:

Originally Posted by katie hunter (Post 1299744)
Hi What should i do ? I can't log into my admin cp nor fix this error when i tried to install this hack, and i recived this error

This hack has too many bugs " a hack like that to cause a forum to crash " I think it should be Dropped

Many ppl experienced that fatal error and no one wrote warning on the first post of this hack, I think there should be warning on the first page so some ppl don't have to lose their sites and back up the forum that is if they luckly did it before installing that hack

Fatabase error in vBulletin 3.6.7:

Invalid SQL:

SELECT thanks.*, post.userid as postuserid, user.username
FROM thanks as thanks
LEFT JOIN post as post ON (post.postid = thanks.postid)
LEFT JOIN user as user ON (user.userid = thanks.userid)
ORDER BY thanks.dateline DESC;

MySQL Error : Table 'nihonoma_forumdb.thanks' doesn't exist
Error Number : 1146
Date : Monday, July 23rd 2007 @ 10:11:06 PM
Script : http://forum.nihonomaru.com/index.php

It seems like you edited something yourself. I do not have a table called 'thanks'. It is called 'post_thanks'. How can this query call post thanks?

Anyways, this did NOT crash your forum. All you have to do is to disable plug-ins. You can do that via the config file I believe.

Abe1 07-29-2007 02:29 PM

Quote:

Originally Posted by Warden-B- (Post 1300797)
I installed it and everything works except it does not show the thanks button for all the forums, just a few of them. I have all the forum ID's filled in to allow it, but they do not show the thanks button. Is there a different code that I need for that?

I dont know why. I would have to look at your forum.

Abe1 07-29-2007 02:29 PM

Quote:

Originally Posted by NaughtyStud (Post 1300908)
This has probably already been discussed, but I really wasn't up for looking though 97 pages to see.I have the problem of having a half dozen buttons and like the poster above this...

Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts

When I select to just go with the first post, it doesn't show up at all.I followed the instructions and I am running on 3.6.7.Thanks ;)

Look at the bottom of the first post or upgrade to vb 3.6.8.

Abe1 07-29-2007 02:31 PM

Quote:

Originally Posted by CarlitoBrigante (Post 1301703)
Hello,

This hack has indeed some bugs, which I noticed while developing an add-on for a client that has this hack installed on his boards.

Anyhow, the one you are experiencing can be simply fixed by installing the fix included in this thread.

What bugs are you talking about?

This bug that everyone has with repeating info, has been fixed if you install vb3.6.8. It was not my bug but vB's.

Abe1 07-29-2007 02:31 PM

Quote:

Originally Posted by vspro (Post 1302085)
How i can change place for the Thanks button ?? i want it beside the Edit Button

Move over the the template hook for the controls. Look in the postbit template.

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:40 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.03453 seconds
  • Memory Usage 1,886KB
  • 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
  • (8)bbcode_code_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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