WebSite X5Help Center

 
Paolo V.
Paolo V.
User

Nome utente di colore bianco  it

Autor: Paolo V.
Visited 442, Followers 1, Udostępniony 0  

Buongiorno, avrei bisogno di adattare il codice (vedi sotto) che fa apparire il nome utente in modo che venga di colore bianco. Potete aiutarmi?
Grazie.

<?php
$qblog = $_SERVER['PHP_SELF'];
if (strpos($qblog, '/blog/') !== false || strpos($qblog, '/cart/') !== false)
    $qpath = '../';
else
    $qpath = '';
require_once($qpath . "res/x5engine.php");
$pa = Configuration::getPrivateArea();
$user = $pa->whoIsLogged();
if ($user)
   echo "Benvenuto <b>".$user['realname']."</b>";
?>

Posted on the
2 ODPOWIEDZI - 1 PRAWIDłOWA ODPOWIEDź
Incomedia
Riccardo P.
Incomedia

Buongiorno Paolo,

ti basta inserire un semplice style al tag <b>, scritto così:

<?php
$qblog = $_SERVER['PHP_SELF'];
if (strpos($qblog, '/blog/') !== false || strpos($qblog, '/cart/') !== false)
    $qpath = '../';
else
    $qpath = '';
require_once($qpath . "res/x5engine.php");
$pa = Configuration::getPrivateArea();
$user = $pa->whoIsLogged();
if ($user)
   echo "Benvenuto <b style='color:white;'>".$user['realname']."</b>";
?>

Spero di esserti stato utile.

Czytaj więcej
Posted on the from Riccardo P.
Paolo V.
Paolo V.
User
Autor

Grazie mille. Perfetto.

Czytaj więcej
Posted on the from Paolo V.