Mesaj Yazmadan Link Gözükmesin

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kilitli
Kullanıcı avatarı
Radon91
Kayıtlı Kullanıcı
Mesajlar: 63
Kayıt: 06.04.2007, 17:07
İletişim:

Mesaj Yazmadan Link Gözükmesin

Mesaj gönderen Radon91 »

Foruma üye olanlarda benim forumumda videoları izleyip gidiyorlar hiç bişey yazmıyorlar bazı forumlarda linkleri görmek için mesaj atınız diye birşey gördüm böyle bir mod var mı??
Kullanıcı avatarı
RAUVAS
Uzaklaştırıldı
Mesajlar: 505
Kayıt: 16.09.2006, 00:41
Konum: Paris
İletişim:

Mesaj gönderen RAUVAS »

Kod: Tümünü seç

############################################################## 
## MOD Adı: Hide Mod (phpBB 2.0.19)
## MOD Yazarı: Philiweb < http://www.philiweb.com/ >
## MOD Düzenleme: dESiLVer < desilverx@gmail.com > (Kemal Güner) http://www.techsilver.gen.tr
## MOD Açıklaması: [hide]-[/hide] tagları arasına ekleyeceğiniz mesajları gizlemenizi sağlar.
## MOD Versiyonu: phpBB 2.0.19 (01/2006) 
## 
## Kurulum Derecesi: (Orta) 
## Kurulum Süresi: 20 dakika 
## Düzenlenecek Dosyalar: 7
##			  posting.php
##			  viewtopic.php
##			  search.php
##			  includes/topic_review.php
##			  includes/bbcode.php
##			  templates/subSilver/bbcode.tpl
##			  templates/subSilver/posting_body.tpl
## İçerdiği Dosyalar: 2
##			  templates/subSilver/images/hide.gif
##			  templates/subSilver/images/unhide.gif
## Lisans: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
############################################################## 
## Güvenliğiniz sebebiyle, Mod'ların yeni sürümlerini kontrol etmek için lütfen 
## http://www.phpbb.com/mods/ adresini ziyaret ediniz. MOD'lar MOD-Veritabanı 
## tarafından onaylanmadan önce kontrol edilmesine karşın bir güvenlik açığı 
## oluşturmayacağı garantisi verilemez. Başka sitelerden indirdiğiniz
## modlar sebebiyle phpBB forumunuza kötü niyetli kodlar eklenebilir. phpBB başka 
## sitelerden indirdiğiniz dosyalar için destek vermez, phpBB MOD-Veritabanı için, 
## http://www.phpbb.com/mods/ adresini ziyaret ediniz.
############################################################## 
## MOD'u forumunuza eklemeden önce MOD'da değişiklik yapılacak tüm dosyaların yedeğini alınız. 
############################################################## 

# 
#-----[ AÇ ]------------------------------ 
# 
posting.php
# 
#-----[ ARA ]----------------------------------- 
# 

if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )
{
        $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
}

if( $bbcode_on )
{
        $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);
} 

# 
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------- 
#

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}

if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] )
{
        $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']);
        $user_sig = bbencode_third_pass($user_sig, $userdata['user_sig_bbcode_uid'], $valid);
}

if( $bbcode_on )
{
        $preview_message = bbencode_second_pass($preview_message, $bbcode_uid);
        $preview_message = bbencode_third_pass($preview_message, $bbcode_uid, $valid);
}

# 
#-----[ ARA ]----------------------------------- 
# 

if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 )
{
        $subject = 'Re: ' . $subject;
} 

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
# 

if( !$userdata['session_logged_in'] ) {$message = hide_in_quote($message);}
else { $sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
if(!$db->sql_numrows($resultat)) {$message = hide_in_quote($message);}
} 

# 
#-----[ AÇ ]------------------------------ 
# 
viewtopic.php
# 
#-----[ ARA ]----------------------------------- 
# 

//
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
// then get it's value, find the number of topics with dates newer than it (to properly
// handle pagination) and alter the main query
// 

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}

# 
#-----[ ARA ]----------------------------------- 
# 

if ($user_sig != '' && $user_sig_bbcode_uid != '')
{
        $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
}

if ($bbcode_uid != '')
{
        $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);
}

# 
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------- 
# 

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
{
        $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
        $user_sig = bbencode_third_pass($user_sig, $user_sig_bbcode_uid, $valid);
}

if ( $bbcode_uid != '' )
{
        $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, $valid);
}

# 
#-----[ AÇ ]------------------------------ 
# 
search.php
# 
#-----[ ARA ]----------------------------------- 
# 

//
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if ( $return_chars != -1 ) 

# 
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------- 
#

//
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
if( $return_chars == -1 )

# 
# 
#-----[ ARA ]----------------------------------- 
# 

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
} 

# 
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------- 
# 

if ( $bbcode_uid != '' )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, FALSE); 
}

# 
#-----[ AÇ ]------------------------------ 
# 
includes/topic_review.php
# 
#-----[ ARA ]----------------------------------- 
# 

        //
        // Okay, let's do the loop, yeah come on baby let's do the loop
        // and it goes like this ...
        //
        if ( $row = $db->sql_fetchrow($result) )
        {

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

$valid = FALSE;
if( $userdata['session_logged_in'] ) {
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? TRUE : FALSE;}

# 
# 
#-----[ ARA ]----------------------------------- 
# 

if ( $bbcode_uid != "" )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
} 

# 
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------- 
# 

if ( $bbcode_uid != "" )
{
        $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message);
        $message = bbencode_third_pass($message, $bbcode_uid, $valid);
}

# 
#-----[ AÇ ]------------------------------ 
# 
includes/bbcode.php
# 
#-----[ ARA ]----------------------------------- 
# 

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); 

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

$bbcode_tpl['show'] = str_replace('{HTEXTE}', '\\1', $bbcode_tpl['show']);

# 
# 
#-----[ ARA ]----------------------------------- 
# 

/**
 * Does second-pass bbencoding. This should be used before displaying the message in
 * a thread. Assumes the message is already first-pass encoded, and we are given the 
 * correct UID as used in first-pass encoding.
 */ 

# 
#-----[ ÖNCESİNE EKLE ]------------------------------------------- 
# 

function hide_in_quote($text)
{
        $text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","Bu uygulama üyelerin foruma katılımını sağlamak içindir...", $text);
        return $text;
}

function bbencode_third_pass($text, $uid, $deprotect)
{
        global $bbcode_tpl;

        // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
        // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
        $text = " " . $text;

        // First: If there isn't a "[" and a "]" in the message, don't bother.
        if (! (strpos($text, "[") && strpos($text, "]")) )
        {
                // Remove padding, return.
                $text = substr($text, 1);
                return $text;
        }
        // Patterns and replacements for URL and email tags..
        $patterns = array();
        $replacements = array();
 
        if ( $deprotect ) {
        $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
        $replacements[0] = $bbcode_tpl['show'];
        }
        else
        {
        $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
        $replacements[0] = $bbcode_tpl['hide'];
        }

        $text = preg_replace($patterns, $replacements, $text);
 
        // Remove our padding from the string..
        $text = substr($text, 1);

        return $text;
}

# 
#-----[ ARA ]----------------------------------- 
# 

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\](([a-z]+?)://([^ \"\n\r]+?))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text);

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

//[hide]message[/hide]
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","[hide:$uid]\\1[/hide:$uid]", $text); 

# 
#-----[ AÇ ]------------------------------ 
# 
templates/subSilver/bbcode.tpl
# 
#-----[ ARA ]----------------------------------- 
# 

<!-- BEGIN ulist_open --><ul><!-- END ulist_open -->
<!-- BEGIN ulist_close --></ul><!-- END ulist_close -->

# 
#-----[ ÖNCESİNE EKLE ]------------------------------------------- 
#

<!-- BEGIN show --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><p align="center"><img border="0" src="templates/subSilver/images/unhide.gif" width="190" height="70"></p></span></td>
        </tr>
        <tr>
	<td class="quote"> 
                {HTEXTE}
          </td>
        </tr>
</table>
<span class="postbody">
<!-- END show --> 

<!-- BEGIN hide --> 
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr> 
          <td><span class="genmed"><p align="center"><img border="0" src="templates/subSilver/images/hide.gif" width="190" height="70"></p></span></td>
        </tr>
        <tr>
	 <td class="quote"> 
       <center><b>Bu uygulama üyelerin foruma katılımını sağlamak içindir...</b></center>
          </td>
        </tr>
</table>
<span class="postbody">
<!-- END hide -->

# 
#-----[ AÇ ]------------------------------ 
# 
templates/subSilver/posting_body.tpl
# 
#-----[ ARA ]----------------------------------- 
# 

f_help = "{L_BBCODE_F_HELP}";

# 
#-----[ SONRASINA EKLE ]------------------------------------------- 
#

h_help = "Hide: [hide]mesaj[/hide] (alt+h)"; 

# 
# 
#-----[ ARA ]----------------------------------- 
# 

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','');

#
#-----[ BUNUNLA DEĞİŞTİR ]-------------------------------------------
#

bbtags = new Array('','','','','','','[quote]','[/quote]','','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]');

#
#-----[ ARA ]-----------------------------------
#

<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>

#
#-----[ SONRASINA EKLE ]-------------------------------------------
#

<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode18" value="Hide" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('h')" />
</span></td>

#
#-----[ TÜM DOSYALARI KAYDET/KAPAT ]------------------------------------------
#
# SoN
#
# phpBB MOD Şablonu TECHSILVER (http://www.techsilver.gen.tr) tarafından düzenlenip türkçeleştirilmiştir.
#
[/code]

http://www.turkph pbb.org/dload.php?action=download&file_id=47

[ resmi görüntülemek için tıklayın ]
AŞKA DAİR
MEKANS

Arkadaşlık sctripleri(yonja,club81)oyun sctripleri (flash,mynet) kurulur
Kullanıcı avatarı
Radon91
Kayıtlı Kullanıcı
Mesajlar: 63
Kayıt: 06.04.2007, 17:07
İletişim:

Mesaj gönderen Radon91 »

Yardımınız için teşekkür ederim
Kilitli

“2.0.x MOD İstekleri” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Bing [Bot] ve 4 misafir