Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
My "Thank You Hack" Postbit Template Details »»
My "Thank You Hack" Postbit Template
Version: 1.00, by Boosted Panda Boosted Panda is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Version: 3.8.x Rating:
Released: 10-24-2008 Last Update: Never Installs: 32
 
No support by the author.

This is a new "Users Saying Thank You" box. I think its MUCH cleaner! You can adjust colors and etc by changing the CSS fields in the .thanks.

First add this to your additional CSS area:

PHP Code:
.thanks 
bordersolid 1px #fff;
color#444; 
background#def9e5;
font10px arialtahomasans-serif;

Next add this to the post_thanks_postbit_legacy or post_thanks_postbit template.

PHP Code:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
    <
table width="100%" align="center">
        <
tr>
            <
td class="thanks" style="padding:0px">
                <if 
condition="$post['post_thanks_amount'] == 1">
                    <
strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
                <else />
                    <
strong><phrase 1="$post[post_thanks_amount_formatted]2="$post[username]">$vbphrase[post_thanks_users_say]:</phrase></strong>
                </if>
            
$post[post_thanks_bit]
            <if 
condition="$bbuserinfo['usergroupid'] == 6">
                <
td class="thanks" align="center">
                    <
a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a></td>
                
            </if>
            <if 
condition="$post['show_thanks_remove_option']">
            <
td class="thanks" align="center">
                    <
a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a></td>
            </if>
        </
td></tr>
    </
table>
</
div

Screenshots

File Type: png Picture 2.png (8.8 KB, 0 views)
File Type: png attachment.png (80.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
asabet

Comments
  #22  
Old 12-13-2009, 02:12 PM
Cmangum Cmangum is offline
 
Join Date: Feb 2009
Location: Utah
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did replace in the postbit legacy and still get the same error. The button is there and in the correct location.
Reply With Quote
  #23  
Old 12-16-2009, 03:33 PM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to PM me your forum URL and i can look at it for you.
Reply With Quote
  #24  
Old 12-18-2009, 10:54 AM
ghostpt ghostpt is offline
 
Join Date: Oct 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just replace post_thanks_postbit don't add anything.
Reply With Quote
  #25  
Old 12-18-2009, 03:23 PM
m_k's Avatar
m_k m_k is offline
 
Join Date: Mar 2003
Location: South Carolina
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cooltechie View Post
It looks cleaner, but what happens when you have many members giving thanks. Does it wrap to the next line?
Just installed this, great idea :-)

yes, it does wrap if you have lots of thanks...
Reply With Quote
  #26  
Old 12-30-2009, 11:27 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiziMedia View Post
can you add the groans hack to this as well?
Add to "Additional CSS Definitions":
PHP Code:
.groan 
bordersolid 1px #ffffff;
color#444444; 
background#def9e5;
font10px arialtahomasans-serif;

Replace "post_groan_postbit_legacy"/ "post_groan_postbit" contents with:
PHP Code:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
    <
table width="100%" align="center">
        <
tr>
            <
td class="groan" style="padding:0px">
                <if 
condition="$post['post_groan_amount'] == 1">
                    <
strong><phrase 1="$post[username]">$vbphrase[post_groan_user_says]</phrase></strong>
                <else />
                    <
strong><phrase 1="$post[post_groan_amount_formatted]2="$post[username]">$vbphrase[post_groan_users_say]</phrase></strong>
                </if>
                
$post[post_groan_bit]
                <if 
condition="$bbuserinfo['usergroupid'] == 6">
                <
td class="groan" align="center">
                        <
a href="post_groan.php?do=post_groan_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"onclick="return post_groan_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_groan_remove_all]</a>
                </
td>        
                </if>
                <if 
condition="$post['show_groan_remove_option']">
                <
td class="groan" align="center">
                        <
a href="post_groan.php?do=post_groan_remove_user&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"onclick="return post_groan_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_groan_remove_user]</a>
                </
td>        
                </if>
            </
td>
        </
tr>
    </
table>
</
div
Hope that helps someone.


***EDIT***
D'OH! I just realized that searching & replacing "thanks" with "groan" in my HTML editor would have yielded the same results. Ahh well.
Reply With Quote
  #27  
Old 02-05-2010, 05:36 PM
kmoh kmoh is offline
 
Join Date: Jan 2010
Location: Canada
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What will I do to show my Thanks and Thanked count in my postbit? I already installed a Thank You Hack in my forum, but its not showing on my postbit. Can someone help me. I really need it so bad. Thanks

Reply With Quote
  #28  
Old 07-14-2010, 04:48 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edited and working on vb4. (Remove all/your thanks on one line whilst rest on another). Will share if ok'd by Boosted Panda.
Reply With Quote
  #29  
Old 07-14-2010, 11:28 PM
www.ch-joy.com's Avatar
www.ch-joy.com www.ch-joy.com is offline
 
Join Date: Oct 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #30  
Old 01-25-2015, 09:22 PM
asabet asabet is offline
 
Join Date: Dec 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is working great for me on vB 4.2.2 PL4

Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05828 seconds
  • Memory Usage 2,374KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete