0 Üye ve 1 Ziyaretçi Konuyu İncelemekte. Aşağı İn :)
Sayfa 1
Konu: Anti-spam Linkler [2.0 Rc2]  (Okunma Sayısı: 914 Kere Okundu.)
« : Mart 12, 2011, 06:34:04 ÖS »

[B]a[R]a[N]
*
Üye No : 4
Yaş : 33
Nerden : İstanbul
Cinsiyet : Bay
Konu Sayısı : 5706
Mesaj Sayısı : 27 763
Karizma = 62878



Mod Name:Anti-Spam Links
Created By:SMF Customization Team
Type:Spam Prevention
First Created:January 24, 2010, 04:42:59 PM
Version:2.0 RC2
Açıklama:Sitedeki Spam Linklerini Engeliyor
Link:WeBCaNaVaRi'na Üye Olmadan Link'leri ve Kod'ları Göremezsiniz.
Link'leri Görebilmek İçin. Üye Ol. veya Giriş Yap.
Tıkla




./Sources/Display.php

Kod: (Bul) Hepsini Seç  
	// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);

Kod: (Değiştir) Hepsini Seç  

// Start of Anti-Spam-Links mod

$posts = $memberContext[$message['id_member']]['is_guest'] ? 0 : $memberContext[$message['id_member']]['posts'];

// End of Anti-Spam-Links mod

// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg'], NULL, (int) $message['id_member'], $posts);
 

./Sources/Load.php

Kod: (Bul) Hepsini Seç  
	$profile['signature'] = parse_bbc($profile['signature'], true, 'sig' . $profile['id_member']);

Kod: (Değiştir) Hepsini Seç  
	$profile['signature'] = parse_bbc($profile['signature'], true, 'sig' . $profile['id_member'], NULL, $profile['id_member'], $profile['posts']);

./Sources/ManageSettings.php

Kod: (Bul) Hepsini Seç  
		// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Kod: (Sonrasına Ekle) Hepsini Seç  
		'',
$txt['anti_spam_links'],
array('int', 'anti_spam_links_nolinks', 'subtext' => $txt['anti_spam_links_zero_disable']),
array('int', 'anti_spam_links_newbielinks', 'subtext' => $txt['anti_spam_links_zero_disable']),
array('int', 'anti_spam_links_nofollowlinks', 'subtext' => $txt['anti_spam_links_zero_disable']),
array('select', 'anti_spam_links_guests', array(&$txt['anti_spam_links_guests_opt0'], &$txt['anti_spam_links_guests_opt1'], &$txt['anti_spam_links_guests_opt2'], &$txt['anti_spam_links_guests_opt3'])),
'',

Kod: (Bul) Hepsini Seç  
		// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

Kod: (Sonra Ekle) Hepsini Seç  
		// Start of Anti-Spam-Links mod

// Nofollow links will not apply if its less than newbie links. So we need to fix it.
if (!empty($save_vars['anti_spam_links_newbielinks']) && !empty($save_vars['anti_spam_links_nofollowlinks']))
if ((int) $save_vars['anti_spam_links_newbielinks'] >= (int) $save_vars['anti_spam_links_nofollowlinks'])
(int) $save_vars['anti_spam_links_nofollowlinks'] = (int) $save_vars['anti_spam_links_newbielinks'] + 1;

// End of Anti-Spam-Links mod


./Sources/Post.php

Kod: (Bul) Hepsini Seç  
		// Any errors occurred?
if (!empty($context['post_error']))
{

Kod: (Öncesine Ekle) Hepsini Seç  
		// Start of Anti-Spam-Links mod

// Previewing and modifying an existing post we need the original posters post count.
if (isset($_REQUEST['msg']))
{
$request = $smcFunc['db_query']('', '
SELECT IFNULL(m.id_member, 0) AS poster_id, IFNULL(mem.posts, 0) AS postcount
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (m.id_member = mem.id_member)
WHERE id_msg = {int:id_msg}',
array(
'id_msg' => $_REQUEST['msg'],
)
);
// Error, so treat them as a guest.
if ($smcFunc['db_num_rows']($request) == 0)
$poster_id = $posts = 0;

list($poster_id, $posts) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}
else
{
$poster_id = $user_info['is_guest'] ? 0 : $user_info['id'];
$posts = $user_info['is_guest'] ? 0 : $user_info['posts'];
}
// Are we editing our own post
$own_post = $poster_id != $user_info['id'];

// Ugly but necessary.
// Takes into account moderation when deciding whether to show the post error.
if((($own_post && $user_info['is_guest']) || (!$own_post && empty($poster_id)) && $modSettings['anti_spam_links_guests'] == 1) || ((($own_post && !$user_info['is_guest']) || !$own_post && !empty($poster_id)) && !empty($modSettings['anti_spam_links_nolinks']) && $posts < $modSettings['anti_spam_links_nolinks']))
// Your not allowed to use links, so give them an error.
if (preg_match('~<a href="', preg_quote($boardurl), '(.*?)~i', parse_bbc($form_message, false)) !== false)
$context['post_error']['anti_spam_links_nolinks_' . ($user_info['is_guest'] ? 'guest' : 'member')] = true;

// End of Anti-Spam-Links mod


Kod: (Bul) Hepsini Seç  
				if (!in_array($post_error, array('new_reply', 'not_approved', 'new_replies', 'old_topic', 'need_qr_verification')))

Kod: (Değiştir) Hepsini Seç  
				if (!in_array($post_error, array('new_reply', 'not_approved', 'new_replies', 'old_topic', 'need_qr_verification', 'anti_spam_links_nolinks_guest', 'anti_spam_links_nolinks_member')))

Kod: (Bul) Hepsini Seç  
			$context['preview_message'] = parse_bbc($context['preview_message'], isset($_REQUEST['ns']) ? 0 : 1);

Kod: (Değiş) Hepsini Seç  
			$context['preview_message'] = parse_bbc($context['preview_message'], isset($_REQUEST['ns']) ? 0 : 1, NULL, NULL, $poster_id, $posts);

Kod: (Bul) Hepsini Seç  
	// Any mistakes?
if (!empty($post_errors))
{

Kod: (Öncesine Ekle) Hepsini Seç  
	// Start of Anti-Spam-Links mod

$poster_id = empty($row['id_member']) ? 0 : (int) $row['id_member'] ;
$own_post = $poster_id != $user_info['id'];

// Quick Edit - Not modifying your own post, then we need the original posters post count.
if (!$own_post)
{
// Obtain the members post count.
if (!empty($poster_id))
{
$request = $smcFunc['db_query']('', '
SELECT posts
FROM {db_prefix}members
WHERE id_member = {int:id_member}',
array(
'id_member' => $poster_id,
)
);
// Error, so treat them as a guest.
if ($smcFunc['db_num_rows']($request) == 0)
$poster_id = $posts = 0;

list($posts) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}
else
$posts = 0;
}
else
// Editing own post
$posts = $user_info['is_guest'] ? 0 : $user_info['posts'];

// Ugly but necessary.
// Takes into account moderation when deciding whether to show the post error.
if((($own_post && $user_info['is_guest']) || (!$own_post && empty($poster_id)) && $modSettings['anti_spam_links_guests'] == 1) || ((($own_post && !$user_info['is_guest']) || !$own_post && !empty($poster_id)) && !empty($modSettings['anti_spam_links_nolinks']) && $posts < $modSettings['anti_spam_links_nolinks']))
// Your not allowed to use links, so give them an error.
if (preg_match('~<a href="', preg_quote($boardurl), '(.*?)~i', parse_bbc($_POST['message'], false)) !== false)
$post_errors[] = 'anti_spam_links_nolinks_' . ($user_info['is_guest'] ? 'guest' : 'member');

// End of Anti-Spam-Links mod


Kod: (Bul) Hepsini Seç  
		SELECT IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time, m.body, m.smileys_enabled, m.id_msg

Kod: (Değiş) Hepsini Seç  
		SELECT IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time, m.body, m.smileys_enabled, m.id_msg, IFNULL(mem.posts, 0) AS postcount, IFNULL(m.id_member, 0) AS poster_id

Kod: (Bul) Hepsini Seç  
		$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);

Kod: (Değiş) Hepsini Seç  
		$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg'], NULL, (int) $row['poster_id'], (int) $row['postcount']);

Kod: (Bul) Hepsini Seç  
				$post_errors[] = 'no_message';
unset($_POST['message']);
}

Kod: (Sonrasına Ekle) Hepsini Seç  

// Start of Anti-Spam-Links mod

if (isset($_POST['message']))
{
$poster_id = empty($row['id_member']) ? 0 : (int) $row['id_member'] ;
$own_post = $poster_id != $user_info['id'];

// Quick Edit - Not modifying your own post, then we need the original posters post count.
if (!$own_post)
{
// Obtain the members post count.
if (!empty($poster_id))
{
$request = $smcFunc['db_query']('', '
SELECT posts
FROM {db_prefix}members
WHERE id_member = {int:id_member}',
array(
'id_member' => $poster_id,
)
);
// Error, so treat them as a guest.
if ($smcFunc['db_num_rows']($request) == 0)
$poster_id = $posts = 0;

list($posts) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
}
else
$posts = 0;
}
else
// Editing own post
$posts = $user_info['is_guest'] ? 0 : $user_info['posts'];

// Ugly but necessary.
// Takes into account moderation when deciding whether to show the post error.
if((($own_post && $user_info['is_guest']) || (!$own_post && empty($poster_id)) && $modSettings['anti_spam_links_guests'] == 1) || ((($own_post && !$user_info['is_guest']) || !$own_post && !empty($poster_id)) && !empty($modSettings['anti_spam_links_nolinks']) && $posts < $modSettings['anti_spam_links_nolinks']))
// Your not allowed to use links, so give them an error.
if (preg_match('~<a href="', preg_quote($boardurl), '(.*?)~i', parse_bbc($_POST['message'], false)) !== false)
{
$post_errors[] = 'anti_spam_links_nolinks_' . ($user_info['is_guest'] ? 'guest' : 'member');
unset($_POST['message']);
}
}

// End of Anti-Spam-Links mod


Kod: (Bul) Hepsini Seç  
			$context['message']['body'] = parse_bbc($context['message']['body'], $row['smileys_enabled'], $row['id_msg']);

Kod: (Değş) Hepsini Seç  
			$context['message']['body'] = parse_bbc($context['message']['body'], $row['smileys_enabled'], $row['id_msg'], NULL, $poster_id, $posts);

Kod: (Bul) Hepsini Seç  
				'error_in_body' => in_array('no_message', $post_errors) || in_array('long_message', $post_errors),

Kod: (Değiş) Hepsini Seç  
				'error_in_body' => in_array('no_message', $post_errors) || in_array('long_message', $post_errors) || in_array('anti_spam_links_nolinks_member', $post_errors) || in_array('anti_spam_links_nolinks_guest', $post_errors),

./Sources/Subs.php

Kod: (bUL) Hepsini Seç  
function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = array())

Kod: (Değş) Hepsini Seç  
function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = array(), $poster_id = '', $posts = '')

Kod: (Bul) Hepsini Seç  
	// Cleanup whitespace.
$message = strtr($message, array('  ' => ' &nbsp;', "\r" => '', "\n" => '<br />', '<br /> ' => '<br />&nbsp;', '' => "\n"));

Kod: (Sonrasına Ekle) Hepsini Seç  
	// Start of Anti-Spam-Links mod

// Links get made non-active with newbielinks prefix
if ((($poster_id === 0 && $modSettings['anti_spam_links_guests'] == 2) || (!empty($poster_id) && !empty($modSettings['anti_spam_links_newbielinks']) && $posts != '' && $posts < $modSettings['anti_spam_links_newbielinks'])) && strpos($message, '<a href') !== false)
$message = preg_replace('~<a href="', preg_quote($boardurl), '([^"]*?)"(?:[^>]*?)>(?:.*?)</a>~i', $txt['anti_spam_links_newbielink'] . '$1 <span class="alert smalltext" title="' . sprintf($txt['anti_spam_links_newbielinks_info'], $modSettings['anti_spam_links_newbielinks']) . '">' . $txt['anti_spam_links_nonactive'] . '</span>', $message);

// Links get rel="nofollow" so no page rank for you.
elseif ((($poster_id === 0 && $modSettings['anti_spam_links_guests'] == 3) || (!empty($poster_id) && !empty($modSettings['anti_spam_links_nofollowlinks']) && $posts != '' && $posts < $modSettings['anti_spam_links_nofollowlinks'])) && strpos($message, '<a href') !== false)
$message = preg_replace('~(<a)( href="', preg_quote($boardurl), '(?:[^"]*?)"(?:[^>]*?)\>(?:.*?)</a>)~i', '$1 rel="nofollow"$2 <span class="alert smalltext" title="' . sprintf($txt['anti_spam_links_nofollowlinks_info'], $modSettings['anti_spam_links_nofollowlinks']) . '">' . $txt['anti_spam_links_nofollow'] . '</span>', $message);

// End of Anti-Spam-Links mod

./Themes/default/languages/Modifications.english.php

Kod: (Bul) Hepsini Seç  
?>

Kod: (Üstüne Ekle) Hepsini Seç  
global $boardurl;
$txt['anti_spam_links'] = 'Anti-Spam-Links Mod Settings';
$txt['error_anti_spam_links_nolinks_guest'] = 'Sorry, guests are not allowed to post external links.';
$txt['error_anti_spam_links_nolinks_member'] = 'Sorry, you are not allowed to post external links.';
$txt['anti_spam_links_newbielink'] = ' newbielink:';
$txt['anti_spam_links_nonactive'] = '[nonactive]';
$txt['anti_spam_links_newbielinks_info'] = 'To curb spam posts, external links are [nonactive] until %1$s posts';
$txt['anti_spam_links_nofollowlinks_info'] = 'To curb spam posts, external links are set [nofollow] (which means no pagerank) until %1$s posts';
$txt['anti_spam_links_nofollow'] = '[nofollow]';
$txt['anti_spam_links_nolinks'] = 'Post count under which members cannot post external links';
$txt['anti_spam_links_newbielinks'] = 'Post count under which members external links are shown [nonactive] and without http://';
$txt['anti_spam_links_nofollowlinks'] = 'Post count under which members external links are set [nofollow]';
$txt['anti_spam_links_zero_disable'] = '[Excludes any ' . $boardurl . ' links]<br />(Use 0 to disable)';
$txt['anti_spam_links_guests'] = 'Guests... ';
$txt['anti_spam_links_guests_opt0'] = '(disable mod for guests)';
$txt['anti_spam_links_guests_opt1'] = 'can not post links';
$txt['anti_spam_links_guests_opt2'] = 'links are shown [nonactive]';
$txt['anti_spam_links_guests_opt3'] = 'links are set [nofollow]';


Gider Ayak SMF aTayım Dedim. Tr Çeviri Yapacağım Bir İki Güne EKLERİM

Caps

WeBCaNaVaRi'na Üye Olmadan Link'leri ve Kod'ları Göremezsiniz.
Link'leri Görebilmek İçin. Üye Ol. veya Giriş Yap.


WeBCaNaVaRi'na Üye Olmadan Link'leri ve Kod'ları Göremezsiniz.
Link'leri Görebilmek İçin. Üye Ol. veya Giriş Yap.


WeBCaNaVaRi'na Üye Olmadan Link'leri ve Kod'ları Göremezsiniz.
Link'leri Görebilmek İçin. Üye Ol. veya Giriş Yap.

İstek & Öneri ve Şikayetlerinizi: link (@) webcanavari . net Adresine İletebilirsiniz.
WeBCaNaVaRi Botu

Bu Site Mükemmel :)

*****

Çevrimİçi Çevrimİçi

Mesajlar: 222 194


View Profile
Re: Anti-spam Linkler [2.0 Rc2]
« Posted on: Nisan 26, 2024, 07:31:02 ÖÖ »

 
      Üye Olunuz.!
Merhaba Ziyaretçi. Öncelikle Sitemize Hoş Geldiniz. Ben WeBCaNaVaRi Botu Olarak, Siteden Daha Fazla Yararlanmanız İçin Üye Olmanızı ŞİDDETLE Öneririm. Unutmayın ki; Üyelik Ücretsizdir. :)

Giriş Yap.  Kayıt Ol.
Anahtar Kelimeler: Anti-spam Linkler [2.0 Rc2] e-book, Anti-spam Linkler [2.0 Rc2] programı, Anti-spam Linkler [2.0 Rc2] oyunları, Anti-spam Linkler [2.0 Rc2] e-kitap, Anti-spam Linkler [2.0 Rc2] download, Anti-spam Linkler [2.0 Rc2] hikayeleri, Anti-spam Linkler [2.0 Rc2] resimleri, Anti-spam Linkler [2.0 Rc2] haberleri, Anti-spam Linkler [2.0 Rc2] yükle, Anti-spam Linkler [2.0 Rc2] videosu, Anti-spam Linkler [2.0 Rc2] şarkı sözleri, Anti-spam Linkler [2.0 Rc2] msn, Anti-spam Linkler [2.0 Rc2] hileleri, Anti-spam Linkler [2.0 Rc2] scripti, Anti-spam Linkler [2.0 Rc2] filmi, Anti-spam Linkler [2.0 Rc2] ödevleri, Anti-spam Linkler [2.0 Rc2] yemek tarifleri, Anti-spam Linkler [2.0 Rc2] driverları, Anti-spam Linkler [2.0 Rc2] smf, Anti-spam Linkler [2.0 Rc2] gsm
Sayfa 1
Yukarı Çık :)
Gitmek istediğiniz yer:  


Benzer Konular
Konu Başlığı Başlatan Yanıtlar Görüntü Son Mesaj
Ca Anti-spam
A B C D E
Furkan 1 795 Son Mesaj Temmuz 15, 2008, 10:11:15 ÖÖ
Gönderen : By.CeZa
Anti-smf Spam Doğrulama Soruları [ Botlar Üye Olmasın ]
Modifiye
[B]a[R]a[N] 1 1088 Son Mesaj Haziran 22, 2009, 05:02:16 ÖS
Gönderen : By.TuRuT
We Turkey Oyunu [ Linkler Sağlam ] « 1 2 »
Tüm Oyunlar
[B]a[R]a[N] 18 7554 Son Mesaj Kasım 08, 2015, 12:16:04 ÖÖ
Gönderen : mydj
Yararlı Linkler... « 1 2 »
Serbest Kürsü.
Fos4Lu 15 5423 Son Mesaj Ocak 25, 2010, 02:21:18 ÖS
Gönderen : !__SuSKuN__!
Rapidshare - Hatalı Linkler Hakkında
Network ve İnternet
By.TuRuT 3 4761 Son Mesaj Kasım 14, 2009, 04:21:02 ÖS
Gönderen : Furkan


Theme: WeBCaNaVaRi 2011 Copyright 2011 Simple Machines SiteMap | Arsiv | Wap | imode | Konular