PDA

Orijinalini görmek için tıklayınız : Post Thank You and Post Groan Hack {Teşekkürler ve Tepki Eklentisi}


sonkatip
26-04-2008, 15:06
..:: !!- KURULUM -!! ::..

Öncelikle ekteki dosyalardan begendiğiniz çifti images/buttons içine upload ediniz(bir çiftin sonunca 1 rakamı var, onu silin sonra). Daha sonra,
Admincp>>Plugins & Products>>Ürün Yöneticisi>>[Ürünü Ekle/Yükle] 'den ekteki iki xml dosyasınıda ayrı ayrı import edin.

ve şimdide postbit ve postbit_legacy adlı templatelerde ayrı ayrı bulun

PHP Kodu:
$vbphrase[posts]: $post[posts]

altına ekleyin
PHP Kodu:
<!-- 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 -->

<!-- Start Post Groan Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_groan_groans]: $post[post_groan_user_amount]
<br />
<if condition="$post[post_groan_times_on] == 1">
$vbphrase[post_groan_time_post]
<else />
<if condition="$post[post_groan_posts_on] == 1">
<phrase 1="$post[post_groan_times]">$vbphrase[post_groan_times_post]</phrase>
<else />
<phrase 1="$post[post_groan_times]" 2="$post[post_groan_posts]">$vbphrase[post_groan_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Groan Hack -->




aynı templatelerde bulun
PHP Kodu:
<!-- controls -->

altına ekleyin
PHP Kodu:
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->

<!-- Start Post Groan Hack -->
$post_groan_button
<!-- End Post Groan Hack -->



yine aynı templatelerde şunu blun
PHP Kodu:
<!-- / post $post[postid] popup menu -->

altına ekleyin
PHP Kodu:
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->

<!-- Start Post Groan Hack -->
$post_groan
<!-- End Post Groan Hack -->



bu sefer MEMBERINFO adlı templatede bulun
PHP Kodu:
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)


altına ekleyin
PHP Kodu:
<!-- 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&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
<!-- End Post Thank You Hack -->

<!-- Start Post Groan Hack -->
<br />
$vbphrase[post_groan_groans]: <strong>$post[post_groan_user_amount]</strong>
<br />
<if condition="$post[post_groan_times_on] == 1">
$vbphrase[post_groan_time_post]
<else />
<if condition="$post[post_groan_posts_on] == 1">
<phrase 1="$post[post_groan_times]">$vbphrase[post_groan_times_post]</phrase>
<else />
<phrase 1="$post[post_groan_times]" 2="$post[post_groan_posts]">$vbphrase[post_groan_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=find_user_groan&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_groan_search_user]</phrase></a>
<!-- End Post Groan Hack -->


Kurulum bu kadar. Gereken ayarlamaları Admincp>>vBulletin Seçenekleri'nde açılacak olan bölümlerden yapabilirsiniz. Türkçe oldukları için zorlanmadan yapacaksınız. Umarım beğenirsiniz. Saygılar...