• Bu site çerezler kullanır. Bu siteyi kullanmaya devam ederek çerez kullanımımızı kabul etmiş olursunuz. Daha fazla bilgi edin.

Show your Social Networks 3.0 - Sosyal Ağlar Smf 2x

Konuyu Okuyan Kişiler (0)

Tevfik

webmaster.tc
Katılım
15 Ağu 2012
Mesajlar
1,393
Beğeniler
0
Konum
Yeni Mah.
#1
Mod Adı: Show your Social Networks 3.0
Mod Yazarı: Adk-Team
Türkçeleştirme: Mr.Atmaca
Uyumlu Sürümler: 2.0 RC4, 2.0 RC5, 2.0, 2.0.1
Download Linki

Caps:



Manuel Kurulum:

index.template.php

Bul:

Kod:
function template_html_below()
{
	global $context, $settings, $options, $scripturl, $txt, $modSettings;
Değiştir:
Kod:
			function template_html_below()
{
	global $context, $settings, $options, $scripturl, $txt, $modSettings;
			
  // Begin show your social networks 3.0 Thanks to Heracles for the new code.
  
		sys();
Bul:
Kod:
?>
Değiştir:
Kod:
function sys()
{
	global $txt, $boardurl, $scripturl, $modSettings;
  
 if (!empty($modSettings['sys'])){
		if ((empty($modSettings['sys_link_1'])) && (empty($modSettings['sys_link_2'])) && (empty($modSettings['sys_link_3'])) && (empty($modSettings['sys_link_4']))
     && (empty($modSettings['sys_link_5'])) && (empty($modSettings['sys_link_6'])) && (empty($modSettings['sys_link_7'])) && (empty($modSettings['sys_link_8']))) {
			return;
		}
		else {
			if (!empty($modSettings['sys_link_1'])){
				$sys = array(
					'uno' => array(
						'href' => !empty($modSettings['sys_url_1']) ? $modSettings['sys_url_1'] : 'http://twitter.com',
						'id' => 'sys_twitter',
						'target' => '_blank',
						'title' => 'Twitter',
					),
				);
			}
			if (!empty($modSettings['sys_link_2'])) {
				$sys['dos'] = array(
						'href' => !empty($modSettings['sys_url_2']) ? $modSettings['sys_url_2'] : $scripturl.'?action=.xml;type=rss',
						'id' => 'sys_rss',
						'target' => '_blank',
						'title' => 'Rss',
				);
			}
			if (!empty($modSettings['sys_link_3'])) {
				$sys['tres'] = array(
						'href' => !empty($modSettings['sys_url_3']) ? $modSettings['sys_url_3'] : 'http://www.facebook.com',
						'id' => 'sys_facebook',
						'target' => '_blank',
						'title' => 'Facebook',
				);
			}
			if (!empty($modSettings['sys_link_4'])) {
				$sys['cuatro'] = array(
						'href' => !empty($modSettings['sys_url_4']) ? $modSettings['sys_url_4'] : 'http://www.youtube.com',
						'id' => 'sys_youtube',
						'target' => '_blank',
						'title' => 'You Tube',
				);
			}
			if (!empty($modSettings['sys_link_5'])) {
				$sys['cinco'] = array(
						'href' => !empty($modSettings['sys_url_5']) ? $modSettings['sys_url_5'] : 'http://hi5.com/friend/displayHomePage.do',
						'id' => 'sys_hi5',
						'target' => '_blank',
						'title' => 'Hi5',
				);
			}
			if (!empty($modSettings['sys_link_6'])) {
				$sys['seis'] = array(
						'href' => !empty($modSettings['sys_url_6']) ? $modSettings['sys_url_6'] : 'http://www.blogger.com/',
						'id' => 'sys_blogger',
						'target' => '_blank',
						'title' => 'Blogger',
				);
			}
			if (!empty($modSettings['sys_link_7'])) {
				$sys['siete'] = array(
						'href' => !empty($modSettings['sys_url_7']) ? $modSettings['sys_url_7'] : 'http://www.flickr.com/',
						'id' => 'sys_flickr',
						'target' => '_blank',
						'title' => 'Flickr',
				);
			}
			if (!empty($modSettings['sys_link_8'])) {
				$sys['ocho'] = array(
						'href' => !empty($modSettings['sys_url_8']) ? $modSettings['sys_url_8'] : 'http://www.myspace.com/',
						'id' => 'sys_myspace',
						'target' => '_blank',
						'title' => 'Myspace',
				);
			}

			$count = count($sys);
			$top = '100';
			foreach ($sys as $act => $button) 
			{
				echo'
					<a id="'.$button['id'].'" style="position:fixed; ', $modSettings ['sys_float'] ,':2px; top:'.$top.'px;" title="'.$button['title'].'" href="'.$button['href'].'"', isset($button['target']) ? ' target="'.$button['target'].'"' : '', '>
						 
					</a>
				';
				$top += 50;
			}
		}
	}
}
?>
ManageSettings.php

Bul:


Kod:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
Sonrasına Ekle:
Kod:
			//Show your social networks 3.0
			array('check', 'sys'),
			array('select', 'sys_float', array('left' => $txt['sys_left'], 'right' => $txt['sys_right'])),
			array('check', 'sys_link_1'),
			array('text', 'sys_url_1'),
			array('check', 'sys_link_2'),
			array('text', 'sys_url_2'),
			array('check', 'sys_link_3'),
			array('text', 'sys_url_3'),
			array('check', 'sys_link_4'),
			array('text', 'sys_url_4'),
			array('check', 'sys_link_5'),
			array('text', 'sys_url_5'),
			array('check', 'sys_link_6'),
			array('text', 'sys_url_6'),
			array('check', 'sys_link_7'),
			array('text', 'sys_url_7'),
			array('check', 'sys_link_8'),
			array('text', 'sys_url_8'),
index.css

En Sona Ekleyin
Kod:
/* Begin Show your social networks 3.0 by enik*/

#sys_twitter {
	display: scroll;
	background-image: url(../images/sys/twitter.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_rss {
	display: scroll;
	background-image: url(../images/sys/rss.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_facebook {
	display: scroll;
	background-image: url(../images/sys/facebook.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_youtube {
	display: scroll;
	background-image: url(../images/sys/youtube.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_hi5 {
	display: scroll;
	background-image: url(../images/sys/hi5.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_blogger {
	display: scroll;
	background-image: url(../images/sys/blogger.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_flickr {
	display: scroll;
	background-image: url(../images/sys/flickr.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

#sys_myspace {
	display: scroll;
	background-image: url(../images/sys/myspace.png);
	background-position: 0px 0px;
	width: 40px;
	height: 40px;
	text-decoration: none;
}

/* Hover */

#sys_twitter:hover {
   background-image: url(../images/sys/twitter_hover.png);
}

#sys_rss:hover {
   background-image: url(../images/sys/rss_hover.png);
} 

#sys_facebook:hover {
   background-image: url(../images/sys/facebook_hover.png);
}

#sys_youtube:hover {
   background-image: url(../images/sys/youtube_hover.png);
}

#sys_hi5:hover {
   background-image: url(../images/sys/hi5_hover.png);
}

#sys_blogger:hover {
   background-image: url(../images/sys/blogger_hover.png);
}

#sys_flickr:hover {
   background-image: url(../images/sys/flickr_hover.png);
}

#sys_myspace:hover {
   background-image: url(../images/sys/myspace_hover.png);
}

/* End Show your social networks 3.0 by enik*/
Modifications.english.php

Bul:
Kod:
?>
Değiştir:
Kod:
// Begin Show Your Social Networks 3.0 by enik

// Enable

$txt['sys'] = 'Enable Show your social networks?';
$txt['sys_link_1'] = 'Enable Twitter?';
$txt['sys_link_2'] = 'Enable rss?';
$txt['sys_link_3'] = 'Enable Facebook?';
$txt['sys_link_4'] = 'Enable Youtube?';
$txt['sys_link_5'] = 'Enable Hi5?';
$txt['sys_link_6'] = 'Enable Blogger?';
$txt['sys_link_7'] = 'Enable Flickr?';
$txt['sys_link_8'] = 'Enable Myspace?';

// Url´s

$txt['sys_url_1'] = 'Url of your Twitter.<br /><b>The urls must be complete Example: http://www.twitter.com/smfpersonal</b>';
$txt['sys_url_2'] = 'Url of your Rss.';
$txt['sys_url_3'] = 'Url of your Facebook.';
$txt['sys_url_4'] = 'Url of your Youtube.';
$txt['sys_url_5'] = 'Url of your Hi5.';
$txt['sys_url_6'] = 'Url of your Blogger.';
$txt['sys_url_7'] = 'Url of your Flickr.';
$txt['sys_url_8'] = 'Url of your Myspace.';

// Others

$txt['sys_float'] = 'Select the side to show left or right.';
$txt['sys_right'] = 'Right';
$txt['sys_left'] = 'Left';

// End Show Your Social Networks 3.0 by enik
Modifications.turkish.php

Bul:
Kod:
?>
Değiştir:
Kod:
// Begin Show Your Social Networks 3.0 by enik

// Enable

$txt['sys'] = 'Sosyal Ağları Göstermeyi Etkinleştir';
$txt['sys_link_1'] = 'Twitter Etkinleştir';
$txt['sys_link_2'] = 'Rss Etkinleştir';
$txt['sys_link_3'] = 'Facebook Etkinleştir';
$txt['sys_link_4'] = 'Youtube Etkinleştir';
$txt['sys_link_5'] = 'Hi5 Etkinleştir';
$txt['sys_link_6'] = 'Blogger Etkinleştir';
$txt['sys_link_7'] = 'Flickr Etkinleştir';
$txt['sys_link_8'] = 'Myspace Etkinleştir';

// Url´s

$txt['sys_url_1'] = 'Twitter Url.<br /><b>Url ler eksiksiz olmalıdır Örnek: http://www.twitter.com/smfpersonal</b>';
$txt['sys_url_2'] = 'Rss Url.';
$txt['sys_url_3'] = 'Facebook Url.';
$txt['sys_url_4'] = 'Youtube Url.';
$txt['sys_url_5'] = 'Hi5 Url.';
$txt['sys_url_6'] = 'Blogger Url.';
$txt['sys_url_7'] = 'Flickr Url.';
$txt['sys_url_8'] = 'Myspace Url.';

// Others

$txt['sys_float'] = 'Sağ veya sol tarafta olmasını seçin.';
$txt['sys_right'] = 'Sağ';
$txt['sys_left'] = 'Sol';

// End Show Your Social Networks 3.0 by enik
?>

Ek'e dosya veremediğimden dolayı images'e bir dosya atmanız gerekiyor. Bana yazarsanız veya mesaj yazarsanız dosyayı gönderebilirim.