vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Thank You Hack Question (https://vborg.vbsupport.ru/showthread.php?t=164492)

skill 12-06-2007 10:43 AM

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

Lynne 12-06-2007 01:32 PM

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.

vB Crew 12-06-2007 07:41 PM

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.

ChU v2 12-07-2007 03:40 AM

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&amp;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

Looks like you have to the template edits for your new skin if you have the product already working on another skin.

Princeton 12-07-2007 01:56 PM

please post your questions on the modification thread


All times are GMT. The time now is 08:36 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.01047 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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