View Single Post
  #27  
Old 06-18-2009, 08:24 PM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very useful mod.
Thank you. :-)
Installed...!!!
I modified a little the code to fit my needs. I changed it just to fit well in my forum (I removed the text next to the icons). ;-)


Here is the modified Code:


Code:
<div align=right>
<if condition="$post[postcount] % $vboptions[maxposts] == 1">

&nbsp;
&nbsp;
&nbsp;
&nbsp;

<a href="printthread.php?$session[sessionurl]t=$post[threadid]" accesskey="3" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt=" Show Printable Version]" border="0"/></a>

&nbsp;
&nbsp;
&nbsp;

<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="Email this Page to a Friend" border="0"/></a>

&nbsp;
&nbsp;
&nbsp; 
	<if condition="$show['member']"> 
	<if condition="$show['subscribed']"> 

	<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="Un-Subscribe from this Thread" border="0"/></a> 

	<else /> 

	<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$post[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="Subscribe to this Thread" border="0"/></a> 

	</if> 
	</if>
</if>
</div>
Here is the Result in my forum:

Attachment 100753

I posted it in case someone is interested in removing the text next to the pictures too and use less space in his/her theme. :-)

What is strange to me is the fact that the "unsubscribe" code, seems that it is not working (at least in my forums). Either with the original code neither with the code I used (see above).
Also I would like to know where exactly is the correct spot in the template code to put the mod, so the 3 icon links can appear below the "Quote", "Multi Quote", "Reply" without a problem (at the bottom of the post).

Thanks a priori for your reply. :-)


EDIT: I Found the right spot inside the template I think...;-)

in "postbit_legacy" Search for:


Code:
<td colspan="2" class="postbit_bottom_right"><div style="background:url($stylevar[imgdir_misc]/post-br-r.gif);float:right;height:47px;width:10px;"></div>
After that put the mod code. :-)

Here are the results in my site:

Attachment 100754
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,785KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_code
  • (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