vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   My "Thank You Hack" Postbit Template (https://vborg.vbsupport.ru/showthread.php?t=194553)

Boosted Panda 10-24-2008 10:00 PM

My "Thank You Hack" Postbit Template
 
1 Attachment(s)
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


glorify 10-25-2008 09:32 PM

I'd assume you'd need the actual Thank You Hack for this to work.

Boosted Panda 10-25-2008 09:33 PM

But of course! :)

It works for 3.8.X without any modifications.

YsTyle 10-26-2008 07:04 PM

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?

Boosted Panda 10-26-2008 07:06 PM

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.

djrapid.com 11-17-2008 08:27 AM

1 Attachment(s)
How do i center this text, thanks

nsaivamsi 11-18-2008 12:26 PM

thanks downloaded ...

DiziMedia 11-26-2008 11:01 AM

can you add the groans hack to this as well?

rob01 12-18-2008 02:46 AM

it dosnt seem to work :S

trulylowcarb 01-18-2009 01:43 AM

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.


All times are GMT. The time now is 10:37 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.01287 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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