Seite 1 von 2
Haftnotiz bearbeiten
Verfasst: 19.09.2004 16:09
von aidacha
Hi,
Ich habe eine Haftnotiz nun installiert. Sie läuft super, nur dass ich zwei Sachen unbedingt ändern muss:
- Eine andere Hintergrundfarbe für die Notiz
- Dass sie nur angezeigt wird, wenn die User nicht eingeloggt sind
Wie mach ich das am besten?
Verfasst: 19.09.2004 16:16
von Smith
Poste mal bitte deine overall_header.tpl

Verfasst: 19.09.2004 16:18
von aidacha
naja die ist aber ziemlich gross...
^^
Code entfernt! Leuchte
KB:datei
Verfasst: 19.09.2004 16:22
von Tyson
Lies mal hier wie man ein PHP Datei zum Download bereitstellt:
http://phpbb.de/doku/kb/artikel.php?art ... phph+datei
Verfasst: 19.09.2004 16:26
von aidacha
omg tyson er hat gesagt posten nicht zum download anbieten. Ausserdem ist mir bekannt wie man eine .php Datei zum Download bereitstellt und drittens, es ist eine .tpl Datei keine .php datei!
Verfasst: 19.09.2004 16:27
von Tyson
Es war nur ein Tipp gewesen

Verfasst: 19.09.2004 16:30
von aidacha
^^ na gut... also ich wart dann mal schön auf eine antwort....
Verfasst: 19.09.2004 16:30
von Leuchte
Wenn tyson (= smith) sagt, spring aus dem Fenster... - lassen wir das.
Verlink die entsprechende Datei bitte.
Verfasst: 19.09.2004 16:35
von aidacha
okaaayy okaayy
Hier ist sie!
jetzt gehts
Verfasst: 19.09.2004 16:37
von Smith
Finde:
Code: Alles auswählen
<!-- BEGIN switch_enable_board_note -->
<style>
<!--
#hano{
position:absolute;
width:300;
padding:6px;
background-color : yellow;
border : 1px solid black;
visibility : hidden;
z-index : 100;
cursor : hand;
}
-->
</style>
<div id="hano" style="left:600px;top:150px; background-color: #FFFF99;">
<p><b><span class="gen">{L_board_note}</span></b><br>
<span class="gensmall">{board_note}</span></p>
<p><a href="javascript:closeit()" class="gensmall">{L_board_note_close}</a></p></div>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<script>
var once_per_browser=0
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ns4)
crossobj=document.layers.hano
else if (ie4||ns6)
crossobj=ns6? document.getElementById("hano") : document.all.hano
function closeit(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
crossobj.visibility="hide"
}
function get_cookie4(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie4.length > 0) {
offset = document.cookie4.indexOf(search)
if (offset != -1) { // if cookie4 exists
offset += search.length
// set index of beginning of value
end = document.cookie4.indexOf(";", offset);
// set index of end of cookie4 value
if (end == -1)
end = document.cookie4.length;
returnvalue=unescape(document.cookie4.substring(offset, end))
}
}
return returnvalue;
}
function showornot(){
if (get_cookie4('postdisplay')==''){
showit()
document.cookie4="postdisplay=yes"
}
}
function showit(){
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
crossobj.visibility="show"
}
if (once_per_browser)
showornot()
else
showit()
</script>
<script language="JavaScript1.2">
function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializedrag(e){
if (ie4&&event.srcElement.id=="hano"||ns6&&e.target.id=="hano"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
</script>
<!-- END switch_enable_board_note -->
Und ersetze mit:
Code: Alles auswählen
<!-- BEGIN switch_user_logged_in--><!-- BEGIN switch_enable_board_note -->
<style>
<!--
#hano{
position:absolute;
width:300;
padding:6px;
background-color : yellow;
border : 1px solid black;
visibility : hidden;
z-index : 100;
cursor : hand;
}
-->
</style>
<div id="hano" style="left:600px;top:150px; background-color: #FFFF99;">
<p><b><span class="gen">{L_board_note}</span></b><br>
<span class="gensmall">{board_note}</span></p>
<p><a href="javascript:closeit()" class="gensmall">{L_board_note_close}</a></p></div>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
//-->
</script>
<script>
var once_per_browser=0
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ns4)
crossobj=document.layers.hano
else if (ie4||ns6)
crossobj=ns6? document.getElementById("hano") : document.all.hano
function closeit(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
crossobj.visibility="hide"
}
function get_cookie4(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie4.length > 0) {
offset = document.cookie4.indexOf(search)
if (offset != -1) { // if cookie4 exists
offset += search.length
// set index of beginning of value
end = document.cookie4.indexOf(";", offset);
// set index of end of cookie4 value
if (end == -1)
end = document.cookie4.length;
returnvalue=unescape(document.cookie4.substring(offset, end))
}
}
return returnvalue;
}
function showornot(){
if (get_cookie4('postdisplay')==''){
showit()
document.cookie4="postdisplay=yes"
}
}
function showit(){
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
crossobj.visibility="show"
}
if (once_per_browser)
showornot()
else
showit()
</script>
<script language="JavaScript1.2">
function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializedrag(e){
if (ie4&&event.srcElement.id=="hano"||ns6&&e.target.id=="hano"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
</script>
<!-- END switch_enable_board_note -->
<!-- END switch_user_logged_in -->
Ich meinte ja verlinken...
