Titolo della mod: Barra registrazione per Ospiti 2
Autore: Xiradorn e carlino1994
Difficoltà: bassa
Tempo: 1 minuto
Testata su phpbb 3.0.11
Modificata da alex75: Problema delle immagini non più disponibili risolto, cambiando il percorso delle immagini, con una da me allegata.
Apri:
styles/prosilver/template/overall_header.html
trova:
Codice: Seleziona tutto
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
<div id="information" class="rules">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->]]>
Codice: Seleziona tutto
<!-- IF not S_USER_LOGGED_IN -->
<div class="navbar_notice" id="navbar_notice_1010">
<style type="text/css">
/*Optimized for firefox!*/
#topbar11 {
position: absolute;
dispaly: block;
width: 100%;
margin: auto;
border-bottom: 2px solid royalblue;
padding: 0.8% 0;
text-align: center;
background-color: lightyellow;
visibility: hidden;
z-index: 10;
}
</style>
<script type="text/javascript">
/**
* Powered by carlino1994 (www.phpbbitalia.net) and Sir Xiradorn (www.xiradorn.it)
*/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 0 //set x offset of bar in pixels
var startY = 0 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar11").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar11").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar11");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<div id="topbar11">
<font size="2">
<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"></span>
<img src="{ROOT_PATH}images/lucchetto.png" />
<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">Non sei registrato? </span><a style="font-weight: bold; font-family: Verdana,Arial,Helvetica,sans-serif;" href="{U_REGISTER}">Registrati subito</a><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"> su </span><span style="font-weight: bold; font-family: Verdana,Arial,Helvetica,sans-serif;">{SITENAME}</span>
<span style="font-family: Verdana,Arial,Helvetica,sans-serif;">!</span>
<img src="{ROOT_PATH}images/lucchetto.png" />
<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">
<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"></span>
<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"></span>
</font>
</div>
</div>
<!-- ENDIF -->
Aggiornare i template; svuotare la cache. Fine della mod