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
  #12  
Old 01-29-2009, 07:10 PM
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks cleaner, but what happens when you have many members giving thanks. Does it wrap to the next line?
Reply With Quote
  #13  
Old 03-08-2009, 12:08 PM
legion! legion! is offline
 
Join Date: Oct 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed
Reply With Quote
  #14  
Old 03-09-2009, 12:34 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Is this correct ??
Reply With Quote
  #15  
Old 04-08-2009, 03:59 PM
zero5854 zero5854 is offline
 
Join Date: Oct 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #16  
Old 07-10-2009, 12:34 PM
Cloud_Strife Cloud_Strife is offline
 
Join Date: Nov 2008
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #17  
Old 07-10-2009, 03:57 PM
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cheers
Reply With Quote
  #18  
Old 12-12-2009, 02:35 AM
Cmangum Cmangum is offline
 
Join Date: Feb 2009
Location: Utah
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks just what I was looking for
Reply With Quote
  #19  
Old 12-12-2009, 03:37 AM
Cmangum Cmangum is offline
 
Join Date: Feb 2009
Location: Utah
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 12-13-2009, 03:36 AM
Cmangum Cmangum is offline
 
Join Date: Feb 2009
Location: Utah
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 12-13-2009, 06:41 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cmangum View Post
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 View Post
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 Last online Nov
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.04584 seconds
  • Memory Usage 2,357KB
  • 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
  • (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
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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