Orjinal eklentinin adresi ;
External URL Redirects in framed page - vBulletin.org Forum
Sorun : VBSEO linkleriyle cakismasi. VBSEO yu deaktif ettigimde problemin ortadan kalkmasi.
Eklentideki problem : Herhangi bir DIS url yi acarken o siteyi iframe icerisinde gösterme eklentisi. Fakat showthread de yani ic linklerde problem oluyor. eklenti 3.6.x eklentisi oldugu icin seo da bir cakisma oluyor sanirim. Hata ise ic linklerde url nin sonuna konu id numarasini su sekilde eklemesi !20258! Örnek link asagida ;
Plugin Kodu :Code:http://www.muhakeme.net/!20258!http://www.muhakeme.net/tsort-kampanyasindan-aciklama-ve-adres-gondermeleri-t20258.html
Bu da frameyi acarken kullandigi php kodu (ext.php)Code:<phpcode><![CDATA[$this->post['message'] = str_replace('href="', 'href="./ext.php?ref=', $this->post['message']); $this->post['signature'] = str_replace('href="', 'href="./ext.php?ref=', $this->post['signature']);]]></phpcode>
Bu hatayi nasil düzeltebilirim acaba.PHP Code:<?php
//error_reporting(E_ALL & ~E_NOTICE);
error_reporting(0);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'externalframe');
$phrasegroups = array();
$specialtemplates = array();
$actiontemplates = array();
$globaltemplates = array('urlredirect_page');
// #####################################################################
// INCLUDES
// #####################################################################
require_once('./global.php');
if ($_GET) {
foreach ($_GET as $key => $value) {
if ($key=="ref") {
$firsturl = $value;
}
else {
$secondurl = "&". $key. "=". $value;
}
}
$ref = strip_tags($firsturl. $secondurl);
}
$homeurl = parse_url($_SERVER['HTTP_HOST']);
$homeurl = $homeurl[path];
$desturl = parse_url($ref);
if ($desturl[scheme] == "http" && $desturl[host]) { //only works for http. All other protocols become direct links
if ($homeurl == $desturl[host]) { //see if the referal is local or not. If local, 301 to new location.
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: ". $ref );
}
else { //otherwise, open new window
eval('print_output("' . fetch_template('urlredirect_page') . '");');
}
}
else { //if invalid URL, just display it. May be non-HTTP protocol
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: ". $ref );
}
?>


LinkBack URL
About LinkBacks





Reply With Quote
