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)

radarhunter 06-18-2007 04:11 AM

heylo guys i`ve installed the mod but it isn`t showin` anywhere on the posts

kindly tell me what to do

version of my forum is 3.6.7 PL1

mrahul 06-18-2007 07:35 AM

in case this hack is dis-abled during upgrading vb or for some other reason, will the post count remain same or the [thanks hack added post count (not the thanks count)] will decrease ?

Dotara 06-18-2007 07:38 AM

Quote:

Originally Posted by radarhunter (Post 1270682)
heylo guys i`ve installed the mod but it isn`t showin` anywhere on the posts

kindly tell me what to do

version of my forum is 3.6.7 PL1

Please read though page 84-86. You'll able to solve the prob. If still you'll have problem then post 'em here.

tekguru 06-18-2007 04:12 PM

Quote:

Originally Posted by NolF (Post 1270600)
The name of the upper hook is wrong, it should be called $template_hook[postbit_userinfo_left].

I've changed the above in my templates but for some reason when I display the post it still looks the same....

Could this be vBSEO or vB caching the data?

radarhunter 06-18-2007 05:31 PM

thanks a lot buddie your this post helped me :

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

You ROCK

Parm 06-18-2007 05:37 PM

Thanks for the great plugin! I've just installed it and it works perfectly! :)

I do have a quick question however. How do I go about modifying the stuff that shows up in the postbit area? Currently it says:
"Thanks: 0
Thanked 0 Times in 0 Posts".

How would I go about putting that in a fieldset style box? I used this code to get other bits of my postbit styled:
Code:

<div>
<fieldset>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="smallfont">
$vbphrase[posts]: $post[posts]
</td>
</tr>
</table>
</fieldset>
</div>

I'm wondering how I'd go about applying something similar to the thanks bit of postbit? Any help would be appreciated! :)

radarhunter 06-18-2007 06:42 PM

if you want em in a box :)

you can use this code :D
After this php code :
PHP Code:

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

instead of adding just this :

Code:

$template_hook[postbit_userinfo_right]
Add This:

Code:

<div class="pibu"><div class="pib"><font size=1> $template_hook[postbit_userinfo_right]</font><br /></div></div>

result is in the pic attached below

Parm 06-18-2007 07:03 PM

Thank you Raderhunter! That showed me exactly which bit I needed to edit, thanks! :up:

radarhunter 06-18-2007 07:08 PM

any time buddie :) and yeah dat`s RADARHUNTER ;)

da_judge 06-18-2007 08:22 PM

heres quick 1... just install update on 3.7... 2 templates show thanks... 1 dosnt.... can i edit a template manualy... if so what 1... cheers

tekguru 06-18-2007 08:46 PM

This is driving me slowly nuts as no matter what I do I get two coies of the thanks still......

I'm using the Aria Sand+ (non legacy) theme, and hav postbit_legacy as:

PHP Code:

$template_hook[postbit_start]
<if 
condition="$post[postcount] == 1"><div class="spacer"></div><else /></if><table   border="0" cellpadding="0" cellspacing="0"  width="100%"  align="center">
  <
tr>
    <
td width="21" height="31" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><img border="0" src="$stylevar[imgdir_misc]/top_left.gif" width="21" height="31" alt="" /></td>
    <
td  height="31" width="80%" align="left" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><div class="category_title">$post[title]</div></td>
    <
td width="19" align="left" valign="middle"><img src="$stylevar[imgdir_misc]/top_end.gif" alt="" width="19" height="31" border="0" /></td>
    <
td  align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_center.gif)"><a style="float:$stylevar[right]; padding-top: 9px;" href="#top" onclick="return toggle_collapse('postbit_$post[postid]')"><img id="collapseimg_postbit_$post[postid]src="$stylevar[imgdir_button]/collapse_tcat{$GLOBALS['vbcollapse']['collapseimg_postbit_' $post[postid]]}.gif" alt="" border="0" /></a>
    </
td>
    <
td width="14" height="31" align="right" valign="top"><img border="0" src="$stylevar[imgdir_misc]/top_right.gif" width="14" height="31" alt="" /></td>
  </
tr>
</
table>

<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tbody id="collapseobj_postbit_$post[postid]style="{$GLOBALS['vbcollapse']['collapseobj_postbit_' $post[postid]]};">
<
tr>
    <
td class="thead" $post[scrolltothis]>
        
            <!-- 
status icon and date -->
            <
div class="normal">
            <
a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a><if condition="$show['inlinemod']"><input type="checkbox" name="plist[$postid]" id="plist_$postidstyle="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]/></if>
            
        </
div>
            <!-- / 
status icon and date -->                
        </
td>
        
        <
td class="thead" style="font-weight:normal">
        
    <
div class="normal" style="float:$stylevar[right]">
            &
nbsp;
            <if 
condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if>
        
</div>
        </
td>
    
</
tr>


<
tr valign="top">
    <
td class="userinfo_bg" width="175">
            
            <
div id="postmenu_$post[postid]">
                    <if 
condition="$show['profile']">
                    <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                    <else />
                    
$post[musername]
                    </if>
                </
div>
                
                <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
                
                    
<if 
condition="$show['reputation']"><div style="padding:2px 0px 2px 0px;"></div><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_left]
        
            <if 
condition="$show['avatar']">
                <
div class="smallfont">
                    &
nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </
div>
            </if>
            
            <
div class="smallfont">
                &
nbsp;<br />
                <
div class="vb_postbit_info"><span class="smallfont">$vbphrase[potbit_online_status]</span$post[onlinestatus]</div>
                <
div class="vb_postbit_info">$vbphrase[posts]: $post[posts]</div>
                
$dmemberinfo
                
<if condition="$post['joindate']"><div class="vb_postbit_info">$vbphrase[join_date]: $post[joindate]</div></if>
                <if 
condition="$post['field2']"><div class="vb_postbit_info">$vbphrase[location_perm]: $post[field2]</div></if>
                <if 
condition="$post['age']"><div class="vb_postbit_info">$vbphrase[age]: $post[age]</div></if>
                <if 
condition="$show['infraction']"><div class="vb_postbit_info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                <if 
condition="$show['reputation']"><if condition="$show['reppower']"><div class="vb_postbit_info"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</div></strong></if></if>
                
            </
div>        
$template_hook[postbit_userinfo_right]            
        <
div style="padding:5px 0px 5px 0px;"></div>
        
    </
td>
    
    



    
    <
td height="100%" valign="top" class="alt2" id="td_post_$post[postid]">
    
    
    
    <
div style="float:right;">

<if 
condition="$show['reputationlink']">
                <
span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                <if 
condition="$show['popups']"><script type="text/javascript"vbrep_register("$post[postid]")</script></if>
            </if>
        
            <if 
condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]border="0" /></a></if>

<if 
condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a> </if>  
$post[iplogged]<if condition="is_browser('ie')"><div style="padding: 2px 0px 0px 0px;"></div></if></div><div class="smallfont">
        <if 
condition="$show['messageicon'] OR $post['title']">
            <!-- 
icon and title -->
            <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
                <if 
condition="$post['title']"><strong>$post[title] - </strong></if>
            <!-- 
status icon and date -->
          </if>
        
        
            <!-- 
status icon and date -->    
        <if 
condition="!$show['announcement']">
                
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
            <else />
                <
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
            </if>
            
$post[firstnewinsert]
            <!-- / 
status icon and date -->
        </
div>
        
<
div class="spacer"></div>    

<
div class="hr" style="width: 100%;">
              <
hr />
            </
div>    
<
div class="spacer"></div>
        
$template_hook[postbit_messagearea_start]
        <!-- 
message -->
        <
div id="post_message_$post[postid]class="vb_postbit">$post[message]</div>
        <!-- / 
message -->
    
        <if 
condition="$show['attachments']">
        <!-- 
attachments -->
            <
div style="padding:$stylevar[cellpadding]px">
            
            <if 
condition="$show['thumbnailattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_thumbnails]</legend>
                    <
div style="padding:$stylevar[formspacer]px">
                    
$post[thumbnailattachments]
                    </
div>
                </
fieldset>
            </if>
        
            <if 
condition="$show['imageattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_images]</legend>
                    <
div style="padding:$stylevar[formspacer]px">
                    
$post[imageattachments]
                    </
div>
                </
fieldset>
            </if>
            
            <if 
condition="$show['imageattachmentlink']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_images]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[imageattachmentlinks]
                    </
table>
                    </
fieldset>
            </if>
            
            <if 
condition="$show['otherattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_files]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[otherattachments]
                    </
table>
                </
fieldset>
            </if>
            
            <if 
condition="$show['moderatedattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attachments_pending_approval]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[moderatedattachments]
                    </
table>
                </
fieldset>        
            </if>
            
            </
div>
        <!-- / 
attachments -->
        </if>
        
$template_hook[postbit_signature_start]
        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div> <br />
            <
div class="hr" style="width: 100px;">
              <
hr />
            </
div><div class="spacer"></div>
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>
        
$template_hook[postbit_signature_end]
        <if 
condition="$show['postedited']">
        <!-- 
edit note -->
            <
div class="smallfont">            <div class="spacer"></div>
          <
div class="hr">
            <
hr />
          </
div><div class="spacer"></div>
                <
em>
                <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                <if 
condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                </
em>
            </
div>
        <!-- / 
edit note -->
        </if>
    
    </
td>
</
tr>
<
tr>
    <
td class="postbit_bl">
    
    <
div>&nbsp;$post[icqicon$post[yahooicon$post[aimicon$post[msnicon$post[skypeicon]&nbsp;</div>
        
    </
td>
    
    <
td class="postbit_br" align="$stylevar[right]">
    
        <!-- 
controls -->
        
    <
div style="float:left">
            <if 
condition="$show['moderated']">
                <
img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]border="0" />
            </if>
            <if 
condition="$show['deletedpost']">
                <
img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]border="0" />
            </if>
            <if 
condition="$show['redcard']">
                <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
            <else />
                <if 
condition="$show['yellowcard']">
                    <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
                </if>
            </if>
            
            
            </
div>
            
            <if 
condition="$post['editlink']">
            <
img style="display: none" id="progress_$postidsrc="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]/>
            <
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
        </if>
        <if 
condition="$post['forwardlink']">
            <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
        </if>
        <if 
condition="$post['replylink']">
            <
a href="$post[replylink]rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
        </if>
        <if 
condition="$show['multiquote_post']">
            <
a href="$post[replylink]rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/></a>
        </if>
        <if 
condition="$show['quickreply'] AND !$show['threadedmode']">
            <
a href="$post[replylink]rel="nofollow" id="qr_$post[postid]onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
        </if>
        
    
$template_hook[postbit_controls]    
        <!-- / 
controls -->
    </
td>
</
tr>
</
tbody></table>
<
table width="100%" border="0" cellpadding="0" cellspacing="0">
      <
tr>
        <
td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/blc.gif" width="12" height="13" alt="" border="0" /></td>
        <
td  width="100%" style="background-image:url($stylevar[imgdir_misc]/bottom.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="13" alt="" border="0" /></td>
        <
td width="12" align="right" valign="top"><img src="$stylevar[imgdir_misc]/brc.gif" width="12" height="13" alt="" border="0" /></td>
      </
tr>
    </
table>
$template_hook[postbit_end]
$postbit_advertisement
<!-- post $post[postidpopup menu -->
<
div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
    <
table cellpadding="4" cellspacing="1" border="0">
    <
tr>
        <
td class="thead">$post[username]</td>
    </
tr>
    <if 
condition="$show['profile']">
        <
tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
    </if>
    <if 
condition="$show['pmlink']">
        <
tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['emaillink']">
        <
tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['homepage']">
        <
tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['search']">
        <
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$post['userid'] AND $show['member']">
    <
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>
    </
table>
</
div>
<!-- / 
post $post[postidpopup menu --> 


tekguru 06-18-2007 08:47 PM

and postbit as:

PHP Code:

$template_hook[postbit_start]
<if 
condition="$post[postcount] == 1"><div class="spacer"></div><else /></if><table   border="0" cellpadding="0" cellspacing="0"  width="100%"  align="center">
  <
tr>
    <
td width="21" height="31" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><img border="0" src="$stylevar[imgdir_misc]/top_left.gif" width="21" height="31" alt="" /></td>
    <
td  height="31" width="80%" align="left" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><div class="category_title">$post[title]</div></td>
    <
td width="19" align="left" valign="middle"><img src="$stylevar[imgdir_misc]/top_end.gif" alt="" width="19" height="31" border="0" /></td>
    <
td  align="right" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_center.gif)"><a style="float:$stylevar[right]; padding-top: 9px;" href="#top" onclick="return toggle_collapse('postbit_$post[postid]')"><img id="collapseimg_postbit_$post[postid]src="$stylevar[imgdir_button]/collapse_tcat{$GLOBALS['vbcollapse']['collapseimg_postbit_' $post[postid]]}.gif" alt="" border="0" /></a>
    </
td>
    <
td width="14" height="31" align="right" valign="top"><img border="0" src="$stylevar[imgdir_misc]/top_right.gif" width="14" height="31" alt="" /></td>
  </
tr>
</
table>

<
table class="tborder" id="post$post[postid]cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tbody id="collapseobj_postbit_$post[postid]style="{$GLOBALS['vbcollapse']['collapseobj_postbit_' $post[postid]]};">
<
tr>
    <
td class="thead" $post[scrolltothis]>
        
            <!-- 
status icon and date -->
            <
div class="normal">
            <
a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]border="0" /></a><if condition="$show['inlinemod']"><input type="checkbox" name="plist[$postid]" id="plist_$postidstyle="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]/></if>
            
        </
div>
            <!-- / 
status icon and date -->                
        </
td>
        
        <
td class="thead" style="font-weight:normal">
        
    <
div class="normal" style="float:$stylevar[right]">
            &
nbsp;
            <if 
condition="$show['postcount']">(#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]">$post[postcount]</a>)</if>
        
</div>
        </
td>
    
</
tr>


<
tr valign="top">
    <
td class="userinfo_bg" width="175">
            
            <
div id="postmenu_$post[postid]">
                    <if 
condition="$show['profile']">
                    <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                    <
script type="text/javascript"vbmenu_register("postmenu_$post[postid]"true); </script>
                    <else />
                    
$post[musername]
                    </if>
                </
div>
                
                <if 
condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
                
                    
<if 
condition="$show['reputation']"><div style="padding:2px 0px 2px 0px;"></div><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
        
            <if 
condition="$show['avatar']">
                <
div class="smallfont">
                    &
nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </
div>
            </if>
            
            <
div class="smallfont">
                &
nbsp;<br />
                <
div class="vb_postbit_info"><span class="smallfont">$vbphrase[potbit_online_status]</span$post[onlinestatus]</div>
                <
div class="vb_postbit_info">$vbphrase[posts]: $post[posts]</div>
                
$dmemberinfo
                
<if condition="$post['joindate']"><div class="vb_postbit_info">$vbphrase[join_date]: $post[joindate]</div></if>
                <if 
condition="$post['field2']"><div class="vb_postbit_info">$vbphrase[location_perm]: $post[field2]</div></if>
                <if 
condition="$post['age']"><div class="vb_postbit_info">$vbphrase[age]: $post[age]</div></if>
                <if 
condition="$show['infraction']"><div class="vb_postbit_info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                <if 
condition="$show['reputation']"><if condition="$show['reppower']"><div class="vb_postbit_info"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</div></strong></if></if>
                
            </
div>        
$template_hook[postbit_userinfo_right]            
        <
div style="padding:5px 0px 5px 0px;"></div>
        
    </
td>
    
    



    
    <
td height="100%" valign="top" class="alt2" id="td_post_$post[postid]">
    
    
    
    <
div style="float:right;">

<if 
condition="$show['reputationlink']">
                <
span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                <if 
condition="$show['popups']"><script type="text/javascript"vbrep_register("$post[postid]")</script></if>
            </if>
        
            <if 
condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]border="0" /></a></if>

<if 
condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]rel="nofollow"><img class="inlineimg" width="20" height="20" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a> </if>  
$post[iplogged]<if condition="is_browser('ie')"><div style="padding: 2px 0px 0px 0px;"></div></if></div><div class="smallfont">
        <if 
condition="$show['messageicon'] OR $post['title']">
            <!-- 
icon and title -->
            <if 
condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]alt="$post[icontitle]border="0" /></if>
                <if 
condition="$post['title']"><strong>$post[title] - </strong></if>
            <!-- 
status icon and date -->
          </if>
        
        
            <!-- 
status icon and date -->    
        <if 
condition="!$show['announcement']">
                
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
            <else />
                <
phrase 1="$post[startdate]2="$post[enddate]">$vbphrase[x_until_y]</phrase>
            </if>
            
$post[firstnewinsert]
            <!-- / 
status icon and date -->
        </
div>
        
<
div class="spacer"></div>    

<
div class="hr" style="width: 100%;">
              <
hr />
            </
div>    
<
div class="spacer"></div>
        
$template_hook[postbit_messagearea_start]
        <!-- 
message -->
        <
div id="post_message_$post[postid]class="vb_postbit">$post[message]</div>
        <!-- / 
message -->
    
        <if 
condition="$show['attachments']">
        <!-- 
attachments -->
            <
div style="padding:$stylevar[cellpadding]px">
            
            <if 
condition="$show['thumbnailattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_thumbnails]</legend>
                    <
div style="padding:$stylevar[formspacer]px">
                    
$post[thumbnailattachments]
                    </
div>
                </
fieldset>
            </if>
        
            <if 
condition="$show['imageattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_images]</legend>
                    <
div style="padding:$stylevar[formspacer]px">
                    
$post[imageattachments]
                    </
div>
                </
fieldset>
            </if>
            
            <if 
condition="$show['imageattachmentlink']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_images]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[imageattachmentlinks]
                    </
table>
                    </
fieldset>
            </if>
            
            <if 
condition="$show['otherattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attached_files]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[otherattachments]
                    </
table>
                </
fieldset>
            </if>
            
            <if 
condition="$show['moderatedattachment']">
                <
fieldset class="fieldset">
                    <
legend>$vbphrase[attachments_pending_approval]</legend>
                    <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                    
$post[moderatedattachments]
                    </
table>
                </
fieldset>        
            </if>
            
            </
div>
        <!-- / 
attachments -->
        </if>
        
$template_hook[postbit_signature_start]
        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div> <br />
            <
div class="hr" style="width: 100px;">
              <
hr />
            </
div><div class="spacer"></div>
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>
        
$template_hook[postbit_signature_end]
        <if 
condition="$show['postedited']">
        <!-- 
edit note -->
            <
div class="smallfont">            <div class="spacer"></div>
          <
div class="hr">
            <
hr />
          </
div><div class="spacer"></div>
                <
em>
                <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                <if 
condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                </
em>
            </
div>
        <!-- / 
edit note -->
        </if>
    
    </
td>
</
tr>
<
tr>
    <
td class="postbit_bl">
    
    <
div>&nbsp;$post[icqicon$post[yahooicon$post[aimicon$post[msnicon$post[skypeicon]&nbsp;</div>
        
    </
td>
    
    <
td class="postbit_br" align="$stylevar[right]">
    
        <!-- 
controls -->
        
    <
div style="float:left">
            <if 
condition="$show['moderated']">
                <
img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]border="0" />
            </if>
            <if 
condition="$show['deletedpost']">
                <
img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]border="0" />
            </if>
            <if 
condition="$show['redcard']">
                <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
            <else />
                <if 
condition="$show['yellowcard']">
                    <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
                </if>
            </if>
            
            
            </
div>
            
            <if 
condition="$post['editlink']">
            <
img style="display: none" id="progress_$postidsrc="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]/>
            <
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
        </if>
        <if 
condition="$post['forwardlink']">
            <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
        </if>
        <if 
condition="$post['replylink']">
            <
a href="$post[replylink]rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
        </if>
        <if 
condition="$show['multiquote_post']">
            <
a href="$post[replylink]rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/></a>
        </if>
        <if 
condition="$show['quickreply'] AND !$show['threadedmode']">
            <
a href="$post[replylink]rel="nofollow" id="qr_$post[postid]onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
        </if>
        
    
$template_hook[postbit_controls]    
        <!-- / 
controls -->
    </
td>
</
tr>
</
tbody></table>
<
table width="100%" border="0" cellpadding="0" cellspacing="0">
      <
tr>
        <
td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/blc.gif" width="12" height="13" alt="" border="0" /></td>
        <
td  width="100%" style="background-image:url($stylevar[imgdir_misc]/bottom.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="13" alt="" border="0" /></td>
        <
td width="12" align="right" valign="top"><img src="$stylevar[imgdir_misc]/brc.gif" width="12" height="13" alt="" border="0" /></td>
      </
tr>
    </
table>
$template_hook[postbit_end]
$postbit_advertisement
<!-- post $post[postidpopup menu -->
<
div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
    <
table cellpadding="4" cellspacing="1" border="0">
    <
tr>
        <
td class="thead">$post[username]</td>
    </
tr>
    <if 
condition="$show['profile']">
        <
tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
    </if>
    <if 
condition="$show['pmlink']">
        <
tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['emaillink']">
        <
tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['homepage']">
        <
tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
    <if 
condition="$show['search']">
        <
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
    </if>
    <if 
condition="$post['userid'] AND $show['member']">
    <
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>
    </
table>
</
div>
<!-- / 
post $post[postidpopup menu --> 

any ideas?

pureturk 06-19-2007 08:02 AM

where is postbit_legacy file?
there is no folder for templates :(

pureturk 06-19-2007 09:30 AM

well i finally got it installed.
but it seems like whenever I thank somebody, it looks like they thank me instead. everytime I thank someone, my thank count goes up and it says I thanked 0 times in 0 post. why?

BSLFE 06-19-2007 11:52 AM

thx to Dotara for this great advice! And of course thx to Abe for the programming :)

NolF 06-19-2007 01:30 PM

(OMG second time I delete my contestations :'( )
Quote:

Originally Posted by pureturk
but it seems like whenever I thank somebody, it looks like they thank me instead. everytime I thank someone, my thank count goes up and it says I thanked 0 times in 0 post. why?

You have the idea the wrong way around. The upper (shorter) one indicates the number of times you have GIVEN thanks to other people. While the longer one is the number of times YOU have been thanked.

tekguru:

post 1292 has $template_hook[postbit_userinfo_left] twice. I would delete the second left hook.

post 1293 has $template_hook[postbit_userinfo_right] twice. You should (must) delete the first right hook. My guess is you are using this second template, as a result the thanks info box is being showed twice. Just delete the first right hook and it should be fixed ^^

tekguru 06-19-2007 03:59 PM

Superb that seems to have fixed my issues. Any ideas how they got duplicated in the first place?

sim20 06-19-2007 06:27 PM

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..
Quote:

Use version 6.0 Gold and do the template edits as explained in the instructions you will find within
Thanks, i have used the 6.0 gold version, followed instructions but i still get no button, have double checked everything and am sure everything was uploaded correctly and all template edits were done correctly, any help please guys..

Thanks

Fungsten 06-19-2007 08:27 PM

I've searched and searched too. Thanks.

Quote:

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 ^^.
On Edit:

I found this in the first two "Edit Plugins". Is it a misspelling?

Quote:

Post Thank You Hank

adam2484 06-20-2007 01:09 PM

hello, i have managed to install the thanks button, but how do i customise it the way you say you can? basically i'd like the names of anybody who thanks the poster to be available as a dropdown if selected. not to be visible at all times, many thanks

sunnycher 06-20-2007 04:10 PM

I installed 6.0 gold! Thank you!!
I have a question! How easy or hard would it be to do this and it say Congratulations? Or Way To Go?

THANK YOU!

NolF 06-20-2007 04:22 PM

Quote:

Originally Posted by adam2484
basically i'd like the names of anybody who thanks the poster to be available as a dropdown if selected. not to be visible at all times, many thanks

There are a number of ways to achieve this.

Option A (is the one I use on my site) is to use a hidden div and make it visible when you click on an image. [Warning: this system is not compatible with Opera. I have tried to use it but pressing the images with Opera doesn't seem to work sadly]

Option B is to set a profile field to indicate if you want them visible or not.

-------------
Option A
Go to post_thanks_postbit_legacy template and add at the beginning
<div id="elos_$post[postid]" style="display:none"> and </div> at the end

Now on the postbit(_legacy) add where you want to display the expansion buttons
PHP Code:

<if condition="$post['post_thanks_amount'] > 0 OR $post['post_groan_amount'] > 0">
<
img class="inlineimg" src="- image url" onclick="getElementById('elos_$post[postid]').style.display='none';" title="Close" />
<
img class="inlineimg" src="+ image url" onclick="getElementById('elos_$post[postid]').style.display='';" title="Open" />
</if> 

Delete the " OR groan.... etc" if you are not using that hack. Well it doesn't change anything but.

I have tried to use the collapse system from vbulletin, but failed to make it compatible with this.
I'm not sure if it is a problem or not, but it only works when it is pressed, meaning that if you leave the psot and come back the box will be hidden again and you will have to press the button once again to see its contents

------------
Option B
Create a profile field, maybe a list box with options (for example: Yes and NO).
Go to post_thanks_postbit_legacy template and add at the beginning
<if condittion="$post[fieldXX] == Yes"> all the code </if>
(means that if the field is = to Yes it WILL show all the code)

You could combaine it with option A tho
Go to post_thanks_postbit_legacy template and add at the beginning
PHP Code:

<if condittion="$post[fieldXX] == Yes">
<
div id="elos_$post[postid]style="display:none;">
<else />
<
div id="elos_$post[postid]style="display:">
</if>
All code
</div

Means that if the field is = to Yes then it will be hidden by default, and only when clicked on the image it will reveal its contents

-----
I could elaborate on any of this two systems if the explanation has only confused you more ^^


:::::::::::::::::..
Quote:

Originally Posted by sunnycher
I have a question! How easy or hard would it be to do this and it say Congratulations? Or Way To Go?

Just change the phrases and images to whatever you want tho show or say

Quote:

Originally Posted by Fungsten
I found this in the first two "Edit Plugins". Is it a misspelling?

I've noticed that one too, but didn't think it was important, after all the name of the plugin doesn't change anything

Quote:

Originally Posted by tekguru
Any ideas how they got duplicated in the first place?

Maybe you got slightly distracted while adding the hooks ^^

Quote:

Originally Posted by sim20
Thanks, i have used the 6.0 gold version, followed instructions but i still get no button, have double checked everything and am sure everything was uploaded correctly and all template edits were done correctly, any help please guys..

No button means that either the button image is not in the button folder of your skin, you don't have enough "permissions" to see it (thank ppl) or that the template modification regarding the button was done incorrectly
Quote:

find:
--------------------------------------------------------------------
<!-- controls -->
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------
I'm wondering do you see the other features of the thank you hack? such as the user info, or info in the user profile page?

sunnycher 06-20-2007 05:04 PM

Thank you NoIF!

Another question! :) How can I remove the (Today) from the list of names where it shows who is thanking the poster?

sunnycher 06-20-2007 05:06 PM

Nevermind, I think I found it LOL Thank you :)

sim20 06-20-2007 05:23 PM

Quote:

No button means that either the button image is not in the button folder of your skin, you don't have enough "permissions" to see it (thank ppl) or that the template modification regarding the button was done incorrectly
Quote:

I'm wondering do you see the other features of the thank you hack? such as the user info, or info in the user profile page?
The template is correct, the button image is in all relevant folders and i see this in user info:

Join Date: 02-18-2007
PostsTotal Posts: 36 (0.29 posts per day)
Total Thanks: 0
Thanked 0 Times in 0 Posts
Find all thanked posts by *****
Find all posts by *****
Find all threads started by *****


But still no button!!

kwblue 06-20-2007 07:25 PM

Hello -

I'm having some issues :( It's been a while since I installed the hack and I just noticed that when threads have more than 1 post, the image (thank you image) is duplicated along with the thanks information in the header.

So, for post1 - 1 header/button, for post2 - 2 headers/buttons/, etc...

It will go on forever. I don't know what I might have done to get this to happen... any clues?

You can see the issue at:

http://www.affiliateguarddog.com/for...126.html?t=126

Thanks in advance for the help!

gregfindley 06-20-2007 08:10 PM

Hi, after some help if anyone can spare a few mins :)

I have installed this hack following the instructions, and nothing has appeared at all? I'm running 3.6.7 so I installed the 6.0 gold followed by the 3.6.7 fix, but still nothing?

I have a fairly modified template so not sure if this is whats causing the problems? WOuld appreciate any help or suggestions on solving this one!

My site is www.ChessForums.org

Thanks!
Greg

sunnycher 06-20-2007 09:22 PM

How to I remove the thanks stats in the members block/info?

sunnycher 06-20-2007 09:33 PM

I don't have a post_thanks_postbit_info template.
I have it without the info on the end.


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 ^^.



Fungsten 06-20-2007 09:43 PM

I can't find mine either.

Quote:

Originally Posted by sunnycher (Post 1272751)
I don't have a post_thanks_postbit_info template.
I have it without the info on the end.


NolF 06-20-2007 11:43 PM

Quote:

Originally Posted by kwblue
I'm having some issues It's been a while since I installed the hack and I just noticed that when threads have more than 1 post, the image (thank you image) is duplicated along with the thanks information in the header.

Read this

Quote:

Originally Posted by gregfindley
I have installed this hack following the instructions, and nothing has appeared at all? I'm running 3.6.7 so I installed the 6.0 gold followed by the 3.6.7 fix, but still nothing?

version 6.0 Gold is designed for 3.6.5 and under, even tho it works on the following version, it would mean you will have to do the template modifications indicated in the instructions. As a result you wouldn't be enjoying the joy of the 3.6.7 upgrade to its fullest :(.
Use version 6.2 for vBulletin 3.6.7 ^^ (make sure your templates have the hooks installed)

Quote:

Originally Posted by sim20
The template is correct, the button image is in all relevant folders and i see this in user info:
[...]
But still no button!!

Have a look at this post and check that your hooks are installed as indicated there

Quote:

Originally Posted by sunnycher and Fungsten
I don't have a post_thanks_postbit_info template.
I have it without the info on the end.

That template is only available on version 6.2. So I'm assuming you are using 6.0 Gold. On this version, you do the modification post_thanks_postbit_info does directly into your postbit(_legacy) template.
So go to your postbit(_legacy) template
and accordign to the isntractions
Quote:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------
You can put your conditional above the <!-- Start Post Thank You Hack --> comment, and the </if> after the End comment ^^

Quote:

Originally Posted by sunnycher
How to I remove the thanks stats in the members block/info?

Undo do the template changes in memberinfo template contained within the <!-- Start Post Thank You Hack --> and <!-- End Post Thank You Hack --> comments, including the comments them selves. Either that or just add a conditional as specified previously ^^

westpac 06-21-2007 04:37 AM

wow it worked thanks thas hella dope i luv yall

Spinball 06-21-2007 06:01 AM

Has anyone experienced the latest version of this hack slowing down their forums?
I upgraded vB from 3.6.4 to 3.6.7 and installed the new Thank you hack right away (with extra plugin bug fix).
I then went away for 3 days and returned to lots of complaints of a slow forum. First thing I did was disable all the plugin hacks. I think it's the Thank You hack which is crippling our forum. I have disabled it for now. Is it likely to be having a big effect on the server?

adam2484 06-21-2007 08:22 AM

does anybody know why my total thanks is not rising when the thanks button is pressed?

i basically get this
Thanks: 0
Thanked 1 Time in 1 Post

to see it this is my page, http://forums.medicineapplications.c...hread.php?t=17

many thanks in advance!

EDIT: ok the above is me stupid! is there any way of taking of the 'thanks' bit. so only the number of times someone has been thanked is displayed

sim20 06-21-2007 09:47 AM

Quote:

Have a look at this post and check that your hooks are installed as indicated there
Fixed, i had the horizontal postbit enabled, changed to vertical and its there, can i use the hack in horizontal mode?

sunnycher 06-21-2007 12:03 PM

Ok I may of asked my question wrong, I'm sure I did :)

How do I get rid of the stats in the members block in their posts. Is that post-bits?
The other got rid of it in their profile, which is fine.
I just want to get rid of Thank You stats on each member all together.
TIA!!

gregfindley 06-21-2007 10:56 PM

Quote:

Originally Posted by NolF (Post 1272820)
Read this
version 6.0 Gold is designed for 3.6.5 and under, even tho it works on the following version, it would mean you will have to do the template modifications indicated in the instructions. As a result you wouldn't be enjoying the joy of the 3.6.7 upgrade to its fullest :(.
Use version 6.2 for vBulletin 3.6.7 ^^ (make sure your templates have the hooks installed)

Thanks NolF got it sorted now :D (need the mod here so I can thank you properly!!)

Do you have any idea how to remove the "Thanks: 0" from the postbit legacy. As my postbit is quite busy already I want to lose the stat to show how many times a user has thanked other users, but keep the stat to say how many times that user has been thanked by others.

Hope that makes sense!
Thanks, Greg

NolF 06-22-2007 03:03 PM

Quote:

Originally Posted by Spinball
I then went away for 3 days and returned to lots of complaints of a slow forum. First thing I did was disable all the plugin hacks. I think it's the Thank You hack which is crippling our forum. I have disabled it for now. Is it likely to be having a big effect on the server?

I haven't. I don't think it is likely to cause any slowness in the server, maybe one of the plugins in combination with other hacks might have some problem, but for me is working fine :D

Quote:

Originally Posted by adam2484
is there any way of taking of the 'thanks' bit. so only the number of times someone has been thanked is displayed

Quote:

Originally Posted by gregfindley
Do you have any idea how to remove the "Thanks: 0" from the postbit legacy.

On template post_thanks_postbit_info find
<div>$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
either delete it or wrap it in a conditional, I normally put one so only admins can see it (is good to monitor abuse etc ^^)
<if conditional="$bbuserinfo[usergroupid] == 6"> or <if conditional="$bbuserinfo[userid] == XX">
First one for usergroupid, the second one if you only want your-self to be able to see it.
Read This tutorial about conditionals, very useful.

Quote:

Originally Posted by sim20
Fixed, i had the horizontal postbit enabled, changed to vertical and its there, can i use the hack in horizontal mode?

Put the template hooks in the horizontal mode template (if horizontal is like vbulletin.org tempalte is called "postbit" otherwise (like phpbb forums generally) is "postbit_legacy" Put the hooks where they belong and it should work on the other method too ^^

Quote:

Originally Posted by sunnycher
I just want to get rid of Thank You stats on each member all together.

Just follow the instructions on my previous post Consists of two parts, first one for the posts and second one for profile.

vitrag24 06-22-2007 06:09 PM

i have vb 3.6.4 aND version of this hack 5.3
can i update this addon?is it compatible with vb 3.6.4 also?

and how to update now?

Quantnet 06-22-2007 06:10 PM

Quote:

Originally Posted by NolF (Post 1273978)
On template post_thanks_postbit_info find
<div>$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
either delete it or wrap it in a conditional, I normally put one so only admins can see it (is good to monitor abuse etc ^^)
<if conditional="$bbuserinfo[usergroupid] == 6"> or <if conditional="$bbuserinfo[userid] == XX">
First one for usergroupid, the second one if you only want your-self to be able to see it.
Read This tutorial about conditionals, very useful.

Which conditions would you use so that it only display Thanks and Thanked when it > 1.
I used to be able to do this with the if condition in earlier version but I don't know how to do it now.
Something like < if $vbphrase[post_thanks_thanks] >=1 or something


All times are GMT. The time now is 08:50 PM.

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.04198 seconds
  • Memory Usage 2,486KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (31)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