şu eklentiler lazım

Bu bölümümüzde PHP uzantılı web sayfaları hakkında aradığınıza ulaşabileceksiniz..Kodlar, programlar ve daha niceleri.. Ayrıca bu bölümümüzde PHP forumlar hakkında da sorular sorabilir paylaşımlarda bulunabilirsiniz.
Kullanıcı avatarı
Erhanbay
Bağımlı Üye
Bağımlı Üye
Mesajlar: 400
Kayıt: 06 Şub 2007 [ 13:05 ]

şu eklentiler lazım

Mesaj gönderen Erhanbay »

hızlı cevap ve gizli link eklentisini nerden bulabilirim?



Kullanıcı avatarı
VSaBaH
Tasarımcı Yönetici
Tasarımcı Yönetici
Mesajlar: 6135
Kayıt: 21 Kas 2005 [ 23:54 ]

Mesaj gönderen VSaBaH »

Hızlı Cevap daha önce konuldu.. Biraz ararsan bulabilirsin..

İşte Link Gizleme Modu; (Köstebek Forum'da kullanılan)
:arrow: Link Gizleme MODU (Hide Links MOD)

MOD Bilgisi: Foruma üye olmayanlar linki göremez.. Linkin olduğu kısımda üye girişi yapın yazısı çıkar..

DEMO: aktuelbilgi.net

Kod: Tümünü seç

################################################################# 
## Mod İsmi: Hide Links 
## Mod Yapımcısı: Nome < [email protected] > 162783614 
## Mod Versiyonu: 2.1.0 
## Mod Tanımı: This mod will prevent links from being shown 
##           to unregistered users. Instead they'll be 
##          advised to register or login. 
## Mod Özellikleri: 
##      - hide http links and email from unregistered users 
## 
## Kurulum seviyesi : KOLAY 
## Kurulum süresi    : 5 DK 
## 
## 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 
################################################################# 

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

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

# 
#-----[ DEĞİŞTİR ]------------------------------------ 
# 
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>'; 

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

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

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

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

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



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

   // [url]www.phpbb.com[/url] 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']; 
   } 

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

   // [url=www.phpbb.com]phpBB[/url] 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']; 
   } 

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

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

# 
#-----[ ARDINA EKLE ]------------------------------------ 
# 
   global $userdata, $lang, $phpEx, $u_login_logout; 

# 
#-----[ BUL ]------------------------------------------ 
# 
      // 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); 

# 
#-----[ DEĞİŞTİR ]------------------------------------ 
# 
// 
// 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 
// 

# 
#-----[ AÇ ]------------------------------------------ 
# 
(NOT; Türkçe dil paketimizie gireceğiz ingizlice pakjete değil) 

language/lang_english/lang_main.php 

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

# 
#-----[ ARDINA EKLE ]------------------------------------ 
# 

// 
// Hide links from unregistered users mod 
// 
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!'; 
$lang['Get_Registered'] = 'Get %sregistred%s or '; 
$lang['Enter_Forum'] = '%senter%s the forums!'; 

# 
#-----[ TÜM DOSYALARDAKİ DEĞŞİKLİKLERİ YAP VE KAYDET - MOD KURULMUŞTUR ]-------------------------- 
# 
#EoM

UMARIM YARDIMCI OLABİLMİŞİMDİR..

KOLAY GELSİN..
 !
REKLAMLARA YAPILAN TIKLAMA BİZİM TEK GELİR KAPIMIZDIR. LÜTFEN ADBLOCK TARZI EKLENTİLERLE REKLAMLARI ENGELLEMEYELİM. BİZE EN GÜZEL TEŞEKKÜRÜ BU ŞEKİLDE YAPABİLİRSİNİZ. TEŞEKKÜRLER...


Resim

Kullanıcı avatarı
Erhanbay
Bağımlı Üye
Bağımlı Üye
Mesajlar: 400
Kayıt: 06 Şub 2007 [ 13:05 ]

Mesaj gönderen Erhanbay »

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

#
#-----[ ARDINA EKLE ]------------------------------------
#

//
// Hide links from unregistered users mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';

şu kısım şöyle mi olacak

$lang['A_critical_error'] = //
// Hide links from unregistered users mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';

:oops:

Kullanıcı avatarı
VSaBaH
Tasarımcı Yönetici
Tasarımcı Yönetici
Mesajlar: 6135
Kayıt: 21 Kas 2005 [ 23:54 ]

Mesaj gönderen VSaBaH »

Noldu ki dosyanda o kısım yok mu???
 !
REKLAMLARA YAPILAN TIKLAMA BİZİM TEK GELİR KAPIMIZDIR. LÜTFEN ADBLOCK TARZI EKLENTİLERLE REKLAMLARI ENGELLEMEYELİM. BİZE EN GÜZEL TEŞEKKÜRÜ BU ŞEKİLDE YAPABİLİRSİNİZ. TEŞEKKÜRLER...


Resim

Kullanıcı avatarı
Erhanbay
Bağımlı Üye
Bağımlı Üye
Mesajlar: 400
Kayıt: 06 Şub 2007 [ 13:05 ]

ss

Mesaj gönderen Erhanbay »

o kısım varda ardına ekle kısmını anlamadım..nasıl yerleştireceğimi kafam karıştı :oops:

Kullanıcı avatarı
VSaBaH
Tasarımcı Yönetici
Tasarımcı Yönetici
Mesajlar: 6135
Kayıt: 21 Kas 2005 [ 23:54 ]

Re: ss

Mesaj gönderen VSaBaH »

erhanby yazdı:o kısım varda ardına ekle kısmını anlamadım..nasıl yerleştireceğimi kafam karıştı :oops:

Orası değişken. Yani forum dilin Türkçe ise orası

Kod: Tümünü seç

$lang['A_critical_error'] = 'Kritik bir hata oluştu'; 
(veya benzer şeylerdir)

İngilizce ise

Kod: Tümünü seç

$lang['A_critical_error'] =A Critical Error
gibidir..

Sen onu;

Kod: Tümünü seç

# 
#-----[ AÇ ]------------------------------------------ 
# 
(NOT; Türkçe dil paketimizie gireceğiz ingizlice pakjete değil) 

language/lang_english/lang_main.php 

# 
#-----[BUL ]------------------------------------------ 
# 
$lang['A_critical_error'] = 'Kritik bir hata oluştu';

# 
#-----[ ARDINA EKLE ]------------------------------------ 
# 

// 
// Hide links from unregistered users mod 
// 
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!'; 
$lang['Get_Registered'] = 'Get %sregistred%s or '; 
$lang['Enter_Forum'] = '%senter%s the forums!'; 

#

Yapacaksın... Hepsi bu kadar...

KOLAY GELSİN...
 !
REKLAMLARA YAPILAN TIKLAMA BİZİM TEK GELİR KAPIMIZDIR. LÜTFEN ADBLOCK TARZI EKLENTİLERLE REKLAMLARI ENGELLEMEYELİM. BİZE EN GÜZEL TEŞEKKÜRÜ BU ŞEKİLDE YAPABİLİRSİNİZ. TEŞEKKÜRLER...


Resim

Kullanıcı avatarı
Erhanbay
Bağımlı Üye
Bağımlı Üye
Mesajlar: 400
Kayıt: 06 Şub 2007 [ 13:05 ]

Mesaj gönderen Erhanbay »

yok tanlış anlattım ben şunu soruyom

//
// Hide links from unregistered users mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';$lang['A_critical_error'] = 'Kritik bir hata oluştu';

en son editlemede kodlar böylemi yerleşmiş olacak..yani ardına derken arkasaına mı eklicez kodu :D

Kullanıcı avatarı
VSaBaH
Tasarımcı Yönetici
Tasarımcı Yönetici
Mesajlar: 6135
Kayıt: 21 Kas 2005 [ 23:54 ]

Mesaj gönderen VSaBaH »

erhanby yazdı:yok tanlış anlattım ben şunu soruyom

//
// Hide links from unregistered users mod
//
$lang['Links_Allowed_For_Registered_Only'] = 'Only registered users can see links on this board!';
$lang['Get_Registered'] = 'Get %sregistred%s or ';
$lang['Enter_Forum'] = '%senter%s the forums!';$lang['A_critical_error'] = 'Kritik bir hata oluştu';

en son editlemede kodlar böylemi yerleşmiş olacak..yani ardına derken arkasaına mı eklicez kodu :D

Tabiki hepsi o kadar... Yani Bul denilen kodu bul en sonuna gel.. Enterla Yapıştır...Bu kadar ;)
 !
REKLAMLARA YAPILAN TIKLAMA BİZİM TEK GELİR KAPIMIZDIR. LÜTFEN ADBLOCK TARZI EKLENTİLERLE REKLAMLARI ENGELLEMEYELİM. BİZE EN GÜZEL TEŞEKKÜRÜ BU ŞEKİLDE YAPABİLİRSİNİZ. TEŞEKKÜRLER...


Resim

Kullanıcı avatarı
Erhanbay
Bağımlı Üye
Bağımlı Üye
Mesajlar: 400
Kayıt: 06 Şub 2007 [ 13:05 ]

ss

Mesaj gönderen Erhanbay »

sanırım gizli link 2.0.22 de düzgün çalışmıyor kaç kezdir deniyom yüklenmedi. :tuh:

Kullanıcı avatarı
VSaBaH
Tasarımcı Yönetici
Tasarımcı Yönetici
Mesajlar: 6135
Kayıt: 21 Kas 2005 [ 23:54 ]

Re: ss

Mesaj gönderen VSaBaH »

erhanby yazdı:sanırım gizli link 2.0.22 de düzgün çalışmıyor kaç kezdir deniyom yüklenmedi. :tuh:

Kardeş yanlışın var.. Köstebek Forum sürümü 2.0.22 yani son sürüm.. Ama bizde çalışıyor.. Dikkat et..

Bir de hata uyarısı alıyorsan onu bizimle paylaşır mısın...?
 !
REKLAMLARA YAPILAN TIKLAMA BİZİM TEK GELİR KAPIMIZDIR. LÜTFEN ADBLOCK TARZI EKLENTİLERLE REKLAMLARI ENGELLEMEYELİM. BİZE EN GÜZEL TEŞEKKÜRÜ BU ŞEKİLDE YAPABİLİRSİNİZ. TEŞEKKÜRLER...


Resim

Cevapla