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)

Mommyland 06-13-2007 04:31 AM

Quote:

Originally Posted by YukonMaster (Post 1267169)
There are alot of posts so I did not have a chance to read them all so I am soory if this has been asked before.

This is the link to what I am seeing, (Double and triple thank yous)
Code:

http://i151.photobucket.com/albums/s123/YukonMaster/untitled-2.jpg
How can I fix this?

This is the answer that is about 7 posts above yours. I had the same problem The first time I did it it didnt work then I removed it and deleted the files then reinstalled everything and its perfect
Quote:

Originally Posted by NolF (Post 1266637)
Try this


tanand79 06-13-2007 05:29 AM

Iam using VB 3.6.3
Its refreshing the whole page once thanks buttons is clicked....

Is there a fix for it ?

YukonMaster 06-13-2007 03:11 PM

Quote:

Originally Posted by Mommyland (Post 1267401)
This is the answer that is about 7 posts above yours. I had the same problem The first time I did it it didnt work then I removed it and deleted the files then reinstalled everything and its perfect


Thank you very much! Sorry I didn't see that post :o

Great MOD!

DaveINM 06-14-2007 09:42 PM

I'm running 3.6.7 PL1. I installed the mod and it seems to work fine on my default template, but nothing shows up in the posts on my custom template. The only out of date custom templates found are with my PDA skin. I also installed the additional hook update. Any ideas on how to fix this?

Edit: Tried adding the hooks to my custom template manually. Got the info to display under the rep and got the thanks button to show up. However, if you click the thanks button, it disappears.

pedrambayat 06-14-2007 10:36 PM

canot view button!!!!!!

deezelpope 06-14-2007 11:03 PM

<i>Did you upload it to all of your styles?</i>

NolF 06-14-2007 11:04 PM

Quote:

Originally Posted by DaveINM
Edit: Tried adding the hooks to my custom template manually. Got the info to display under the rep and got the thanks button to show up. However, if you click the thanks button, it disappears.

you must be missing $template_hook[postbit_end] (here is were the thanks table is showed. the hook goes (PS this is my postbit_legacy template so it might be different in just postbit use the comments to guide you)
HTML Code:

                <!-- / controls -->
        </td>
</tr>
</table>

$template_hook[postbit_end]
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">

I would suggest you to propely update your templates, since it feels as if they were not completely updated
have a look at this post. Should be at least slightly helpful

Quote:

Originally Posted by pedrambayat
canot view button!!!!!!

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

DaveINM 06-15-2007 02:46 AM

Thanks NolF...that worked for me! :D

radarhunter 06-15-2007 03:09 AM

hey its not workin` on my forum

even applied the template hack also

www.stepheniansonline.com/forum/home.php

radarhunter 06-15-2007 03:23 AM

I also cannot view the thank u button - did everything by the book

Quote:

Originally Posted by deezelpope (Post 1268672)
Did you upload it to all of your styles?

how are we supposed to do that ??

deezelpope 06-15-2007 10:36 AM

Quote:

Originally Posted by radarhunter (Post 1268786)
I also cannot view the thank u button - did everything by the book

Quote:
Originally Posted by deezelpope https://vborg.vbsupport.ru/external/2007/06/24.gif
Did you upload it to all of your styles?


how are we supposed to do that ??

Into your FTP or whatever.

radarhunter 06-15-2007 10:41 AM

oh yes it was done i uploaded everything acc. to how you explained

but the same error prevails

deezelpope 06-15-2007 10:33 PM

<i>Well, you're using 3.6.2...this hack has been updated for 3.6.7. Probably why you're having problems.</i>

radarhunter 06-16-2007 04:01 AM

Nope i`m using the latest version of VB :(

thenewuser 06-16-2007 05:13 AM

Er, I installed this and now I have 10:

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

or w/e in all my thread bits, I'll wait till a more stable version comes out, thanks though

/uninstall for now.

mgurain 06-16-2007 05:45 AM

Hi,,
I installed v6.2 it on vb3.6.7 with the fix but image is not showing ?!

jacki 06-16-2007 07:27 AM

hi ,

how can I show total thnak you number on main page


Quote:

thread: xxxxxx, post: xxxxx, member : xxxxx thank you : xxxxx

mgurain 06-16-2007 09:15 AM

hi,
I was using v3.5 of the Thank you hack, and users have given many thanks,
now with the unsuccessful installation of 6.2 it gives 0 thanks for all,
does that mean I have lost all the thanks ?!
can I just reinstall 3.5 and get the old thanks ?

thanks in advance,,

NolF 06-16-2007 10:23 AM

Quote:

Originally Posted by radarhunter
Nope i`m using the latest version of VB

It has been suggested (here) that reuploading all the files and reinstalling everything help

Quote:

Originally Posted by mgurain
Hi,,
I installed v6.2 it on vb3.6.7 with the fix but image is not showing ?!

Have a look at this post

Quote:

Originally Posted by thenewuser
Er, I installed this and now I have 10:

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

or w/e in all my thread bits, I'll wait till a more stable version comes out, thanks though


/uninstall for now.

The problem is not with thank you mod, but with vBulletin it self, in order to fix it, fread this

Quote:

Originally Posted by jacki
how can I show total thnak you number on main page

It would be helpfull to spicify in which page exactly (forumhome etc...) and exactly which thank you value (poster, thread thanks etc... you want to display. Even then I'm not sure that the variables are available outside the postbit templates

Quote:

Originally Posted by mgurain
hi,
I was using v3.5 of the Thank you hack, and users have given many thanks,
now with the unsuccessful installation of 6.2 it gives 0 thanks for all,
does that mean I have lost all the thanks ?!
can I just reinstall 3.5 and get the old thanks ?

thanks in advance,,

I would suggest you to go to your database, (phpMyAdmin instructions)
enter into (prefix)user table scroll sideways till you see the the "examine" button
press it and now look for the column called post_thanks_thanked_posts and press it twice so it is in descending order. IF its empty I'm sorry, but I think they got cleaned up. Either that or 3.5 used a different name for this column so they are not using the same values. If you installed in any stage of the upgrade, all the thank you tables get cleared up, so it would be a restart from 0.

Something that could work is the counters added for the thank you hack in the admincp.

kollam003 06-16-2007 12:04 PM

Thanks Installed :)

Dotara 06-17-2007 12:19 AM

Hello,

I've uploaded the files correctly and placed the image file on my every skin and installed the hack then installed the fix but still button is not showing. I've read through a few pages but nothing is helping me. Using postbit_legacy template & vB 3.6.7 PL1. Any solution please?

NolF 06-17-2007 01:28 AM

Quote:

Originally Posted by Dotara (Post 1270071)
Hello,

I've uploaded the files correctly and placed the image file on my every skin and installed the hack then installed the fix but still button is not showing. I've read through a few pages but nothing is helping me. Using postbit_legacy template & vB 3.6.7 PL1. Any solution please?

Only thing left is to have the template hooks added in the postbit_legacy template
read this ^^

mtlcore 06-17-2007 01:55 AM

Hey man, is this possible>
www.curious-contraptions.com you will see the little feature called "Holler" where the most thanked thread gets displayed on forum home, is that possible with your hack or is just a modified version of your hack???

tanand79 06-17-2007 06:29 AM

Iam using VB 3.6.3 and everytime when i press thanks....the whole page refreshes and loads back again.....

can anything be done for this....pls help

Dotara 06-17-2007 06:58 AM

Quote:

Originally Posted by NolF (Post 1270094)
Only thing left is to have the template hooks added in the postbit_legacy template
read this ^^

Hi,

Thanks. I read it before but didn't get which hook I've to add and where to add in postbit_legacy. Please can you elaborate a little bit?

PugWD 06-17-2007 07:43 AM

[S]I just installed this (6.2) on my test forum (3.6.7 PL1) but the button isn't showing up for some reason.

I only have one buttons folder and the image is in there. :confused:[/S]
n/m. I'm an idiot. I was the only user on my test board, looking at my own posts. :o
Off to install it on my live board. :up:



Do I need the template fix or was that just for pre-6.2?



By the way, you've spelt Instructions.txt as Insructions.

PugWD 06-17-2007 08:35 AM

[high]* PugWD marks installed. :up:
[/high]

Few minor things -
  • I've widened my postbit to allow for longer usernames - where do I edit to get the width of this to line up?
  • Is there a way to remove the gap between the Thanks box and the post it applies to?
  • How do I move the button to the left of the other buttons rather than the right?

Thanks in advance. :)

Nice mod. I've been after it since I saw it on AVForums.

sim20 06-17-2007 10:09 AM

Hi, i have installed the hack to the letter but cannot see any thanks button in the posts! not sure where i've gone wrong but i have checked over and over and am pretty sure that the install went as per instructions, is there any reason why it would'nt work? I'm on 3.6.5 by the way..

Thanks

mgurain 06-17-2007 10:17 AM

Quote:

Originally Posted by NolF (Post 1265485)
postbit, postbit_legacy, navbar, and memberinfo
so click on "[View History]" on those templates, and you will be able to compare the changes between the templates.

postbit and navbar templates are not in this list, but still not working!

sim20 06-17-2007 01:51 PM

Quote:

Originally Posted by sim20 (Post 1270242)
Hi, i have installed the hack to the letter but cannot see any thanks button in the posts! not sure where i've gone wrong but i have checked over and over and am pretty sure that the install went as per instructions, is there any reason why it would'nt work? I'm on 3.6.5 by the way..

Thanks

Anyone? i'm a newbie and can't really understand technical jargon, just need to know wether or not it should be working, if there is a simple solution great, if not i'll uninstall.

NolF 06-17-2007 02:15 PM

Quote:

Originally Posted by mtlcore
Hey man, is this possible>
www.curious-contraptions.com you will see the little feature called "Holler" where the most thanked thread gets displayed on forum home, is that possible with your hack or is just a modified version of your hack???

That looks like "digg" system (or something like that it is called) just changed the word I think.

Quote:

Originally Posted by tanand79
Iam using VB 3.6.3 and everytime when i press thanks....the whole page refreshes and loads back again.....

can anything be done for this....pls help
Reply With Quote

Use Post thanks 6.0 Gold. Make sure you do the template edits, specially the one with the <script>

Quote:

Originally Posted by Dotara
Thanks. I read it before but didn't get which hook I've to add and where to add in postbit_legacy. Please can you elaborate a little bit?

In order (I hope I don't miss any) you will need the following hooks at the postbit(_legacy) template.
$template_hook[postbit_controls] This one is for the button ^^
$template_hook[postbit_end] This one puts the box table with who has thanked
$template_hook[postbit_userinfo_right] This one is for the info (number or thanks etc)

Quote:

Originally Posted by PugWD
Do I need the template fix or was that just for pre-6.2?

The template fix is for 3.6.7 because it has a bug. Since 6.2 is designed for 3.6.7 it is very likely you will need the template fix

Quote:

Originally Posted by PugWD
* I've widened my postbit to allow for longer usernames - where do I edit to get the width of this to line up?
* Is there a way to remove the gap between the Thanks box and the post it applies to?
* How do I move the button to the left of the other buttons rather than the right?

1? You mean the thank you box? got o the template called post_thanks_postbit_legacy and you will find some line saying
Quote:

<tr valign="top">
<td class="alt2" width="XXX">
<if condition="$post['post_thanks_amount']
]Edit that XXX with your new value
2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow
3? In order to have the thanks button on the left, move hte position of the hook $template_hook[postbit_controls]From its current position to just bellow <!-- controls -->

Quote:

Originally Posted by sim20
Hi, i have installed the hack to the letter but cannot see any thanks button in the posts! not sure where i've gone wrong but i have checked over and over and am pretty sure that the install went as per instructions, is there any reason why it would'nt work? I'm on 3.6.5 by the way..

Use version 6.0 Gold and do the template edits as explained in the instructions you will find within

Quote:

Originally Posted by mgurain
Quote:

Originally Posted by NolF
postbit, postbit_legacy, navbar, and memberinfo
so click on "[View History]" on those templates, and you will be able to compare the changes between the templates.

postbit and navbar templates are not in this list, but still not working!

That means that those templates are up to date. However make sure that postbit legacy has the hooks mentioned earlier on this post specially $template_hook[postbit_controls] , navbar ($template_hook[navbar_quick_links_menu_pos1]). And then make sure all the files uploaded are uplaoded correctly, sometimes the fields are not fully uploaded (nothign to do with this hack) but yeh... happens so make sure they are good ^^

Have you checked the database to see if the fields have any info in then or the old 3.5 ones are still in there somewhere?

(PS sorry about grammar and spelling)

vivamexico55 06-17-2007 02:49 PM

Ok, I have ran version 5.3 for a long time, and yesterday I used the "Update Post Thanks Post Amount" option for the counters. It was taking a looong time, about 2 hours, so I just closed my server window.

Now when I tried to backup my database I got this error:

Quote:

Database error in vBulletin 3.6.7:

Invalid SQL:
SHOW CREATE TABLE post_thanks;

MySQL Error : MySQL server has gone away
Error Number : 2006
Date : Sunday, June 17th 2007 @ 10:37:18 AM
Script : http://www.leforo.com/admincp/backup.php?do=sqlfile
Referrer : http://www.leforo.com/admincp/backup.php?do=choose
IP Address : xxx.xxx.xxx.xxx
Username : xxx
Classname : vB_Database
Did I just ++++ up my database? :(

Any ideas how to fix it?

murrtex 06-17-2007 02:57 PM

<a href="http://www.yoursitename.com/forum/search.php?do=findallthanks" target="_blank">http://www.yoursitename.com/forum/se...=findallthanks</a>

dosnt work on latest Post Thank You Hack.

what will be the code now for to find all thanks?

PugWD 06-17-2007 03:18 PM

Quote:

Originally Posted by NolF (Post 1270319)
The template fix is for 3.6.7 because it has a bug. Since 6.2 is designed for 3.6.7 it is very likely you will need the template fix


1? You mean the thank you box? got o the template called post_thanks_postbit_legacy and you will find some line saying
[html]<tr valign="top">
<td class="alt2" width="XXX">
<if condition="$post['post_thanks_amount']
Edit that XXX with your new value
2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow
3? In order to have the thanks button on the left, move hte position of the hook $template_hook[postbit_controls]From its current position to just bellow <!-- controls -->

Mate, if we had this hack on vB.org, you'd have thanks right about now. :D :up:

Dotara 06-17-2007 03:25 PM

Quote:

Originally Posted by NolF (Post 1270319)
In order (I hope I don't miss any) you will need the following hooks at the postbit(_legacy) template.
$template_hook[postbit_controls] This one is for the button ^^
$template_hook[postbit_end] This one puts the box table with who has thanked
$template_hook[postbit_userinfo_right] This one is for the info (number or thanks etc)


Thank you very much. What I did is ...

PHP Code:

<!-- / controls --> 

Below this code I put ...

PHP Code:

$template_hook[postbit_controls

Then ...

PHP Code:

</td>
</
tr>
</
table

After this code I put ...

PHP Code:

$template_hook[postbit_end

Then ...

PHP Code:

<span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if> 

After this code I put

PHP Code:

$template_hook[postbit_userinfo_right

And now this hack is working just fine and looks like the attached image in my forum.

Thanks once again NolF.

tekguru 06-17-2007 05:46 PM

Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).

Any ideas on how to fix?

PugWD 06-17-2007 08:58 PM

One more query from me -
Is there an easy way to remove the Thanks: 0 & Thanked 0 Times in 0 Posts?
Seeing as this is fairly fresh on my board and there are a lot of users who don't actually deserve to have 0 thanks in their postbit profile, I'd like to hide the counts until the system is better established, just showing the thanks in the posts themselves for now.

Cheers. :)

Dotara 06-17-2007 09:39 PM

Quote:

Originally Posted by tekguru (Post 1270448)
Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).

Any ideas on how to fix?

I think you put $template_hook[postbit_userinfo_right] hook twice in your postbit_legay or one already exist. Look for this hook and remove one if you've two.

NolF 06-17-2007 11:17 PM

Quote:

Originally Posted by tekguru
Quote:

Originally Posted by Dotara
I think you put $template_hook[postbit_userinfo_right] hook twice in your postbit_legay or one already exist. Look for this hook and remove one if you've two.

Installed today and working well - only one glitch - I get the thanked message twice - above and below the user profile (see attached).

The name of the upper hook is wrong, it should be called $template_hook[postbit_userinfo_left]

Quote:

Originally Posted by Dotara
And now this hack is working just fine and looks like the attached image in my forum.

Thanks once again NolF.

Your welcome ^^

Quote:

Originally Posted by PugWD
Is there an easy way to remove the Thanks: 0 & Thanked 0 Times in 0 Posts?

Yes, go to the template called post_thanks_postbit_info and put at the very begining
<if condition="$bbuserinfo[usergroupid] == 6"> (in order for ONLY admins to be able to see it) and put </if> at the very end. That should do the trick, otherwise, just delete the whole content of the template, and when you want to show it again, just revert it ^^.

Quote:

Originally Posted by murrtex
http://www.yoursitename.com/forum/se...=findallthanks

dosnt work on latest Post Thank You Hack.

what will be the code now for to find all thanks?

http://www.yoursite.com/post_thanks....=findallthanks is the new code ^^ the difference is that it now uses post_thanks.php to do the search instead of search.php

Quote:

Originally Posted by NolF
Quote:

Originally Posted by PugWD
Is there a way to remove the gap between the Thanks box and the post it applies to?

2? There is, but is a bit complicated (not really, but it involves a cuple of steps, I'll explain them tomorrow

OK, seems it was way easier that I had imagined ^^
Simply go to post_thanks_postbit_legacy
find <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
and remplace the highlighted with 0
you will get <div style="padding:0px 0px 0px 0px"> as result ^^.
Why? if you go to all style setting you will find one which says
"Table Cell Padding (pixels) and its value is 6 (by default) therefor 6 pixels spacing above ^^

Quote:

Originally Posted by vivamexico55
Did I just ++++ up my database?

IF leforo.com is your site, it looks like it is working, so I don't think you have badly screwed your database.
I'm not a database expert (I wish I knew more) but this line doesn't look right to me
SHOW CREATE TABLE post_thanks; SHOW and create? I know create table makes a table called that but then also show?. Besides if you already have a table called that I don't think you can recreate it... And also if you are doing a backup why would it be creating a existing table?

Lets wait for the experts to explain, but from the looks of it, the forum seems fine.

PugWD 06-18-2007 04:08 AM

Quote:

Originally Posted by NolF (Post 1270600)

Yes, go to the template called post_thanks_postbit_info and put at the very begining
<if condition="$bbuserinfo[usergroupid] == 6"> (in order for ONLY admins to be able to see it) and put </if> at the very end. That should do the trick, otherwise, just delete the whole content of the template, and when you want to show it again, just revert it ^^.

[...]

OK, seems it was way easier that I had imagined ^^
Simply go to post_thanks_postbit_legacy
find <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
and remplace the highlighted with 0
you will get <div style="padding:0px 0px 0px 0px"> as result ^^.
Why? if you go to all style setting you will find one which says
"Table Cell Padding (pixels) and its value is 6 (by default) therefor 6 pixels spacing above ^^

Awesome. Thank you once again. :cool:


All times are GMT. The time now is 04:33 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.03347 seconds
  • Memory Usage 1,897KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (6)bbcode_php_printable
  • (39)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