inserire i blocchi anche su in alto..
matteo mi chiedevo se è possibile mettere il blocco su in alto in tutte le pagine anche quando un utente visualizza il forum e possibile?se si come faccio a metterlo?me lo spiegli?grazie....
Supporto, segnalazione e discussione di temi, moduli, blocchi, addons..ecc. di Phpnuke e derivati.
Moderatore: queen_live78
Fondatore
Messaggi: 256
Iscritto il: sab ott 11, 2008 11:00 pm
Località: Torremaggiore(Foggia),Italia
Conoscenze Informatiche: Ottime conoscenze del mondo phpnuke, dell'html, php, mysql, css, javascript(Tutto del web!),
discrete conoscenze grafiche, infarinatura di c ++
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $nv, $mt, $user, $admin, $banners, $sitename, $slogan, $cookie, $prefix, $user_prefix, $db, $NameOfTheme, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $bgcolor6, $bgcolor7, $textcolor1, $textcolor2, $textcolor3, $textcolor4;
cookiedecode($user);
$username = $cookie[1];
if($username == "") {
$username = "Anonymous";
}
echo "<body text='$textcolor1' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'>\n";
include("themes/$NameOfTheme/style.php");
if($banners == 1) {
include("includes/babanners1.php");
}
$uresult = $db->sql_query("select `user_id` from `".$user_prefix."_users` where `username`='$username'");
list($uid) = $db->sql_fetchrow($uresult);
$presult = $db->sql_query("select * from `".$prefix."_bbprivmsgs` where `privmsgs_to_userid`='$uid' AND (`privmsgs_type`='0' OR `privmsgs_type`='1' OR `privmsgs_type`='3' OR `privmsgs_type`='5')");
$pnumrow = $db->sql_numrows($presult);
if($username == "Anonymous") {
$priv_msgs = "<font class='content'>"._TNOINFOFOR." $username</font>";
} else {
$priv_msgs = "<font class='content'>"._TYOUHAVE." <a href='modules.php?name=Private_Messages'>$pnumrow</a> "._TPRIVATEMSG."</font>";
}
$mresult = $db->sql_query("select * from `".$user_prefix."_users`");
$mnumrow = $db->sql_numrows($mresult);
$members = "<font class='content'>"._TREGUSERS." $mnumrow</font>";
if($username == "Anonymous") {
$theuser = "<a href='modules.php?name=Your_Account&op=new_user'>"._TNEWUSER."</a> / <a href='modules.php?name=Your_Account'>"._TUSERLOGIN."</a>";
} else {
$theuser = ""._THELLO." $username: <a href='modules.php?name=Your_Account&op=logout'>"._TLOGOUT."</a>";
}
include("themes/$NameOfTheme/navbar.php");
echo "<!-- START HEADER.HTML -->\n";
echo "<center><table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'><tr bgcolor='$textcolor4'><td align='center'>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr bgcolor='$bgcolor5'><td width='10%'><img src='themes/$NameOfTheme/images/logo.gif' height='61' width='468' alt=''._TWELCOMETO.' $sitename' border='0'></td>\n";
echo "<td align='right' width='90%'>$babanners1</td></tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr bgcolor='$textcolor1'><td><IMG src='themes/$NameOfTheme/images/pixel.gif' width='1' height='1' alt='' border='0' hspace='0'></td></tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr bgcolor='$bgcolor6' valign='middle'><td align='center' height='20'>";
$public_msg = public_message();
if($public_msg > "") { echo "$public_msg"; } else { echo "$navbar[$nv]"; }
echo "</td></tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr bgcolor='$textcolor1'><td><IMG src='themes/$NameOfTheme/images/pixel.gif' width='1' height='1' alt='' border='0' hspace='0'></td></tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr valign='middle' bgcolor='$bgcolor5'>\n";
echo "<td width='20%' nowrap><font class='content' color='$textcolor1'> $theuser</font></td>\n";
echo "<td align='center' height='20' width='60%'><font class='content'>$priv_msgs</font></td>\n";
echo "<td align='right' width='20%'><font class='content'>$members </font></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0' align='center'>\n";
echo "<tr bgcolor='$textcolor1'><td><IMG src='themes/$NameOfTheme/images/pixel.gif' width='1' height='1' alt='' border='0' hspace='0'></td></tr>\n";
echo "</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>\n";
echo "<tr bgcolor='$textcolor4'><td height='20' align='center'>";
include($mt);
echo "</td></tr>\n";
echo "</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'><tr bgcolor='$textcolor4' valign='top'>\n";
echo "<td bgcolor='$textcolor4' width='180' valign='top'>\n";
echo "<!-- END HEADER.HTML -->\n";
blocks(left);
echo "<!-- START CENTER_LEFT.HTML -->\n";
echo "</td>\n";
echo "<td><img src='themes/$NameOfTheme/images/pixel.gif' width='5' height='1' border='0' alt=''></td>\n";
echo "<td valign='top' width='100%'>\n";
echo "<!-- END CENTER_LEFT.HTML -->\n";
}
Fondatore
Messaggi: 256
Iscritto il: sab ott 11, 2008 11:00 pm
Località: Torremaggiore(Foggia),Italia
Conoscenze Informatiche: Ottime conoscenze del mondo phpnuke, dell'html, php, mysql, css, javascript(Tutto del web!),
discrete conoscenze grafiche, infarinatura di c ++
Visitano il forum: Nessuno e 0 ospiti