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.

cooltechie 01-29-2009 07:10 PM

It looks cleaner, but what happens when you have many members giving thanks. Does it wrap to the next line?

legion! 03-08-2009 12:08 PM

Installed

TimberFloorAu 03-09-2009 12:34 AM

havent you nested 2 td classes but only one closing </td>

Is this correct ??

zero5854 04-08-2009 03:59 PM

I have a custom template and can only see the thanks x times in normal postbit but not in postbit_legacy?

does anyone what code to add in postbit_legacy to see how many thanks a user has/given?

Cloud_Strife 07-10-2009 12:34 PM

Great Job. Works perfectly with AJAX Post Thank You Hack 7.7. I just wanted the vertical view of Postibit in Threads-Posts and not in the Hack too... This solved my problems... I was really worrying! Well Done... Go On with good codes (I kept the same colors as they were inspired by future... I change the small font of 10 px to it's original, based on my forum fonts).

steve1966 07-10-2009 03:57 PM

cheers

Cmangum 12-12-2009 02:35 AM

Thanks just what I was looking for

Cmangum 12-12-2009 03:37 AM

I can't get the button to show up. I've entered the codes and used the 7.7 hack as well. The only place I see to put the button is in the button folder. Am I missing something

Cmangum 12-13-2009 03:36 AM

Here is the error I get when I click on the thanks button

<html><head><title>404 Not Found</title></head>
<body bgcolor=white>
<h1>404 Not Found</h1>

The requested URL /post_thanks.php does not exist.

</body></html>

Any help for anyone one this one

RobbieZ 12-13-2009 06:41 AM

Quote:

Originally Posted by Cmangum (Post 1929165)
I can't get the button to show up. I've entered the codes and used the 7.7 hack as well. The only place I see to put the button is in the button folder. Am I missing something

When the letters 'thanks' appear in your post, right click and view image, the browser will show an error but will show you the filepath to where the image should be uploaded too.

ie http://yourforum/images/buttons/thanks.gif

Quote:

Originally Posted by Cmangum (Post 1929714)
Here is the error I get when I click on the thanks button

<html><head><title>404 Not Found</title></head>
<body bgcolor=white>
<h1>404 Not Found</h1>

The requested URL /post_thanks.php does not exist.

</body></html>

Any help for anyone one this one

You need to overwrite the new template not ADD to it.

Thanks Boosted , looks a treat.

------------------------

Boosted may be busy for xmas :confused: Last online Nov :(

Cmangum 12-13-2009 02:12 PM

I did replace in the postbit legacy and still get the same error. The button is there and in the correct location.

RobbieZ 12-16-2009 03:33 PM

You need to PM me your forum URL and i can look at it for you.

ghostpt 12-18-2009 10:54 AM

Just replace post_thanks_postbit don't add anything.

m_k 12-18-2009 03:23 PM

Quote:

Originally Posted by cooltechie (Post 1728368)
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...

Thelonius Beck 12-30-2009 11:27 AM

Quote:

Originally Posted by DiziMedia (Post 1673271)
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.

kmoh 02-05-2010 05:36 PM

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

http://img683.imageshack.us/img683/5572/14500991.jpg

RobbieZ 07-14-2010 04:48 AM

Edited and working on vb4. (Remove all/your thanks on one line whilst rest on another). Will share if ok'd by Boosted Panda.

www.ch-joy.com 07-14-2010 11:28 PM


asabet 01-25-2015 09:22 PM

This is working great for me on vB 4.2.2 PL4

Thanks!


All times are GMT. The time now is 06:06 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.04749 seconds
  • Memory Usage 1,840KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete