PDA

View Full Version : post thanks cần giúp đỡ


Mr.tuyen
15-09-2009, 11:45 AM
1) upload
--------------------------------------------------------------------
Upload file ảnh post_thanks.gif -> lên thư mục "buttons" của Style đang dùng.Mặc định là : /images/buttons/
--------------------------------------------------------------------

2)admincp -> Plugin System -> Manage Products -> [Add/Import Product] Import file product-post_thanks.xml

3)Chỉnh sữa trong template :

Tìm trong Template postbit và postbit_lagacy:

Tìm:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

Thêm vào dưới:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------


Tìm :
--------------------------------------------------------------------
<!-- controls -->
--------------------------------------------------------------------

Thêm vào dưới:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------


Tìm:
--------------------------------------------------------------------
<!-- / post $post[postid] popup menu -->
--------------------------------------------------------------------

THêm vào dưới:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------



TRong Template navbar hoặc head:

Tìm :
--------------------------------------------------------------------
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
--------------------------------------------------------------------

Thêm vào dưới:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=findallthanks">$vbphrase[post_thanks_search]</a></td>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------



Trong Template MEMBERINFO:

Tìm :
--------------------------------------------------------------------
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
--------------------------------------------------------------------

Thêm vào dưới:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<br />
$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount]</strong>
<br />
<if condition="$userinfo[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$userinfo[post_thanks_thanked_posts_on] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times]" 2="$userinfo[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.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 -->







ai biết giúp mình với

mình ko tìm thấy phần

"TRong Template navbar hoặc head:"

Trong Template MEMBERINFO:

ko tìm thấy nên ko biết đâu để mà chèn

ai biết xin hướng dẫn dùm

thanks

boylunyahoo
15-09-2009, 05:09 PM
Bạn thử Revert hết mấy Temp đó xem , xong ròi tìm xem thấy ko ..

>Huy^_^Kute<
16-09-2009, 04:52 PM
đúng là trong 1 số skin ở template ko có những đoạn code đó thật
bạn chỉ việc copy cái đoạn code mà chưa có đó đưa xuống dưới cùng rồi chèn đoạn code theo hướng dẫn vào là ok :D