Mir ist das Problem aufgefallen nachdem dem ich die Farbe des Rahmens vom (rot) Userlogins im Header ändern wollte.
Die farbe wird in der funktions.php im Themordner definiert.
ich will aber das sie in der style.php definiert wird.
Kann man das so global in der style definieren das man die funktion.php nicht mehr ändern muss?
Kenne mich leider so gut wie garnicht mit css aus.
es handelt sich um diese stellen in der funktions.php des css-supersimpel von henne.
# ###############################################################
function mx_theme_loginform()
{
global $prefix, $user_prefix, $JPCACHE_ON;
$imagedir = MX_THEME_DIR.'/images';
if ($JPCACHE_ON) {
return;
}
$out = "";
if (!MX_IS_USER) {
if (!defined("mxloginblockviewed")) define("mxloginblockviewed", true);
$nickname = _NICKNAME;
$password = _PASSWORD;
$login = _LOGIN;
$check = mxGetUserLoginCheckField();
$out .= <<<logform
<form action="modules.php?name=Your_Account" method="post">
$check
<fieldset style="border: 1px solid #cc0000; width: 200px;">
<legend style="color: #CC0000;"><strong>Login</strong></legend>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="color: #3370A0;"><strong>Nick:</strong></td>
<td style="color: #3370A0;"><strong>Pass:</strong></td>
<td> </td>
</tr>
<tr>
<td><input name="uname" type="text" title="$nickname" size="8" maxlength="25"></td>
<td><input name="pass" type="password" title="$password" size="8" maxlength="20"></td>
<td><input name="submit" src="$imagedir/login/submit.gif" style="border:0;width:52px; height:17px;" type="image"></td>
</tr>
</table>
<br>
</fieldset>
</form>
logform;
} else {
$hallo = _HELLO;
$logout = _AB_LOGOUT;
$account = _YACCOUNT;
$privatemessages = "";
$cookie = mxgetusersession();
$username = $cookie[1];
if (mxModuleAllowed('Private_Messages')) { # falls pm-modul aktiv ist
$qry = "SELECT Count(msg_id) FROM ${user_prefix}_priv_msgs WHERE to_userid=" . $cookie[0] . " AND read_msg=0;";
$result = sql_query($qry);
list($countpmunread) = sql_fetch_row($result);
if ($countpmunread) { # wenn angemeldeter User
$privatemessages = "<div style=\"text-align: left;\">" . _YOUHAVE . " <a href=\"modules.php?name=Private_Messages\" title=\"" . _PRIVATEMSG . "\"><b style=\"font-weight: normal;\">" . intval($countpmunread) . "</b> Nachricht(en)</a></div>";
}
}
# Usergaestebuch
$guestbook = "";
/*
if (mxModuleAllowed("UserGuest")){ # falls gaestebuch vorhanden
$qry="SELECT Count(gid) FROM ${user_prefix}_userguest WHERE touserid='".$cookie[0]."' AND touser = '".$username."' AND dummy=0;";
$result = sql_query($qry);
list($gbnewentries) = sql_fetch_row($result);
if($gbnewentries){
$msg2 = ($GLOBALS['currentlang']=='english') ? 'new guestbookentries' : 'neue Gästebucheinträge';
$guestbook = "<div style=\"text-align: left; font-size: 9px;\">"._YOUHAVE." <a href=\"modules.php?name=UserGuest\" title=\""._GUESTBOOKVIEW."\"><b style=\"color: Yellow; font-weight: bold;\">".intval($gbnewentries)."</b> ".$msg2."</a></div>";
}
}
*/
$arrowpic = mxCreateImage(MX_THEME_DIR . '/images/arrow.gif', '');
$out .= <<<logform
<fieldset style="border: 1px solid #cc0000; width: 200px;">
<legend style="color: #666666;"><strong>$hallo</strong>
<span style="color: #CC0000; background-color: transparent;">$username</span></legend>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>$privatemessages $guestbook </td>
</tr>
<tr>
<td align="center"><a href="modules.php?name=Your_Account" title="$account">[Account] </a><a href="modules.php?name=Your_Account&op=logout" title="$logout">[Logout]</a></td>
</tr>
</table>
<br>
</fieldset>
logform;
}
# $out .= "<input type='checkbox' value='1' name='rememberme'> "._REMEMBERLOGIN."<br>";
return $out;
}
Was müsste man in die style.php des themes schreiben?
Es handelt sich hierbei um die stellen die die Farbe #cc0000 definieren
Lg