1-Ho incollato il codice nel campo header personalizzato:
Codice HTML:
<script type="text/javascript">
//<![CDATA[
(function(){
var AlterVista_DOMAIN = "foto360.altervista.org";
var NEW_DOCUMENT = 0;
var protocolhost = location.protocol+"//"+location.host;
addEventListener("message", function(e){
if(new RegExp("[./]"+AlterVista_DOMAIN+"$").test(e.origin) && e.data.type == NEW_DOCUMENT){
document.title = e.data.title;
history.replaceState(null, e.data.title, protocolhost+e.data.pathquery);
}
}, false);
})()
//]]>
</script>
2 ho incollato nel campo header del plugin "header and footer":
Codice HTML:
<script type="text/javascript">
(function(){
var DOMAIN = "vision360.biz";
var NEW_DOCUMENT = 0;
if(this != parent && name == "XYZZY2"){
parent.postMessage({type: NEW_DOCUMENT, title: document.title, pathquery: location.pathname+location.search}, "http://"+DOMAIN);
}else if(!window.PL || location.hash.search(/access_token/) == -1){
location.replace("//"+DOMAIN+location.pathname+location.search);
}
})()
</script>