The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Thank You Hack Question
Hello.
I Am useing a thank you hack. The problem is when I uploaded a new skin it didn't add on the new skin. The button at the bottom of the post to give the thanks is still there although these 2 lines aren't. Thanks: 3 Thanked 1 Time in 1 Post How can I go about adding it onto my new skin? Thanks, skill |
#2
|
||||
|
||||
You need to add the code into the appropriate template. Perhaps go through your install notes again and see if it asks you to modify any templates for this hack. Then, go modify the templates in that new skin.
|
#3
|
|||
|
|||
If it is a css skin, make the default skin your parent skin. This will carry over all of the modified templates to your new skin.
If you have a skin that has modified templates, you do not want to do this. In this case, you will have to modify the templates like Lynne said. |
#4
|
|||
|
|||
From the instructions of the hack:
Code:
Post Thank You Hack version 6.0 FOR UPGRADE AND FRESH INSTALLATIONS! 1) upload the 'upload via ftp' folder -------------------------------------------------------------------- post_thanks.php -> \ post_thanks_admin.php -> \admincp\ post_thanks.js -> \clientscript\ functions_post_thanks.php -> \includes\ cpnav_post_thanks.xml -> \includes\xml\ hooks_post_thanks.xml -> \includes\xml\ post_thanks.gif -> \images\buttons\ (and into EVERY "buttons" folder in every style you have) -------------------------------------------------------------------- 2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product]) 3) Do the template edits in postbit AND postbit_legacy: find: -------------------------------------------------------------------- $vbphrase[posts]: $post[posts] -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> <if condition="$post[userid]"> <br /> $vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted] <br /> <if condition="$post[post_thanks_thanked_times] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$post[post_thanks_thanked_posts] == 1"> <phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </if> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- find: -------------------------------------------------------------------- <!-- controls --> -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> $post_thanks_button <!-- End Post Thank You Hack --> -------------------------------------------------------------------- find: -------------------------------------------------------------------- <!-- / post $post[postid] popup menu --> -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> $post_thanks <!-- End Post Thank You Hack --> -------------------------------------------------------------------- in navbar: find: -------------------------------------------------------------------- <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td> -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> </tr> <tr> <td class="vbmenu_option"><a href="post_thanks.php?$session[sessionurl]do=findallthanks">$vbphrase[post_thanks_search]</a></td> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- in MEMBERINFO: find: -------------------------------------------------------------------- $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>) -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> <br /> $vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount_formatted]</strong> <br /> <if condition="$userinfo[post_thanks_thanked_times] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$userinfo[post_thanks_thanked_posts] == 1"> <phrase 1="$userinfo[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$userinfo[post_thanks_thanked_times_formatted]" 2="$userinfo[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </td></tr> <tr><td> <a href="post_thanks.php?$session[sessionurl]do=findthanks&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- in SHOWTHREAD: find: -------------------------------------------------------------------- <script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v=$vboptions[simpleversion]"></script> -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> <script type="text/javascript" src="clientscript/post_thanks.js"></script> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- in SHOWTHREAD_SHOWPOST: find: -------------------------------------------------------------------- <title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title> -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> <script type="text/javascript" src="clientscript/post_thanks.js"></script> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- Click 'install' in the thread you downloaded this from. Done |
#5
|
||||
|
||||
please post your questions on the modification thread
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|