Thread: Show Thread Enhancements - [AJAX] Post Thank You Hack
View Single Post
  #1280  
Old 06-17-2007, 11:17 PM
NolF's Avatar
NolF NolF is offline
 
Join Date: Nov 2006
Location: You don't wanna know
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01247 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete