Hide Hack ( Mesaj Sayısına Göre )

SambaRio

4Lq
Katılım
14 Eyl 2006
Mesajlar
1,556
Reaction score
0
Puanları
0
Yaş
35
Konum
Rio
Eklentiyi yazan: Psionic Vision
vB Versiyonu 3.6.0
Mod Versiyonu: 2.7.0-LMTD


Eklentin Amacı: Eklenti sayesinde belli bir mesaj sayısına ulaşmamış kişilere ve belli kullanıcı gruplarına linkleri, resimleri yada dökümanları gizlemeye yarar.


Ek bilgiler:
Kurulum süresi: Yaklaşık 2 dakika

Upload edilecek dosya sayısı: 4
Düzenlenecek dosya sayısı: 8
Template değişikliği sayısı: 2
Ürün yükleme sayısı: 1

Kurulumu:


Öncelikle dosyayı indirip rar ' dan kurtarınız.

Dosyaları yükleme:
Upload klasörünün içindeki dosyaları FTP ' nizdeki gerekli yerlere upload ediniz.

Dosya değişiklikleri:
FTP ' ye girip aşağıdaki dosya değişikliklerini yapınız.

PHP:
[COLOR="red"]/search.php dosyasını açın[/COLOR]Şu kodu bulun PHP Kodu:

$post['pagetext'] = preg_replace('#\[quote(=("|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']); 



Hemen altına şu kodu ekleyin.
PHP Kodu:

$post['pagetext'] = $hhr->parse_bbcode($post['pagetext'], $post['forumid'], $post['threadid'], $post['postid'], $post['userid']); 




/archive/ dosyasını açın Şu kodu bulun PHP Kodu:

AS username, dateline 



Bu kod ile değiştirin
PHP Kodu:

AS username, dateline, post.userid 



Yine aynı dosya içinde bu kodu bulun 
PHP Kodu:

$post['pagetext_simp'] = strip_bbcode($post['pagetext']); 



Bununla değiştirin
PHP Kodu:

// ================================================== ======================================
// ORIGINAL CODE:
// $post['pagetext_simp'] = strip_bbcode($post['pagetext']);
// ================================================== ======================================
$post['pagetext_simp'] = $post['pagetext_simp'] = $hhr->parse_bbcode($post['pagetext'], $foruminfo['forumid'], $threadinfo['threadid'], $post['postid'], $post['userid']);
$post['pagetext_simp'] = strip_bbcode($post['pagetext_simp']);
// ================================================== ====================================== 







/includes/functions_digest.php dosyasını açın
Şu kodu bulun PHP Kodu:

$post['pagetext'] = $plaintext_parser->parse($post['pagetext'], $thread['forumid']); 



Hemen üstüne şu kodu ekleyin.
PHP Kodu:

$post['pagetext'] = $GLOBALS['hhr']->strip_bbcode($post['pagetext'], 'email'); 







/includes/functions_forumdisplay.php dosyasını açın
Şu kodu bulun PHP Kodu:

$thread['preview'] = strip_quotes($thread['preview']); 



Altına şu kodu ekleyin
PHP Kodu:

$thread['preview'] = $GLOBALS['hhr']->parse_bbcode($thread['preview'], $foruminfo['forumid'], $thread['threadid'], $thread['firstpostid'], $thread['postuserid']); 







/includes/functions_newpost.php dosyasını açın
Şu kodu bulun PHP Kodu:

$pagetext_cache["$touser[languageid]"] = $plaintext_parser->parse($pagetext_orig, $foruminfo['forumid']); 



Bu kod ile değiştirin
PHP Kodu:

// ================================================== ======================================
// ORIGINAL CODE:
// $pagetext_cache["$touser[languageid]"] = $plaintext_parser->parse($pagetext_orig, $foruminfo['forumid']);
// ================================================== ======================================
$pagetext_cache["$touser[languageid]"] = $GLOBALS['hhr']->strip_bbcode($pagetext_orig, 'email');
$pagetext_cache["$touser[languageid]"] = $plaintext_parser->parse($pagetext_cache["$touser[languageid]"], $foruminfo['forumid']);
// ================================================== ====================================== 



Yine aynı dosyada şu kodu bulun
PHP Kodu:

$pagetext = trim(strip_quotes($pagetext)); 



Altına şu kodu ekleyin
PHP Kodu:

$pagetext = $GLOBALS['hhr']->strip_bbcode($pagetext, 'editor'); 






/clientscript/vbulletin_textedit.js dosyasını açın
Şu kodu bulun PHP Kodu:

case 'PHP':
{
this.apply_format('removeformat');
}
break; 



Altına şu kodu ekleyin
PHP Kodu:

case 'HIDE':
case 'SHOWTOGROUPS':
{
useoption = true;
}
break; 





Template Düzenlemeleri:
editor_toolbar_on templatesinde şu kodu bulun PHP Kodu:

$vBeditTemplate[extrabuttons] 



Üstüne şu kodu ekleyin
PHP Kodu:

$vBeditTemplate[hidetag_toolbar_buttons] 







showthread_quickreply, postbit_quickedit templatelerinde şu kodu bulun ( 2 template editlemesi vardır burada ) PHP Kodu:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td> 



Hemen altına şu kodu ekleyin
PHP Kodu:

$vBeditTemplate[hidetag_toolbar_buttons]



Ürün Yüklemesi:
Admincp >>> Plugin Sistemi >>> Ürün Yöneticisi >>> Ürün Ekle/Kaldır >>> Gözat kısmından indirdiğiniz klasör içindeki product-psionic_hide.xml adlı xml dosyasını gösterin ve yükleyin.

http://www.sharepilot.com/d85444179...tion.Limited_2.7.0_by.Psionic.Vision.zip.html

NOT: Eklenti vBulletin 3.6.3 versiyonunda denenmiştir ve çalışmaktadır.

Kolay Gelsin...:utan
 
3.6.4 dede çalışır inşallah..
 
çalıştımı pekı 3.6.4 te bende kuaracam ama beklıorum
 
html dosyasını notpad ya da metin düzenleyicede aç sürüm 3.6.4 yap çalısır.
 
Geri
Üst