View Single Post
  #744  
Old 05-10-2006, 06:31 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a demo of your extra bit or a screener please,
Do you think you could do the same for the post groan?

Pehaps you can release yours as an add on for these 2 hacks..

Its just that my post bit is looking a tad full ya see and getting rid of the
thanks and groans amounts would be a godsend

Quote:
Originally Posted by Yorixz
Wonderful hack, really something I've been looking for.

I've got a few small problems though, because I'm trying to keep my forum a bit minimalistic (my taste ) I've been trying to put the list of users who thanked into a popup menu, similiar to the one you get if you click on a username.

To do this I've added a new button besides the "Reputation" one which needs to be clicked to see this menu.

The code I've used for this:
After "$post[iplogged]"
Code:
<span id="infomenu_$post[postid]"><a href=""><img class="inlineimg" src="$stylevar[imgdir_button]/info.gif" alt="Post Info" border="0" /><script type="text/javascript"> vbmenu_register("infomenu_$post[postid]", true); </script></span>
After "<!-- / post #$post[postid] -->"
Code:
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
And in the template post_thanks_box I replaced the non-script content with
Code:
<!-- post $post[postid] info menu -->
<div class="vbmenu_popup" id="infomenu_$post[postid]_menu" style="display:none">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="userinfo" id="post_thanks_box_$post[postid]">
		$post_thanks_box
		</td>
	</tr>
	</table>
</div>
<!-- / post $post[postid] info menu -->
In addition I've also removed the $spacer's out of the 'post_thanks_postbit_legacy' template.

It's working fairly well, I've got a few problems that I couldn't find a solution for though:
How can I 'extend' the hack some so I'll able to hide the info.gif image if there are no users who thanked for a post.
And how can I make sure the list will be updated when a user clicks the "Thanks" button? I'm afraid I destroyed the AJAX somewhere but can't figure out where it was.

Thanks a lot for your help, hopefully there are also other users interested in this.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01143 seconds
  • Memory Usage 1,774KB
  • 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
  • (3)bbcode_code
  • (1)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