Cleanuke, iamma scripts, phpnuke e altro

Menu
Statistiche
[phpBB Debug] PHP Notice: in file /blocks.php on line 18: Undefined variable: title


Nuke 26 Settembre

Nuke 26 Settembre

Altri temi

Donazione

Supporta Clean Nuke e tutti gli altri Iamma Scripts.

Effettua una liberazione donazione, segnalacela, diventerai sottoscritto e potrai accedere all'area per gli Scripts Premium.


Right Bottom
Forums

inserire i blocchi anche su in alto..

Supporto, segnalazione e discussione di temi, moduli, blocchi, addons..ecc. di Phpnuke e derivati.

Moderatore: queen_live78

 

inserire i blocchi anche su in alto..

Messaggioda nonsoloprogrammi » lun ott 12, 2009 3:20 pm

ciao a tutti e anche a matteo;
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....
Avatar utente
nonsoloprogrammi
Affezionato
Affezionato
 
Messaggi: 15
Iscritto il: mar apr 21, 2009 11:00 pm
 

 

Re: inserire i blocchi anche su in alto..

Messaggioda matteoiamma » lun ott 12, 2009 3:26 pm

Ciao filippo,
dunque,
per prima cosa postaci l'intera funzione themeheader del file theme.php del tema che utilizzi.

Mi serve, perchè ti devo indicare dove devi inserire esattamente questo codice:

Codice: Seleziona tutto
$boxContent = 'Qui inserisci il contenuto html o testuale del blocco';
themesidebox("Titolo Blocco", $boxContent);
Avatar utente
matteoiamma
Fondatore
Fondatore
 
Messaggi: 283
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 ++
 

 

Re: inserire i blocchi anche su in alto..

Messaggioda nonsoloprogrammi » lun ott 12, 2009 3:35 pm

ciao matteo ecco
Codice: Seleziona tutto
/* 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'>&nbsp;&nbsp;$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&nbsp;&nbsp;</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";
}
     




grazie
Ultima modifica di nonsoloprogrammi il lun ott 12, 2009 4:07 pm, modificato 1 volta in totale.
Avatar utente
nonsoloprogrammi
Affezionato
Affezionato
 
Messaggi: 15
Iscritto il: mar apr 21, 2009 11:00 pm
 

 

Re: inserire i blocchi anche su in alto..

Messaggioda matteoiamma » lun ott 12, 2009 4:02 pm

Ciao,
devi postarmi la funzione themeheader, non la funzione themefooter!!
Avatar utente
matteoiamma
Fondatore
Fondatore
 
Messaggi: 283
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 ++
 

 

Re: inserire i blocchi anche su in alto..

Messaggioda nonsoloprogrammi » lun ott 12, 2009 4:08 pm

fatto lo corretto
Avatar utente
nonsoloprogrammi
Affezionato
Affezionato
 
Messaggi: 15
Iscritto il: mar apr 21, 2009 11:00 pm
 

Prossimo

Torna a Php Nuke

Chi c’è in linea

Visitano il forum: Nessuno e 0 ospiti

Forums Bottom
cron