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

VB Stili Sayfa Yönlendirme - Redirect Page (2.0.x)

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


Resmi Site Linki : RedirectPage

2.0.x Manuel Kurulum

Sources/Load.php

Bul
Kod:
// Loads the user's basic values... meant for template/theme usage.
function loadMemberContext($user, $display_custom_fields = false)
{
	global $memberContext, $user_profile, $txt, $scripturl, $user_info;

Değiştir
Kod:
// Loads the user's basic values... meant for template/theme usage.
function loadMemberContext($user, $display_custom_fields = false)
{
	global $memberContext, $user_profile, $txt, $scripturl, $boardurl, $user_info;

Bul
Kod:
		'website' => array(
			'title' => $profile['website_title'],
			'url' => $profile['website_url'],
		),
Değiş
Kod:
		'website' => array(
			'title' => $profile['website_title'],
			'url' => (empty($modSettings['RedirectPage_on_members_sites']) || strpos($profile['website_url'], 'http://') !== 0)? $profile['website_url'] : $boardurl . '/go.php?url=' . ($modSettings['RedirectPage_encode'] ? base64_encode($profile['website_url']) : $profile['website_url']),
		),
Bul
Kod:
			'link' => '<a class="icq new_win" href="http://www.icq.com/whitepages/about_me.php?uin=' . $profile['icq'] . '" target="_blank" title="' . $txt['icq_title'] . ' - ' . $profile['icq'] . '"><img src="http://status.icq.com/online.gif?img=5&icq=' . $profile['icq'] . '" alt="' . $txt['icq_title'] . ' - ' . $profile['icq'] . '" width="18" height="18" /></a>',
Değiş
Kod:
			'link' => '<a class="icq new_win" href="' . ((!empty($modSettings['RedirectPage_on_members_icq_etc']))? $boardurl . '/go.php?url=' . ($modSettings['RedirectPage_encode'] ? base64_encode('http://www.icq.com/whitepages/about_me.php?uin=' . $profile['icq']) : 'http://www.icq.com/whitepages/about_me.php?uin=' . $profile['icq']) : 'http://www.icq.com/whitepages/about_me.php?uin=' . $profile['icq']) . '" target="_blank" title="' . $txt['icq_title'] . ' - ' . $profile['icq'] . '"><img src="http://status.icq.com/online.gif?img=5&icq=' . $profile['icq'] . '" alt="' . $txt['icq_title'] . ' - ' . $profile['icq'] . '" width="18" height="18" /></a>',
Bul
Kod:
			'link' => '<a class="yim" href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim']) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&m=g&t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /></a>',
Değiş
Kod:
			'link' => '<a class="yim" href="' . ((!empty($modSettings['RedirectPage_on_members_icq_etc']))? $boardurl . '/go.php?url=' . ($modSettings['RedirectPage_encode'] ? base64_encode('http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim'])) : 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim'])) : 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['yim'])) . '" title="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($profile['yim']) . '&m=g&t=0" alt="' . $txt['yim_title'] . ' - ' . $profile['yim'] . '" /></a>',
Bul
Kod:
			'link' => '<a class="msn new_win" href="http://members.msn.com/' . $profile['msn'] . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
Değiş
Kod:
			'link' => '<a class="msn new_win" href="' . ((!empty($modSettings['RedirectPage_on_members_icq_etc']))? $boardurl . '/go.php?url=' . ($modSettings['RedirectPage_encode'] ? base64_encode('http://members.msn.com/' . $profile['msn']) : 'http://members.msn.com/' . $profile['msn']) : 'http://members.msn.com/' . $profile['msn']) . '" title="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $txt['msn_title'] . ' - ' . $profile['msn'] . '" /></a>',
Sources/Subs.php

Bul
Kod:
	// Put in the version...
Öncesine Ekle
Kod:
	if (!empty($modSettings['RedirectPage_noindex_copyright']))
				$forum_copyright = '<!--noindex-->' . str_ireplace('class="new_win"', 'class="new_win" rel="nofollow"', $forum_copyright) . '<!--/noindex-->';
Sources/Subs-Post.php

Bul
Kod:
		elseif ($hasEqualSign)
			$replaces['[' . $matches[1][$k] . '=' . $matches[2][$k] . ']'] = '[' . $this_tag . '=' . $replace . ']';
Sonrasına Ekle
Kod:
		elseif ($embeddedUrl && $matches[1][$k] == 'url' && !$hasEqualSign)
			$replaces['[' . $matches[1][$k] . ']' . $matches[2][$k] . '[/' . $matches[3][$k] . ']'] = '[' . $this_tag . ']' . $replace . '[/' . $this_close . ']';