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)

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 03:16 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.02943 seconds
  • Memory Usage 1,803KB
  • 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
  • (6)bbcode_php_printable
  • (22)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