TSmenu

Attualmente in www.tuttosoft.it è stata caricata la versione del nuke 7.9 TS sono presenti la bellezza di 78 categorie e 711 downloads       Utenti registrati:  13125    Admin del sito sono: 1  Ultimi 5 Utenti registrati :    mas78    fpic    vivmar    SOR77    zicky74

Ts Stats 1.0

Utenti :13075        ©   

Fai Una Donazione

Ultimi Inserimenti
Ultimi 20 file Inseriti in Ts Gallery




























































Site Approved

Pubblicità

Ts Gallery
Varie


Ultimi Posts
Ultimi 15 Messaggi nei Forums

Compatibilità PhpNuke e Chrome
Ultimo messaggio di red il 07-09-2010 alle 15:04:29

Ragazzi serve una mano sostenete la community ...
Ultimo messaggio di queen_live78 il 07-09-2010 alle 13:20:06

Versione Php Nuke piu recente e sicura?
Ultimo messaggio di pinuke il 03-09-2010 alle 14:10:33

tasti condividi su
Ultimo messaggio di pinuke il 03-09-2010 alle 09:20:11

Spam creazione utenti
Ultimo messaggio di queen_live78 il 24-08-2010 alle 23:39:33

Inserire un nuovo pulsante nel menu
Ultimo messaggio di queen_live78 il 24-08-2010 alle 01:57:16

Inserire OFF-line PHP-nuke
Ultimo messaggio di queen_live78 il 17-08-2010 alle 09:53:51

Errore di Codifica del contenuto con Mozilla Firefox
Ultimo messaggio di queen_live78 il 17-08-2010 alle 09:51:29

dynamics title
Ultimo messaggio di Dino il 07-08-2010 alle 22:05:37

Jeegoo
Ultimo messaggio di nonsoloprogrammi il 01-08-2010 alle 19:33:36

Script o modulo
Ultimo messaggio di queen_live78 il 25-07-2010 alle 01:11:39

Problemi con Javascript nei Contenuti di PHP nuke
Ultimo messaggio di Destino il 24-07-2010 alle 14:42:41

sfondo "contenuto"
Ultimo messaggio di omniasoft il 19-07-2010 alle 20:20:04

Problema TS MENU
Ultimo messaggio di queen_live78 il 12-07-2010 alle 05:20:02

Menu verticale CSS
Ultimo messaggio di Dark_Side il 11-07-2010 alle 20:07:39


[ Tuttosoft.it Php Nuke Italian Community ]
Pubblicità

Pubblicità

Ts Tags Ver 1.0
Installare Lamp su Ubuntu Linux LGNuke 2.0.0RC Mascherare Mac-Address con Linux No Spam Attack 3.1 Blocchi Donazione IP Remote Changer Sottoscriviti Ts Menu 5.3 Moduli Installare Cairo-Dock su Ubuntu Linux a 64bit Nuke Sentinel 2.6.01 Nukelive 1.0 Giovannib Php Nuke Generatore Numeri casuale Notepad ++ Avatars Nuke Numbers 1.0 PageRank 5 Più comandi in uno unico con Linux da terminale Mappa sito Cambiare Ip da remoto Staff del sito Fonts Forum phbb3 V 3.0.4 Ts Contacts Queen_live78 Gnu License vea83inc Pilia Federico Proxy su Linux Ubuntu Trucchi Nuke Oracle su Linux Weblord Forums Php Nuke OpenId 0.3 new Alexthemaster Configurare la scheda di rete da terminale con Ubuntu Addons Splatt Chat 0.8.29 Ts Gallery Matteoiamma Virit Antivirus Directory Ranks Forum Karmik koala Temi PhpBB Sitemap Serpe76 Ubuntu 9.10 Slaybook 1.2.1 Banners Tuttosoft Temi Phpnuke

Tuttosoft.it Php Nuke Italian Community: Forums

TUTTOSOFT :: Leggi il Topic - modifica al tema lightnuke Benvenuti nel Forum di tuttosoft.it , per qualsiasi problema postate pure nel forum vi verrà data una risposta entro le 24 ore dal momento del Post. Buona Navigazione
 FAQFAQ   CercaCerca   Gruppi utentiGruppi utenti   ProfiloProfilo   Messaggi PrivatiMessaggi Privati   LoginLogin 

modifica al tema lightnuke

 
Nuovo Topic   Rispondi    Indice del forum -> Temi PHP-Nuke
Precedente :: Successivo  
Autore Messaggio
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 325
Località: guardia sanframondi

MessaggioInviato: Lun Gen 25, 2010 2:57 pm    Oggetto: modifica al tema lightnuke Rispondi citando

Ciao ragazzi dovrei fare un altra modifica ad un altro tema (quello di matteo che mi piace molto) devo metere sempre lo stesso menu...
che si trova qua http://www.nonsoloprogrammi.it/55.zip
pero con il tema lightnuke
posto il file theme.php

Codice:
<?php
//Theme Name: Lightnuke
//Testato su Phpnuke 7.6, WL Nuke 1.1 e Nuke Evolution 2.0.7 BASIC.
//Autore tema. matteoiamma
//SIto web: http://www.matteoiammarrone.com


$theme_name = basename(dirname(__FILE__));


$bgcolor1 = "#F8F8F8";
$bgcolor2 = "#F8F8F8";
$bgcolor3 = "#EAEAEA";
$bgcolor4 = "#F8F8F8";
$textcolor1 = "#000000";
$textcolor2 = "#455995";




   if (is_active("Forums")){
   $forum_url="Forums";
   $okforum=1;
   } elseif (is_active("Blizard")){
   $forum_url="Blizard";
   $okforum=1;
   } elseif (is_active("phpBB3")){
   $forum_url="phpBB3";
   $okforum=1;
   } else {
   $okforum=0;
   }

echo '<script type="text/javascript" src="themes/lightnuke/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="themes/lightnuke/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" src="themes/lightnuke/jquery-mdd.js"></script>';

 echo "<script type=\"text/javascript\" src=\"themes/$theme_name/forums/fading.js\"></script>";


function OpenTable() {
   global $bgcolor1, $bgcolor2;
   echo "<table class=\"forumline\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
    echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
   echo "<tr>";
   echo "<td>";
}

function CloseTable() {
   echo "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
   echo "</td></tr></table>";

}

function OpenTable2() {
   global $bgcolor1, $bgcolor2;
   echo "<table class=\"forumline\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
    echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
   echo "<tr>";
   echo "<td>";
}

function CloseTable2() {
   echo "</td></tr></table></td></tr></table></td></tr></table></td></tr></table>";
   echo "</td></tr></table>";

}

/************************************************************/
/* Format Stories                                          */
/************************************************************/

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> $notes\n";
   } else {
   $notes = "";
   }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
   } else {
   if($informant != "") {
       $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&amp;username=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES.": $thetext $notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
   }
   }

function themeheader() {
   global  $sitename, $admin, $index, $user, $cookie, $user_prefix, $userinfo, $prefix, $db, $banners, $Version_Num, $theme_name, $module_name, $forum_url, $okforum;


         if ($banners == 1) {
            $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));

            if ($numrows>1) {
               $numrows = $numrows-1;
               mt_srand((double)microtime()*1000000);
               $bannum = mt_rand(0, $numrows);
            } else {
               $bannum = 0;
            }

            $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
            $result = $db->sql_query($sql);
            $row = $db->sql_fetchrow($result);
            $bid = $row[bid];
            $imageurl = $row[imageurl];
            $clickurl = $row[clickurl];
            $alttext = $row[alttext];

            if (!is_admin($admin)) {
               $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
            }

            if($numrows>0) {
               $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
               $result2 = $db->sql_query($sql2);
               $row2 = $db->sql_fetchrow($result2);
               $cid = $row2[cid];
               $imptotal = $row2[imptotal];
               $impmade = $row2[impmade];
               $clicks = $row2[clicks];
               $date = $row2[date];

               if (($imptotal <= $impmade) AND ($imptotal != 0)) {
                  $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
                  $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
                  $result3 = $db->sql_query($sql3);
                  $row3 = $db->sql_fetchrow($result3);
                  $c_name = $row3[name];
                  $c_contact = $row3[contact];
                  $c_email = $row3[email];

                  if ($c_email != "") {
                     $from = "$sitename <$adminmail>";
                     $to = "$c_contact <$c_email>";
                     $message = ""._HELLO." $c_contact:\n\n";
                     $message .= ""._THISISAUTOMATED."\n\n";
                     $message .= ""._THERESULTS."\n\n";
                     $message .= ""._TOTALIMPRESSIONS." $imptotal\n";
                     $message .= ""._CLICKSRECEIVED." $clicks\n";
                     $message .= ""._IMAGEURL." $imageurl\n";
                     $message .= ""._CLICKURL." $clickurl\n";
                     $message .= ""._ALTERNATETEXT." $alttext\n\n";
                     $message .= ""._HOPEYOULIKED."\n\n";
                     $message .= ""._THANKSUPPORT."\n\n";
                     $message .= "- $sitename "._TEAM."\n";
                     $message .= "$nukeurl";
                     $subject = "$sitename: "._BANNERSFINNISHED."";
                     mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
                  }
               }

               $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" alt='$alttext' title='$alttext'></a> ";
            }
         }



    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }

    if ($username == "Anonymous") {
   $theuser = "<a href=\"account.html\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
   $theuser = "<font color=\"#455995\"><b>"._BWEL."</b></font> $username!";
    }




   $datetime = "<script type=\"text/javascript\">\n\n";
   $datetime .= "<!--   // Array ofmonth Names\n";
   $datetime .= "var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n";
   $datetime .= "var now = new Date();\n";
   $datetime .= "thisYear = now.getYear();\n";
   $datetime .= "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n";
   $datetime .= "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n";
   $datetime .= "// -->\n\n";
   $datetime .= "</script>";

//   $public_msg = public_message();

   echo "<table id=\"forum\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   echo "<tr>";
   echo "<td class=\"forum-header\" align=\"center\" valign=\"top\">";
   echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   echo "<tr>";
   echo "<td width=\"60%\" height=\"80\" align='center'><center><a href=\"index.php\"><img src=\"themes/$theme_name/images/logo.png\" title=\"$sitename\"></a></center></td>";
   echo "<td width=\"40%\" style=\"PADDING-right: 2px\" height=\"80\">$showbanners</td>";
   echo "</tr></table>";
   echo "<table height=\"20\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td align=\"center\" class=\"forum-buttons\">";

?>

<div>
<ul id="nav">
<li>
    <h2><a href="index.php" <?php if (defined("INDEX")){ echo 'class="selected"'; } ?>><font size="3">Home</font></a></h2>
</li>
<li>
<?php if (is_user($user)){ ?>
   <h2><a href="modules.php?name=Your_Account" <?php if ($module_name == "Your_Account"){ echo 'class="selected"'; } ?>><font size="3">Profilo</font></a></h2>
   <?php } else { ?>
      <h2><a href="modules.php?name=Your_Account" <?php if ($module_name == "Your_Account"){ echo 'class="selected"'; } ?>><font size="3">Registrati/Login</font></a></h2>
   <?php }


   ?>
<?php if ($okforum == 1){ ?>
<li>
   <h2><a href="modules.php?name=<?php echo $forum_url; ?>" <?php if ($module_name == "modules.php?name=$forum_url"){ echo 'class="selected"'; } ?>><font size="3">Forum</font></a></h2>

</li>
 <?php }
 if (is_active("Downloads")){
 ?>
<li>
    <h2><a href="modules.php?name=Downloads" <?php if ($module_name == "Downloads"){ echo 'class="selected"'; } ?>><font size="3">Downloads</font></a></h2>
</li>
<?php } if (is_active("News")) ?>
<li>
   <h2><a href="modules.php?name=News" <?php if (($module_name == "News") and (!defined("INDEX"))){ echo 'class="selected"'; } ?>><font size="3">News</font></a></h2>

</li>
<?php
   echo "</td>";
echo "</tr></table>";
   echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">";
   echo "<tr valign=\"top\">";
   echo "<td>$public_msg</td>";
   echo "</tr></table>";
   echo "<table width=\"100%\" cellpadding=\"4\" cellspacing=\"0\" border=\"0\" align=\"center\">";
   echo "<tr>";
   echo "<td valign=\"top\">";
        blocks('left');
   echo"</td><td valign=\"top\" width=\"100%\">";
    ?>
   <CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!--
{
document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://www.nonsoloprogrammi.it/banner.js'><\/SCRIPT>");
}
// -->
</SCRIPT>
</CENTER>
<?php
}

function themefooter() {
   global $index, $foot1, $foot2, $foot3, $foot4, $total_time, $start_time, $footer_message;
    if (!defined('ADMIN_FILE')) {
   echo"</td><td valign=\"top\" width=\"170\">";
   blocks(right);
    }
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4<br>";
    $mtime = microtime();
    $mtime = explode(" ",$mtime);
    $mtime = $mtime[1] + $mtime[0];
    $end_time = $mtime;
    $total_time = ($end_time - $start_time);
    $total_time = "".substr($total_time,0,5)."";

   echo "</td></tr></table>\n";
   //echo "$footer_message\n";

   echo "<table cellSpacing=\"0\" cellPadding=\"2\" width=\"100%\" border=\"0\">";
   echo "<tr><td id=\"copyright\" width=\"25%\" align=\"left\">Powered by: <a target=\"_blank\" href=\"http://phpnuke.org\">PHP-Nuke</a> &copy; - 2006";
   echo "</td>";
   echo "<td width=\"50%\" id=\"copyright\" align=\"center\">Design by <a href=\"http://www.matteoiammarrone.com\" target=\"_blank\">matteoiamma</a> </td>";
   echo "<td width=\"25%\" id=\"copyright\" align=\"right\">";
   echo "Pagina generata in: $total_time secondi</td></tr></table>";
   echo "<div style=\"font-size: xx-small;\" align=\"center\">\n";
echo footmsg();
echo "</div>";

}


   function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
   global $anonymous, $tipath, $sitename;

   $ThemeSel = get_theme();
   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
   } else {
   $t_image = "$tipath$topicimage";
   }

   echo "<table class=\"forumline\" border=\"0\" cellspacing=\"0\" width=\"100%\" cellpadding=\"3\"><tr>";
   echo "<td class=\"row-header\"><span>$title</span></td>";
   echo "<tr>";
   echo "<td><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
   echo "<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
   echo "<tr><td>";
       echo "<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$t_image\" alt=\"$topictext\" hspace=\"10\" vspace=\"10\" align=\"left\"></a>";
      FormatStory($thetext, $notes, $aid, $informant);
   echo "</td></tr></table></td></tr></table>";
   echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
   echo "<td id=\"news-footer\">";
   echo ""._POSTEDBY.": <a href=\"modules.php?name=Your_Account&op=userinfo&amp;username=$informant\"><b>$informant</b></a> ";
   echo ""._ON." $time $timezone";
   echo "</td>";
   echo "<td id=\"news-footer\" align=\"right\" >$morelink</td></tr></table></td></tr></table>\n";
}


function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
   global $admin, $sid, $tipath;
   $ThemeSel = get_theme();
   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
   } else {
   $t_image = "$tipath$topicimage";
   }

   echo "<table class=\"forumline\" border=\"0\" cellspacing=\"0\" width=\"100%\" cellpadding=\"3\"><tr>";
   echo "<td class=\"row-header\"><span>$title</span></td>";
   echo "<tr>";
   echo "<td><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
   echo "<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
   echo "<tr><td>";
       echo "<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$t_image\" alt=\"$topictext\" hspace=\"10\" vspace=\"10\" align=\"left\"></a>";
      FormatStory($thetext, $notes, $aid, $informant);
   echo "</td></tr></table></td></tr></table>";
   echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
   echo "<td height=\"22\" id=\"news-footer\">"._POSTEDBY.": <b>";
      formatAidHeader($aid);
   echo "</b> "._ON." $datetime</td>";
   echo "<td id=\"news-footer\" align=\"right\" >$morelink</td></tr></table></td></tr></table>\n";
}



function themesidebox($title, $content) {
   echo "<table border=\"0\" class=\"forumline\" cellspacing=\"0\" width=\"170\" cellpadding=\"3\"><tr>";
   echo "<td class=\"title_block\" width=\"100%\">";
   echo "<span>$title</span>";
   echo "</td></tr>";
   echo "<tr><td class=\"row1\" width=\"170\">$content";
   echo "</td></tr></table>";
   }
?>

_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
matteoiamma
Moderatore
Moderatore


Registrato: May 17, 2008
Messaggi: 493
Località: Torremaggiore(Foggia)

MessaggioInviato: Lun Gen 25, 2010 3:03 pm    Oggetto: Rispondi citando

Ciao, sostituisci la funzione themeheader e la funzione themefooter con questo code:

Codice:
function themeheader() {
   global  $sitename, $admin, $index, $user, $cookie, $user_prefix, $userinfo, $prefix, $db, $banners, $Version_Num, $theme_name, $module_name, $forum_url, $okforum;

echo "<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\n";
?>
<link rel="stylesheet" href="fancydropdown.css">
<div id="menu">
<ul class="tabs">
   <li><h4><a href="#">In the blog &raquo;</a></h4></li>
   <li class="hasmore"><a href="#"><span>Recent</span></a>
      <ul class="dropdown">
         <li><a href="#">Menu item 1</a></li>
         <li><a href="#">Menu item 2</a></li>
         <li><a href="#">Menu item 3</a></li>
         <li><a href="#">Menu item 4</a></li>
         <li><a href="#">Menu item 5</a></li>
         <li class="last"><a href="#">Menu item 6</a></li>
      </ul>
   </li>
   <li class="hasmore"><a href="#"><span>Topics</span></a>
      <ul class="dropdown">
         <li><a href="#">Topic 1</a></li>
         <li><a href="#">Topic 2</a></li>
         <li><a href="#">Topic 3</a></li>
         <li class="last"><a href="#">Topic 4</a></li>
      </ul>
   </li>
   <li><a href="#"><span><strong><img src="images/feed-icon-14x14.png" width="14" height="14" alt="RSS"> Subscribe to RSS</strong></span></a></li>
   <li><h4><a href="#">Elsewhere &raquo;</a></h4></li>
   <li><a href="#"><span>About</span></a></li>
   <li class="hasmore"><a href="/about/#networks"><span>Networks</span></a>
      <ul class="dropdown">
         <li><a href="#">Twitter</a></li>
         <li><a href="#">posterous</a></li>
         <li><a href="#">SpeakerSite</a></li>
         <li><a href="#">LinkedIn</a></li>
         <li class="last"><a href="#">See more&hellip;</a></li>
      </ul>
   </li>
   <li><a href="#"><span>Bookmarks</span></a></li>
</ul>
</div>
<script type="text/javascript" src="fancydropdown.js"></script>

<?php

         if ($banners == 1) {
            $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));

            if ($numrows>1) {
               $numrows = $numrows-1;
               mt_srand((double)microtime()*1000000);
               $bannum = mt_rand(0, $numrows);
            } else {
               $bannum = 0;
            }

            $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
            $result = $db->sql_query($sql);
            $row = $db->sql_fetchrow($result);
            $bid = $row[bid];
            $imageurl = $row[imageurl];
            $clickurl = $row[clickurl];
            $alttext = $row[alttext];

            if (!is_admin($admin)) {
               $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
            }

            if($numrows>0) {
               $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
               $result2 = $db->sql_query($sql2);
               $row2 = $db->sql_fetchrow($result2);
               $cid = $row2[cid];
               $imptotal = $row2[imptotal];
               $impmade = $row2[impmade];
               $clicks = $row2[clicks];
               $date = $row2[date];

               if (($imptotal <= $impmade) AND ($imptotal != 0)) {
                  $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
                  $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
                  $result3 = $db->sql_query($sql3);
                  $row3 = $db->sql_fetchrow($result3);
                  $c_name = $row3[name];
                  $c_contact = $row3[contact];
                  $c_email = $row3[email];

                  if ($c_email != "") {
                     $from = "$sitename <$adminmail>";
                     $to = "$c_contact <$c_email>";
                     $message = ""._HELLO." $c_contact:\n\n";
                     $message .= ""._THISISAUTOMATED."\n\n";
                     $message .= ""._THERESULTS."\n\n";
                     $message .= ""._TOTALIMPRESSIONS." $imptotal\n";
                     $message .= ""._CLICKSRECEIVED." $clicks\n";
                     $message .= ""._IMAGEURL." $imageurl\n";
                     $message .= ""._CLICKURL." $clickurl\n";
                     $message .= ""._ALTERNATETEXT." $alttext\n\n";
                     $message .= ""._HOPEYOULIKED."\n\n";
                     $message .= ""._THANKSUPPORT."\n\n";
                     $message .= "- $sitename "._TEAM."\n";
                     $message .= "$nukeurl";
                     $subject = "$sitename: "._BANNERSFINNISHED."";
                     mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
                  }
               }

               $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" alt='$alttext' title='$alttext'></a> ";
            }
         }



    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }

    if ($username == "Anonymous") {
   $theuser = "<a href=\"account.html\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
   $theuser = "<font color=\"#455995\"><b>"._BWEL."</b></font> $username!";
    }




   $datetime = "<script type=\"text/javascript\">\n\n";
   $datetime .= "<!--   // Array ofmonth Names\n";
   $datetime .= "var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n";
   $datetime .= "var now = new Date();\n";
   $datetime .= "thisYear = now.getYear();\n";
   $datetime .= "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n";
   $datetime .= "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n";
   $datetime .= "// -->\n\n";
   $datetime .= "</script>";

//   $public_msg = public_message();

   echo "<table id=\"forum\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   echo "<tr>";
   echo "<td class=\"forum-header\" align=\"center\" valign=\"top\">";
   echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
   echo "<tr>";
   echo "<td width=\"60%\" height=\"80\" align='center'><center><a href=\"index.php\"><img src=\"themes/$theme_name/images/logo.png\" title=\"$sitename\"></a></center></td>";
   echo "<td width=\"40%\" style=\"PADDING-right: 2px\" height=\"80\">$showbanners</td>";
   echo "</tr></table>";
   echo "<table height=\"20\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
   echo "<tr>";
   echo "<td align=\"center\" class=\"forum-buttons\">";

?>

<div>
<ul id="nav">
<li>
    <h2><a href="index.php" <?php if (defined("INDEX")){ echo 'class="selected"'; } ?>><font size="3">Home</font></a></h2>
</li>
<li>
<?php if (is_user($user)){ ?>
   <h2><a href="modules.php?name=Your_Account" <?php if ($module_name == "Your_Account"){ echo 'class="selected"'; } ?>><font size="3">Profilo</font></a></h2>
   <?php } else { ?>
      <h2><a href="modules.php?name=Your_Account" <?php if ($module_name == "Your_Account"){ echo 'class="selected"'; } ?>><font size="3">Registrati/Login</font></a></h2>
   <?php }


   ?>
<?php if ($okforum == 1){ ?>
<li>
   <h2><a href="modules.php?name=<?php echo $forum_url; ?>" <?php if ($module_name == "modules.php?name=$forum_url"){ echo 'class="selected"'; } ?>><font size="3">Forum</font></a></h2>

</li>
 <?php }
 if (is_active("Downloads")){
 ?>
<li>
    <h2><a href="modules.php?name=Downloads" <?php if ($module_name == "Downloads"){ echo 'class="selected"'; } ?>><font size="3">Downloads</font></a></h2>
</li>
<?php } if (is_active("News")) ?>
<li>
   <h2><a href="modules.php?name=News" <?php if (($module_name == "News") and (!defined("INDEX"))){ echo 'class="selected"'; } ?>><font size="3">News</font></a></h2>

</li>
<?php
   echo "</td>";
echo "</tr></table>";
   echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">";
   echo "<tr valign=\"top\">";
   echo "<td>$public_msg</td>";
   echo "</tr></table>";
   echo "<table width=\"100%\" cellpadding=\"4\" cellspacing=\"0\" border=\"0\" align=\"center\">";
   echo "<tr>";
   echo "<td valign=\"top\">";
        blocks('left');
   echo"</td><td valign=\"top\" width=\"100%\">";
    ?>
   <CENTER>
<SCRIPT LANGUAGE="JavaScript">
<!--
{
document.write("<SCRIPT LANGUAGE='JavaScript' SRC='http://www.nonsoloprogrammi.it/banner.js'><\/SCRIPT>");
}
// -->
</SCRIPT>
</CENTER>
<?php
}
 

function themefooter() {
   global $index, $foot1, $foot2, $foot3, $foot4, $total_time, $start_time, $footer_message;
    if (!defined('ADMIN_FILE')) {
   echo"</td><td valign=\"top\" width=\"170\">";
   blocks(right);
    }
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4<br>";
    $mtime = microtime();
    $mtime = explode(" ",$mtime);
    $mtime = $mtime[1] + $mtime[0];
    $end_time = $mtime;
    $total_time = ($end_time - $start_time);
    $total_time = "".substr($total_time,0,5)."";

   echo "</td></tr></table>\n";
   //echo "$footer_message\n";

   echo "<table cellSpacing=\"0\" cellPadding=\"2\" width=\"100%\" border=\"0\">";
   echo "<tr><td id=\"copyright\" width=\"25%\" align=\"left\">Powered by: <a target=\"_blank\" href=\"http://phpnuke.org\">PHP-Nuke</a> &copy; - 2006";
   echo "</td>";
   echo "<td width=\"50%\" id=\"copyright\" align=\"center\">Design by <a href=\"http://www.matteoiammarrone.com\" target=\"_blank\">matteoiamma</a> </td>";
   echo "<td width=\"25%\" id=\"copyright\" align=\"right\">";
   echo "Pagina generata in: $total_time secondi</td></tr></table>";
   echo "<div style=\"font-size: xx-small;\" align=\"center\">\n";
echo footmsg();
echo "</div>";

}

 

_________________
Non inviatemi messaggi privati o email,
gratis aiuto solo sui forum.
<a href="http://www.mondophpnuke">MONDOPHPNUKE.COM</a>
<a href="http://www.matteoiammarrone.com">MATTEOIAMMARRONE.COM</a>
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
matteoiamma
Moderatore
Moderatore


Registrato: May 17, 2008
Messaggi: 493
Località: Torremaggiore(Foggia)

MessaggioInviato: Lun Gen 25, 2010 4:05 pm    Oggetto: Rispondi citando

Aggiungi questo code alla fine del file style/style.css:


Codice:


*
{
   margin: 0;
   padding: 0;
}



ul.tabs
{
   display: table;
   margin: 0;
   padding: 0;
   list-style: none;
   position: relative;
}

ul.tabs li
{
   margin: 0;
   padding: 0;
   list-style: none;
   display: table-cell;
   float: left;
   position: relative;
}

ul.tabs a
{
   position: relative;
   display: block;
}

/* dropdowns
*************************/

ul.dropdown
{
   margin: 0;
   padding: 0;
   display: block;
   position: absolute;
   z-index: 999;
   top: 100%;
   width: 250px;
   display: none;
   left: 0;
}

ul.dropdown ul.dropdown
{
   top: 0;
   left: 95%;
}

ul.dropdown li
{
   margin: 0;
   padding: 0;
   float: none;
   position: relative;
   list-style: none;
   display: block;
}

ul.dropdown li a
{
   display: block;
}


/* menu-specifc
*************************/

#menu
{
   position: fixed;
   z-index: 5;
   top: 0;
   left: 0;
   width: 100%;
   height: 40px;
   line-height: 40px;
   background: #ffb35a url(../images/topbg.gif) repeat-x;
   border-bottom: 1px solid #000;
}

#menu ul
{
   margin: 0 auto;
}

#menu ul li.hasmore
{
   background: url(../images/drophighlight.png) no-repeat center 27px;
}

#menu ul li h4
{
   margin: 0;
}

#menu ul li h4 a
{
   font-size: 14px;
   color: #000;
   font-weight: bold;
   padding: 0 15px;
}

#menu ul li a
{
   color: #9b2021;
   padding-left: 4px;
}

#menu ul li a img
{
   vertical-align: middle;
}

#menu ul li a:hover
{
   background: url(../images/topselectionleft.png) top left no-repeat;
}

#menu ul li a span
{
   display: block;
   padding: 0 15px 0 11px;
}

#menu ul li a:hover span
{
   background: url(../images/topselectionright.png) top right;
}

#menu ul.dropdown
{
   padding: 10px;
   background-image: url(../images/dropdown.png);
   overflow:hidden;
   border-bottom: 1px solid #dc902f;
   width: 290px;
}

#menu ul.dropdown li a
{
   border-bottom: 1px solid #e5cd8e;
   line-height: 30px;
   overflow: hidden;
   height: 30px;
}

#menu ul.dropdown li.last a
{
   border-bottom-width: 0;
}

#menu ul.dropdown li a:hover
{
   background: url(../images/menuarrow.png) no-repeat left center;
}

#menu ul li h4 a:hover
{
   background-image: none;
}

_________________
Non inviatemi messaggi privati o email,
gratis aiuto solo sui forum.
<a href="http://www.mondophpnuke">MONDOPHPNUKE.COM</a>
<a href="http://www.matteoiammarrone.com">MATTEOIAMMARRONE.COM</a>
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 325
Località: guardia sanframondi

MessaggioInviato: Lun Gen 25, 2010 5:50 pm    Oggetto: Rispondi citando

Niente matteo non va... Ma una soluzione deve essistere....
Perchè a tutto c'e un rimedio....
_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
Mostra prima i messaggi di:   
Nuovo Topic   Rispondi    Indice del forum -> Temi PHP-Nuke Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum

Powered by phpBB © 2001, 2005 phpBB Group
Tema Creato da Queen_live78 © 2007