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
  #2  
Old 10-25-2008, 09:32 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd assume you'd need the actual Thank You Hack for this to work.
Reply With Quote
  #3  
Old 10-25-2008, 09:33 PM
Boosted Panda Boosted Panda is offline
 
Join Date: Mar 2008
Location: Long Beach, CA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But of course!

It works for 3.8.X without any modifications.
Reply With Quote
  #4  
Old 10-26-2008, 07:04 PM
YsTyle YsTyle is offline
 
Join Date: Mar 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i can't understand how it's work..
no xml file? just open new temp?
does not make any sense to me.
can you explain?
Reply With Quote
  #5  
Old 10-26-2008, 07:06 PM
Boosted Panda Boosted Panda is offline
 
Join Date: Mar 2008
Location: Long Beach, CA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After you have installed Abe1's "Post Thank You Hack" it will install its own set of templates. Just replace the above templates with the code provided and add the additional CSS to your Theme.
Reply With Quote
  #6  
Old 11-17-2008, 08:27 AM
djrapid.com djrapid.com is offline
 
Join Date: May 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i center this text, thanks
Attached Images
File Type: jpg Capture.jpg (6.1 KB, 0 views)
Reply With Quote
  #7  
Old 11-18-2008, 12:26 PM
nsaivamsi nsaivamsi is offline
 
Join Date: Mar 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks downloaded ...
Reply With Quote
  #8  
Old 11-26-2008, 11:01 AM
DiziMedia DiziMedia is offline
 
Join Date: Nov 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you add the groans hack to this as well?
Reply With Quote
  #9  
Old 12-18-2008, 02:46 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it dosnt seem to work :S
Reply With Quote
  #10  
Old 01-18-2009, 01:43 AM
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Location: Colorado
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but I think you meant REPLACE the text in the postbit, not add to it? Other than getting the original bulky box plus your cleaner one, until I removed the old code, it works perfectly for me on 3.8.
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 10:03 PM.


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.05303 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (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
  • (3)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