Mesaja Cevap Yazılınca Gorunen Lınkler

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kilitli
thesheytan
Kayıtlı Kullanıcı
Mesajlar: 30
Kayıt: 16.03.2007, 16:00
İletişim:

Mesaja Cevap Yazılınca Gorunen Lınkler

Mesaj gönderen thesheytan »

Arkadaslar Vbulletınde Cok rastlıyorum Mesaja cevap yazmadan Lınkler Gorunmesın O lınklerı Oraya koymak ıcın Calısan arkadaslara bı tsk etmek bu kadar zor olmasa gerek sıtede arastırdım bır yerde vermısler boyle bır mod ama lınk Olmus


Elınde Boyle bır mod olan Varsa Verebılır mı?
Kullanıcı avatarı
Mirach
Destek Ekibi Lideri
Destek Ekibi Lideri
Mesajlar: 1664
Kayıt: 27.03.2006, 01:06
Konum: İstanbul

Mesaj gönderen Mirach »

hide mod olarak arama yapabilirsiniz.
Profilinde phpBB forumunun adresini girmemiş üyelere ve kurallara aykırı şekilde açılmış başlıklara destek verilmez.
Resim Resim Resim
thesheytan
Kayıtlı Kullanıcı
Mesajlar: 30
Kayıt: 16.03.2007, 16:00
İletişim:

Mesaj gönderen thesheytan »

Ya ben Korum Yada Gercekten yok sıtede Butun mod sayfalarını Dolastım ama goremedım bı adres verebılır mısın
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 Title: Hide Links 
## Mod Author: Nome < nome@bk.ru > 162783614 
## Mod Version: 2.1.0 
## Mod Description: This mod will prevent links from being shown 
## to unregistered users. Instead they'll be 
## advised to register or login. 
## Mod Features: 
## - hide http links and email from unregistered users 
## 
## Installation Level: Very Easy 
## Installation Time: 3 Minutes 
## 
## Files To Edit: 2 
## includes/bbcode.php 
## language/lang_english/lang_main.php 
## 
################################################################# 
## Author's notes: 
## In order to change the thing you get instead of a link 
## edit $replacer. By default there is a quotelike box. 
## Pay attention to the fact that the second block of $replacers 
## has a space in the first line, it's a must there  
################################################################# 
################################################################# 
## History 
## - 2.1.0 - Updated with latest bugfixes from phpbb groupe 
## - 2.0.0 - Fixed a bug with [url] links 
## - 1.0.0 - First released 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
function bbencode_second_pass($text, $uid) 
{ 
global $lang, $bbcode_tpl; 

# 
#-----[ REPLACE WITH ]------------------------------------ 
# 
function bbencode_second_pass($text, $uid) 
{ 
global $lang, $bbcode_tpl, $userdata, $phpEx, $u_login_logout; 

// The thing we replace links with. I like using a quote like box 
$replacer = '<table width="40%" cellspacing="1" cellpadding="3" border="0"><tr><td class="quote">'; 
$replacer .= $lang['Links_Allowed_For_Registered_Only'] . '<br />'; 
$replacer .= sprintf($lang['Get_Registered'], "<a href=\"" . append_sid('profile.' . $phpEx . '?mode=register') . "\">", "</a>"); 
$replacer .= sprintf($lang['Enter_Forum'], "<a href=\"" . append_sid($u_login_logout) . "\">", "</a>"); 
$replacer .= '</td></tr></table>'; 

# 
#-----[ FIND ]------------------------------------------ 
# 
// matches a xxxx://www.phpbb.com code.. 
$patterns[] = "#\[url\]([\w]+?://[^ \"\n\r\t<]*?)\[/url\]#is"; 
$replacements[] = $bbcode_tpl['url1']; 

// www.phpbb.com code.. (no xxxx:// prefix). 
$patterns[] = "#\[url\]((www|ftp)\.[^ \"\n\r\t<]*?)\[/url\]#is"; 
$replacements[] = $bbcode_tpl['url2']; 

// phpBB code.. 
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is"; 
$replacements[] = $bbcode_tpl['url3']; 

// phpBB code.. (no xxxx:// prefix). 
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is"; 
$replacements[] = $bbcode_tpl['url4']; 

// user@domain.tld code.. 
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; 
$replacements[] = $bbcode_tpl['email']; 



# 
#-----[ REPLACE WITH ]------------------------------------ 
# 
// matches a xxxx://www.phpbb.com code.. 
$patterns[] = "#\[url\]([\w]+?://[^ \"\n\r\t<]*?)\[/url\]#is"; 
if ( !$userdata['session_logged_in'] ) 
{ 
$replacements[] = $replacer; 
} 
else 
{ 
$replacements[] = $bbcode_tpl['url1']; 
} 

// www.phpbb.com code.. (no xxxx:// prefix). 
$patterns[] = "#\[url\]((www|ftp)\.[^ \"\n\r\t<]*?)\[/url\]#is"; 
if ( !$userdata['session_logged_in'] ) 
{ 
$replacements[] = $replacer; 
} 
else 
{ 
$replacements[] = $bbcode_tpl['url2']; 
} 

// phpBB code.. 
$patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is"; 
if ( !$userdata['session_logged_in'] ) 
{ 
$replacements[] = $replacer; 
} 
else 
{ 
$replacements[] = $bbcode_tpl['url3']; 
} 

// phpBB code.. (no xxxx:// prefix). 
$patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is"; 
if ( !$userdata['session_logged_in'] ) 
{ 
$replacements[] = $replacer; 
} 
else 
{ 
$replacements[] = $bbcode_tpl['url4']; 
} 

// user@domain.tld code.. 
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; 
if ( !$userdata['session_logged_in'] ) 
{ 
$replacements[] = $replacer; 
} 
else 
{ 
$replacements[] = $bbcode_tpl['email']; 
} 

# 
#-----[ FIND ]------------------------------------------ 
# 
function make_clickable($text) 
{ 

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 
global $userdata, $lang, $phpEx, $u_login_logout; 

# 
#-----[ FIND ]------------------------------------------ 
# 
// matches an "xxxx://yyyy" URL at the start of a line, or after a space. 
// xxxx can only be alpha characters. 
// yyyy is anything up to the first space, newline, comma, double quote or < 
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret); 

// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing 
// Must contain at least 2 dots. xxxx contains either alphanum, or "-" 
// zzzz is optional.. will contain everything up to the first space, newline, 
// comma, double quote or <. 
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret); 

// matches an email@domain type address at the start of a line, or after a space. 
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".". 
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret); 

# 
#-----[ REPLACE WITH ]------------------------------------ 
# 
// 
// Hide links from unregistered users mod 
// 
if ( !$userdata['session_logged_in'] ) 
{ 
// The thing we replace links with. I like using a quote like box 
$replacer = ' <table width="40%" cellspacing="1" cellpadding="3" border="0"><tr><td class="quote">'; 
$replacer .= $lang['Links_Allowed_For_Registered_Only'] . '<br />'; 
$replacer .= sprintf($lang['Get_Registered'], "<a href=\"" . append_sid('profile.' . $phpEx . '?mode=register') . "\">", "</a>"); 
$replacer .= sprintf($lang['Enter_Forum'], "<a href=\"" . append_sid($u_login_logout) . "\">", "</a>"); 
$replacer .= '</td></tr></table>'; 

// matches an "xxxx://yyyy" URL at the start of a line, or after a space. 
// xxxx can only be alpha characters. 
// yyyy is anything up to the first space, newline, comma, double quote or < 
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", $replacer, $ret); 

// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing 
// Must contain at least 2 dots. xxxx contains either alphanum, or "-" 
// zzzz is optional.. will contain everything up to the first space, newline, 
// comma, double quote or <. 
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", $replacer, $ret); 

// matches an email@domain type address at the start of a line, or after a space. 
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".". 
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", $replacer, $ret); 

} 
else 
{ 
// matches an "xxxx://yyyy" URL at the start of a line, or after a space. 
// xxxx can only be alpha characters. 
// yyyy is anything up to the first space, newline, comma, double quote or < 
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret); 

// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing 
// Must contain at least 2 dots. xxxx contains either alphanum, or "-" 
// zzzz is optional.. will contain everything up to the first space, newline, 
// comma, double quote or <. 
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret); 

// matches an email@domain type address at the start of a line, or after a space. 
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".". 
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret); 
} 
// 
// Hide links from unregistered users mod 
// 

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
$lang['A_critical_error'] = 

# 
#-----[ AFTER, ADD ]------------------------------------ 
# 

// 
// Hide links from unregistered users mod 
// 
$lang['Links_Allowed_For_Registered_Only'] = 'Forumdaki linkleri görmen için siteye üye olman gerek yok öle beleşe link mink'; 
$lang['Get_Registered'] = '%sKAYIT%s ol yada '; 
$lang['Enter_Forum'] = '%sÜYE GİRİŞİ%s yap'; 

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------- 
# 
#EoM 
[ 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
ufoss
Kayıtlı Kullanıcı
Mesajlar: 138
Kayıt: 05.10.2006, 00:27
Konum: Trabzon-Tekirdag-Hollanda
İletişim:

Mesaj gönderen ufoss »

Bu mod arkadasin isdedigi mod degil...
PHP icin o mod varmi bende bilemiyorum...


Arkadasin isdedigi mod daha cok mp3 veya program dagitan sitelerde mevcut...
Diyelimki ben bir link ekledim yada bir yazi onu gizli yapiyorummm...

kayitli kullanicida o linki goremiyor....

Taki "cevap yaza" basacak "eline saglik guzel paylasim. tesekkurler devamini bekleriz " vs gibi yazi yazacak...

Sonra link yada yazi gorunur hale geliyor...

Bu mod a ben phpbb de hic rastlamadim...
Kullanisli bir mod olabilir...
Gereksizde bircok mesaja neden olacaktir...
thesheytan
Kayıtlı Kullanıcı
Mesajlar: 30
Kayıt: 16.03.2007, 16:00
İletişim:

Mesaj gönderen thesheytan »

evet gereksız bır cok mesaja neden olabılır o ama ben onu tesekkur butonuna uyarlanmıs olanını ıstıyorum CUnku O konuları acmak ıcın Ugrasanlar var en azından bı tesekkuru hakedıyorlar dıye dusunuyorum
Kilitli

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

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 2 misafir