Inny kolor czcionki w logowaniu Header
|
lem |
Dodany dnia 16.01.2017 11:30:03
|
Początkujący
Postów: 112 Pomógł: 1
v7.02.07 Data rejestracji: 11.10.2012 18:56
|
Witam,
Posiadam logowanie w headerze kod który wstawiam do drugiego banneru to:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Simple Login Banner
| Filename: login.php
| Author: Fangree Productions
| Version: v1.00
| Developers: Fangree_Craig
| Site: http://www.fangree.co.uk
+--------------------------------------------------------+
| Some code from PHP-Fusion: user_info_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include LOCALE.LOCALESET."global.php";
echo"<div class='login-header'>\n";
if (!iMEMBER) {
if (!preg_match('/login.php/i',FUSION_SELF)) {
$action_url = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
$action_url = cleanurl(urldecode($_GET['redirect']));
}
echo "<form name='loginform' method='post' action='".$action_url."'>
".$locale['global_101']."
<input type='text' name='user_name' class='textbox' style='width:135px; height:14px; vertical-align:middle;'/>
".$locale['global_102']."
<input type='password' name='user_pass' class='textbox' style='width:135px; height:14px; vertical-align:middle;' />
<input type='checkbox' name='remember_me' value='y' style='vertical-align:middle;' />".$locale['global_103']."
<input type='submit' name='login' value='".$locale['global_104']."' class='button' /> ";
echo "</form>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' target='_self' title='".$locale['global_107']."'>".$locale['global_107']."</a> ";
}
if ($settings['enable_registration']) { echo "|";} if ($settings['enable_registration']) {echo" ";} echo"<a href='".BASEDIR."lostpassword.php' target='_self' title='".$locale['global_108']."'>".$locale['global_108']."</a> ";
}
}else{
/*Login Header Properties */
add_to_head("<style type='text/css'>
.login-header {
vertical-align: middle;
float:right;
font-size : 10px;
font-weight:bold;
padding: 0 0 15px 0;
margin: 15px;
}
.user-name {
color:#333;
}
.new-pm {
color:#f00000;
}
.new-su {
color:#f00000;
}
</style>");
global $userdata, $aidlink;
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
if ($msg_count !=0) {
echo "<span class='user-name small'> ".$userdata['user_name'].", [</span><a href='".BASEDIR."messages.php' class='small new-pm'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a><span class='user-name small'>]</span><br />\n"; } else{ echo"<span class='user-name small' > ".$userdata['user_name'].", [".sprintf($locale['global_125'], $msg_count)." ".$locale['global_121']."] </span><br />";
}
echo " | <a href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' class='side'>".$locale['global_120']."</a> |\n";
echo " <a href='".BASEDIR."messages.php' title='".$locale['global_121']."' class='side'>".$locale['global_121']."</a> |\n";
echo " <a href='".BASEDIR."members.php' title='".$locale['global_122']."' class='side'>".$locale['global_122']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo" | <a href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."' class='side'>".$locale['global_123']."</a> | \n";
}
if (!iADMIN) { echo" | "; }
echo "<a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."' class='side'>".$locale['global_124']."</a> |\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
$subm_count = dbcount("(submit_id)", DB_SUBMISSIONS);
if ($subm_count) {
echo "<br /> <span class='small'>[</span><a href='".ADMIN."submissions.php".$aidlink."' class='new-su small'>".sprintf($locale['global_125'], $subm_count);
echo ($subm_count == 1 ? $locale['global_128'] : $locale['global_129'])."</a><span class='small'>]</span>\n";
}
}
}
echo"</div>\n";
?>
Jak zmienić kolor tekstu na biały gdyż jak mam czarne tło w headerze to jest wszystko na czarno a chcę posiadać biały kolor.
lem dodał/a następującą grafikę:
|
|
|
|
Wścibski Gość |
Dodany dnia 24.11.2024 17:58:24
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
emil90ck |
Dodany dnia 16.01.2017 21:27:19
|
Bywalec
Postów: 376 Pomógł: 30 Ostrzeżeń: 3
v7.00.05 Data rejestracji: 25.07.2008 13:11
|
Zmień wartość stylu "small new-pm" z:
color:#f00000;
na:
color:#ffffff;
|
|
|
|
lem |
Dodany dnia 16.01.2017 23:46:22
|
Początkujący
Postów: 112 Pomógł: 1
v7.02.07 Data rejestracji: 11.10.2012 18:56
|
Zamieniłem wartości na
.user-name {
color:#fff;
}
.new-pm {
color:#fff;
}
.new-su {
color:#fff;
}
I wygląda to tak jak na screenie.
lem dodał/a następującą grafiki:
|
|
|
|
adi |
Dodany dnia 17.01.2017 14:57:35
|
Bywalec
Postów: 377 Pomógł: 42
v7.02.07 Data rejestracji: 18.03.2005 10:39
|
Witam.
Jak mówisz że masz czarne tło to dobrze jak pola są czarne lepiej to będzie wyglądało, dodaj tylko sobie w tym stylu
border: 1px solid #0000;
to uzyskasz obwolutę białą, możesz za szaleć i zaokrąglić rogi
border-radius: 10px;
no i najlepiej jak byś podał link bo na tych twoich grafikach to raczej nic nie widać.
Pozdro all. |
|
|
|
lem |
Dodany dnia 25.03.2017 21:32:26
|
Początkujący
Postów: 112 Pomógł: 1
v7.02.07 Data rejestracji: 11.10.2012 18:56
|
Witam,
Poprzez <span style='color:#ff0000;'></span> próbuje w dalszym ciągu zmienić kolor linków w logowaniu kod logowania w banerze.
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Simple Login Banner
| Filename: login.php
| Author: Fangree Productions
| Version: v1.00
| Developers: Fangree_Craig
| Site: http://www.fangree.co.uk
+--------------------------------------------------------+
| Some code from PHP-Fusion: user_info_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include LOCALE.LOCALESET."global.php";
echo"<div class='login-header'>\n";
if (!iMEMBER) {
if (!preg_match('/login.php/i',FUSION_SELF)) {
$action_url = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
$action_url = cleanurl(urldecode($_GET['redirect']));
}
echo "<form name='loginform' method='post' action='".$action_url."'>
".$locale['global_101']."
<input type='text' name='user_name' class='textbox' style='width:135px; height:14px; vertical-align:middle;'/>
".$locale['global_102']."
<input type='password' name='user_pass' class='textbox' style='width:135px; height:14px; vertical-align:middle;' />
<input type='checkbox' name='remember_me' value='y' style='vertical-align:middle;' />".$locale['global_103']."
<input type='submit' name='login' value='".$locale['global_104']."' class='button' /> ";
echo "</form>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' target='_self' title='".$locale['global_107']."'>".$locale['global_107']."</a> ";
}
if ($settings['enable_registration']) { echo "|";} if ($settings['enable_registration']) {echo" ";} echo"<a href='".BASEDIR."lostpassword.php' target='_self' title='".$locale['global_108']."'>".$locale['global_108']."</a> ";
}
}else{
/*Login Header Properties */
add_to_head("<style type='text/css'>
.login-header {
vertical-align: middle;
float:right;
font-size : 10px;
font-weight:bold;
padding: 0 0 15px 0;
margin: 15px;
}
.user-name {
color:#333;
}
.new-pm {
color:#f00000;
}
.new-su {
color:#f00000;
}
</style>");
global $userdata, $aidlink;
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
if ($msg_count !=0) {
echo "<span class='user-name small'> ".$userdata['user_name'].", [</span><a href='".BASEDIR."messages.php' class='small new-pm'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a><span class='user-name small'>]</span><br />\n"; } else{ echo"<span class='user-name small' > ".$userdata['user_name'].", [".sprintf($locale['global_125'], $msg_count)." ".$locale['global_121']."] </span><br />";
}
echo " | <a href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' class='side'>".$locale['global_120']."</a> |\n";
echo " <a href='".BASEDIR."messages.php' title='".$locale['global_121']."' class='side'>".$locale['global_121']."</a> |\n";
echo " <a href='".BASEDIR."members.php' title='".$locale['global_122']."' class='side'>".$locale['global_122']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo" | <a href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."' class='side'>".$locale['global_123']."</a> | \n";
}
if (!iADMIN) { echo" | "; }
echo "<a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."' class='side'>".$locale['global_124']."</a> |\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
$subm_count = dbcount("(submit_id)", DB_SUBMISSIONS);
if ($subm_count) {
echo "<br /> <span class='small'>[</span><a href='".ADMIN."submissions.php".$aidlink."' class='new-su small'>".sprintf($locale['global_125'], $subm_count);
echo ($subm_count == 1 ? $locale['global_128'] : $locale['global_129'])."</a><span class='small'>]</span>\n";
}
}
}
echo"</div>\n";
?>
Jak wymusić zmianę kolorów linków tylko w logowaniu ? |
|
|
|
Lukeup |
Dodany dnia 26.03.2017 13:28:54
|
Początkujący
Postów: 118 Pomógł: 14
v7.02.07 Data rejestracji: 23.06.2006 22:47
|
Czy możesz załączyć cały theme w obecnym kształcie? |
|
|
|
krystian1988 |
Dodany dnia 27.03.2017 21:46:56
|
Zaawansowany
Postów: 1187 Pomógł: 100
v7.02.07 Data rejestracji: 07.05.2009 17:37
|
Po tym kodzie za wiele nie widać ale możesz sprawdzić w styles.css login-header czy tam nie mam zawartości zamiennej.
BRAK STOPKI = BRAK POMOCY NA SUPPORCIE.PRZECZYTAJ:
Regulamin Supportu Nie pomagam na PW!!!
|
|
|
|
Szapko |
Dodany dnia 09.04.2017 14:09:22
|
Bywalec
Postów: 888 Pomógł: 66
Data rejestracji: 19.08.2007 19:49
|
lem napisał(a):
Witam,
Poprzez <span style='color:#ff0000;'></span> próbuje w dalszym ciągu zmienić kolor linków w logowaniu kod logowania w banerze.
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Simple Login Banner
| Filename: login.php
| Author: Fangree Productions
| Version: v1.00
| Developers: Fangree_Craig
| Site: http://www.fangree.co.uk
+--------------------------------------------------------+
| Some code from PHP-Fusion: user_info_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include LOCALE.LOCALESET."global.php";
echo"<div class='login-header'>\n";
if (!iMEMBER) {
if (!preg_match('/login.php/i',FUSION_SELF)) {
$action_url = FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "");
if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
$action_url = cleanurl(urldecode($_GET['redirect']));
}
echo "<form name='loginform' method='post' action='".$action_url."'>
".$locale['global_101']."
<input type='text' name='user_name' class='textbox' style='width:135px; height:14px; vertical-align:middle;'/>
".$locale['global_102']."
<input type='password' name='user_pass' class='textbox' style='width:135px; height:14px; vertical-align:middle;' />
<input type='checkbox' name='remember_me' value='y' style='vertical-align:middle;' />".$locale['global_103']."
<input type='submit' name='login' value='".$locale['global_104']."' class='button' /> ";
echo "</form>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' target='_self' title='".$locale['global_107']."'>".$locale['global_107']."</a> ";
}
if ($settings['enable_registration']) { echo "|";} if ($settings['enable_registration']) {echo" ";} echo"<a href='".BASEDIR."lostpassword.php' target='_self' title='".$locale['global_108']."'>".$locale['global_108']."</a> ";
}
}else{
/*Login Header Properties */
add_to_head("<style type='text/css'>
.login-header {
vertical-align: middle;
float:right;
font-size : 10px;
font-weight:bold;
padding: 0 0 15px 0;
margin: 15px;
}
.user-name {
color:#333;
}
.new-pm {
color:#f00000;
}
.new-su {
color:#f00000;
}
</style>");
global $userdata, $aidlink;
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0' AND message_folder='0'");
if ($msg_count !=0) {
echo "<span class='user-name small'> ".$userdata['user_name'].", [</span><a href='".BASEDIR."messages.php' class='small new-pm'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a><span class='user-name small'>]</span><br />\n"; } else{ echo"<span class='user-name small' > ".$userdata['user_name'].", [".sprintf($locale['global_125'], $msg_count)." ".$locale['global_121']."] </span><br />";
}
echo " | <a href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' class='side'>".$locale['global_120']."</a> |\n";
echo " <a href='".BASEDIR."messages.php' title='".$locale['global_121']."' class='side'>".$locale['global_121']."</a> |\n";
echo " <a href='".BASEDIR."members.php' title='".$locale['global_122']."' class='side'>".$locale['global_122']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo" | <a href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."' class='side'>".$locale['global_123']."</a> | \n";
}
if (!iADMIN) { echo" | "; }
echo "<a href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."' class='side'>".$locale['global_124']."</a> |\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
$subm_count = dbcount("(submit_id)", DB_SUBMISSIONS);
if ($subm_count) {
echo "<br /> <span class='small'>[</span><a href='".ADMIN."submissions.php".$aidlink."' class='new-su small'>".sprintf($locale['global_125'], $subm_count);
echo ($subm_count == 1 ? $locale['global_128'] : $locale['global_129'])."</a><span class='small'>]</span>\n";
}
}
}
echo"</div>\n";
?>
Jak wymusić zmianę kolorów linków tylko w logowaniu ?
Linki mają przypisaną klasę "side", więc wejdź w folder Twojego theme/stylu i znajdź plik .css i w nim szukaj:
.side {
// zawartość
}
Skopiuj to i wklej za "}" należącym do klasy "side".
Zmień nazwę z "side" na np. panel-link i wyszukaj w skopiowanym fragmencie parametr "color". Zmień jego wartość na np. "#fffff".
Teraz musisz tylko w kodzie podanym w pierwszym linku, wszystkie odniesienia "class='side'" w linkach pozamieniać na "class='panel-link'".
Na przykład:
echo " | <a href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' class='side'>".$locale['global_120']."</a> |\n";
musi wyglądać tak:
echo " | <a href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."' class='panel-link'>".$locale['global_120']."</a> |\n";
To samo tyczy się innych tekstów i linków w zawartych w tym skrypcie, trzeba im przypisać stworzoną klasę (jeżeli coś poza tymi linkami ze screenshoot'ów ma czarny kolor) |
|
|