Yeni Teşekkür Botu v1.10_vB_3.0.7...!!!!! - TurkishNuke
PHP Nuke - Themes - Modules - Blocks - Addons - Turkish Nuke: Forumlar

Turkish Nuke ~ Başlığı Görüntüle - Yeni Teşekkür Botu v1.10_vB_3.0.7...!!!!!

Sorularınızı sorarken başlıkta "Acil, yardım, biri yardım etsin, bir bakın, çözümü nedir?, yardım edecek yok mu?" gibi başlıklar kullanmayınız. Başlıklar okuyan kişilere mesaj içeriği ile ilgili bilgi vermesi için var. Ve bilgi vermeyen başlık yöneticiler tarafından kilitlenebilir, silinebilir, değiştirilebilir.

 

Turkish Nuke Forum Ana Sayfası -> vBulletin -> Eklentiler -> Yeni Teşekkür Botu v1.10_vB_3.0.7...!!!!!
AhmetPasha
MesajTarih: Pzr Tem 10, 2005 1:03 pm 
Yeni, Teşekkür, Botu, v1.10_vB_3.0.7...!!!!!, Yeni Teşekkür Botu v1.10_vB_3.0.7...!!!!!,
Alıntıyla Cevap Ver
   
Site Admin
Site Admin


Kayıt: Jan 28, 2005
Mesajlar: 1707
Nerden: İstanbul/Avcılar


(Eklentinin şekli ve şemalini alttaki resimlerde görebilirsiniz)

Not : Anlatım yenilendi (bazı noktaları editledim) ve 100% çalışmaktadır !!! (Bununla birlikte şunu belirtmek isterim; şahsen bu eklentiyi hiç tavsiye etmiyorum; kurması ayarlaması bir dert, istenildiği zaman ise kaldırması ayrı bir dert ve pek çok hatalar görülmektedir. Alternatif olarak bu mantıkta Rep Sistemi (ünvanlandırma sisteminin) kullanılması taraftarıyım)

- Eklentideki dosyaları dizinlere göre göre upload edin. (post_thanks.gif dosyası ingilizcedir; onun yerine kendiniz tr "Teşekkürler" butonu yapıp aynı isimle kaydederek upload edebilirsiniz)

post_thanks.php -> ana forum dizini
post_thanks_acp.php -> /admincp/
post_thanks_install.php -> /admincp/
post_thanks.gif -> /images/buttons/

- Upload işleminden sonra; browserinizden .../admincp/post_thanks_install.php şeklinde kurulumu yapın..

- Sonra; vBulletin Seçenekler >> Post Thank You Hack (En altta) >> Post Thank Hack Enabled >> Evet ve Post Count >> Evet yapın.

Eklenti çalışmadıysa alttaki uygulamaları yapın !!!!

- admincp/index.php 'de bulun;
Kod:

construct_nav_option($vbphrase['update_counters'], 'misc.php?do=chooser', '|');

Altına ekleyin;
Kod:

// post thank you hack
construct_nav_option($vbphrase['post_thanks_update_post_thanks_counters'], 'post_thanks_acp.php', '|');
// post thank you hack

Kaydedip upload edin.

- showthread.php'de bulun;
Kod:

'pollresult',

Altına ekleyin;
Kod:

'post_thanks_postbit',
'post_thanks_postbit_legacy',

Kaydedip upload edin.

- /includes/functions_showthread.php'de bulun;
Kod:

// hide users in Coventry from non-staff members

Üstüne ekleyin;
Kod:

   if (empty($act))
    {
        $post_thanks_cashe = $DB_site->query("SELECT * FROM ". TABLE_PREFIX ."post_thanks WHERE threadid='$post[threadid]'");
        $act = 1;

        while ($thanks = $DB_site->fetch_array($post_thanks_cashe))
        {
            $post_thanks_cash[$act][userid] = "$thanks[userid]";
            $post_thanks_cash[$act][username] = "$thanks[username]";
            $post_thanks_cash[$act][date] = "$thanks[date]";
            $post_thanks_cash[$act][postid] = "$thanks[postid]";

            $act ++;
        }
    }

    $post_thanks_forums_off = '0';
    $post_thanks_forums_first = '0';
    $post_thanks_date_forums = '0';
    $post_thanks_usergroups_using = '0';
    $post_thanks_users_using = '0';

    if ($vboptions['post_thanks_on_off'] == '0')
    {
        $post_thanks_forums_off++;
    }

    if (!empty($vboptions['post_thanks_forum_off']))
    {
        $post_thanks_forums1_off = explode("|",$vboptions['post_thanks_forum_off']);

        foreach ($post_thanks_forums1_off AS $post_thanks_forums2_off)
        {
            if ($post_thanks_forums2_off == $thread[forumid])
            {
                $post_thanks_forums_off++;
            }
        }
    }

    if ($vboptions['post_thanks_forum_first_all'] == '1' && $post[postcount] != 1)
    {
        $post_thanks_forums_first++;
    }

    if (!empty($vboptions['post_thanks_forum_first']) AND $post[postcount] != 1)
    {
        $post_thanks_forums1_first = explode("|",$vboptions['post_thanks_forum_first']);

        foreach ($post_thanks_forums1_first AS $post_thanks_forums2_first)
        {
            if ($post_thanks_forums2_first == $thread[forumid])
            {
                $post_thanks_forums_first++;
            }
        }
    }

    if ($vboptions['post_thanks_date_all'] == '0')
    {
        $post_thanks_date_forums++;
    }

    if (!empty($vboptions['post_thanks_date_forum']))
    {
        $post_thanks_date1_forums = explode("|",$vboptions['post_thanks_date_forum']);

        foreach ($post_thanks_date1_forums AS $post_thanks_date2_forums)
        {
            if ($post_thanks_date2_forums == $thread['forumid'])
            {
                $post_thanks_date_forums++;
            }
        }
    }

    if (!empty($vboptions['post_thanks_usergroup_using']))
    {
        $post_thanks_usergroups1_using = explode("|",$vboptions['post_thanks_usergroup_using']);

        foreach ($post_thanks_usergroups1_using AS $post_thanks_usergroups2_using)
        {
            if ($post_thanks_usergroups2_using == $bbuserinfo['usergroupid'])
            {
                $post_thanks_usergroups_using ++;
            }
        }
    }

    if (!empty($vboptions['post_thanks_user_useing']))
    {
        $post_thanks_users1_useing = explode("|",$vboptions['post_thanks_user_useing']);

        foreach ($post_thanks_users1_useing AS $post_thanks_users2_using)
        {
            if ($post_thanks_users2_using == $bbuserinfo['userid'])
            {
                $post_thanks_users_using++;
            }
        }
    }

    $post_thanks_already = 0;

    if ($post_thanks_cash)
    {
        foreach ($post_thanks_cash AS $thanks)
        {
            if ($thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
            {
            $post_thanks_already ++;
            }
        }
    }

    if ($post_thanks_already == 0 AND THIS_SCRIPT == showthread AND $bbuserinfo[userid] != $post[userid] AND $bbuserinfo[userid]!=0 AND $post_thanks_forums_off == 0 AND $post_thanks_forums_first == 0 AND $post_thanks_usergroups_using == 0 AND $post_thanks_users_using == 0)
    {
        eval('$post_thanks_button = "<a href=\"post_thanks.php?do=post_thanks&p=$post[postid]\"><img src=\"$stylevar[imgdir_button]/post_thanks.gif\" alt=\"$vbphrase[post_thanks_thanks]\" border=\"0\" ></a>";');
    }

    if ($post[post_thanks_amount] > 0 AND $post_thanks_forums_off == 0 AND $post_thanks_forums_first == 0)
    {
        $nb = 0;
        foreach ($post_thanks_cash AS $thanks)
        {
            if ($thanks[postid] == $post[postid])
            {
                $nb ++;
            }
        }

        $cmpt=1;

        if ($nb>0)
        {
            foreach ($post_thanks_cash AS $thank)
            {
                if ($thank[postid] == $post[postid])
                {
                    if ($cmpt<$nb)
                    {
                       $virg=",";
                    }
                    else
                    {
                       $virg="";
                    }

                    if ($post_thanks_date_forums == 0)
                    {
                       $date_thank = vbdate($vboptions['dateformat'], $thank['date'], true);
                       $liste_user = $liste_user." <a href=\"member.php?u=$thank[userid]\">$thank[username]</a> ($date_thank)$virg ";
                    }
                    else
                    {
                       $liste_user = $liste_user." <a href=\"member.php?u=$thank[userid]\">$thank[username]</a>$virg ";
                    }

                    $date=$post_thank[date];
                    $cmpt++;
                }
            }

            if ($vboptions[legacypostbit]=="000")
            {
                eval('$post_thanks = " ' . fetch_template('post_thanks_postbit') . '";');
            }
            else
            {
                eval('$post_thanks = " ' . fetch_template('post_thanks_postbit_legacy') . '";');
            }
        }
    }

// ##################################################################
// #################### end post thank you hack #####################
// ##################################################################

Kaydedip upload edin.

- postbit_legacy templatesinde bulun;
Kod:

$vbphrase[posts]: $post[posts]

Şununla değiştirin;
Kod:

$vbphrase[posts]/$vbphrase[post_thanks_thanks]: $post[posts]/$post[post_thanks_user_amount]
<br>
<if condition="$userinfo[post_thanks_thanked_times] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Time" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$userinfo[post_thanks_thanked_posts] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>

Sonra şunu bulun;
Kod:

<!-- controls -->

Altına ekleyin;
Kod:

<!-- post thank you hack -->
$post_thanks_button
<!-- end post thank you hack -->

Sonra şunu bulun;
Kod:

<!-- / post #$post[postid] -->

Altına ekleyin;
Kod:

<!-- post thank you hack -->
$post_thanks
<!-- end post thank you hack -->

- MEMBERINFO templatesinde bulun
Kod:

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

Şununla değiştirin;
Kod:

$vbphrase[total_posts]/$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[posts]/$userinfo[post_thanks_user_amount]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
<br>
<if condition="$userinfo[post_thanks_thanked_times] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Time" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$userinfo[post_thanks_thanked_posts] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>

Sonra şunu bulun;
Kod:

<if condition="$vboptions['profilelastpost']">

Üstüne ekleyin;
Kod:

<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>
</td>
</tr>

navbar'da bulun;
Kod:

      <tr>
         <td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
      </tr>

Altına ekleyin;
Kod:

<tr>
<td class="vbmenu_option"><a href="post_thanks.php?do=findallthanks">$vbphrase[post_thanks_search]</a></td>
</tr>

Hazırlayan : organik81
İndirlecek dosya : http://www.turkishnuke.net/forum_img/post_thanks_1-10_307.zip





 
Başa dön
Kullanıcı profilini gör Özel mesaj gönder Kullanıcının web sitesini ziyaret et MSN Messenger
Mesajları göster:   
Tüm saatler GMT +2 Saat

Sonraki başlık
Önceki başlık
1. sayfa (Toplam 1 sayfa)
Turkish Nuke Forum Ana Sayfası  ~  Eklentiler

Yeni Başlık Gönder   Cevap Gönder


 
Forum Seçin:  

Bu forumda yeni konular açamazsınız
Bu forumdaki mesajlara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Copyright © Haziran 2005, TurkishNuke ™ Her hakkı saklıdır.
Web sitemizin PHP-Nuke tabanlıdır.

Bu site en iyi 1024x768 ve üzeri çözünürlüklerde, İnternet Explorer ve Firefox ile görüntülenir.
 

stories | temizlik | Kırcaali

AktifPHP!