TSmenu

Attualmente in www.tuttosoft.it è stata caricata la versione del nuke 7.9 TS sono presenti la bellezza di 78 categorie e 713 downloads       Utenti registrati:  13486    Admin del sito sono: 1  Ultimi 5 Utenti registrati :    208ferro    Pascuzzu    joigue    Nat4n    fausto93

Fai Una Donazione

Siti Amici

©

Pubblicità

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

Tuttosoft.it Php Nuke Italian Community: Forums

TUTTOSOFT :: Leggi il Topic - Far vedere o nascondere i blocchi di destra 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 

Far vedere o nascondere i blocchi di destra

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


Registrato: Nov 18, 2007
Messaggi: 176

MessaggioInviato: Gio Giu 05, 2008 2:35 pm    Oggetto: Far vedere o nascondere i blocchi di destra Rispondi citando

Quanto segue riguarda le versioni cn Patch e WL Nuke ma potete trovare spunti anche con tutte le versioni superiori alla 76 patch


Quando i blocchi di destra non si vedono nell'intero sito la soluzione è aprire il file theme.php che si trova nella cartella del tema scelto che è nella cartella themes cercare la riga dove scrive
Codice:
function themefooter() {


e cercare in quella funziona le riga dove viene scritto

Codice:
if ($index == 1) {


cancellate questa riga e al posto di quella scrivete

Codice:
if (defined('INDEX_FILE')) {


questo è per quanto riguarda il sito ora andiamo nello specifico eliminare i blocchi di sinistra dai moduli apriamo sempre il nostro file theme.php e andiano alla riga function themeheader ora in qeusta funzione sotto troveremo una riga che inizia con global e con vicino delle variabili che potrebbero esserePER ESEMPIO global $banners, $sitename; ora noi nella global aggiungiamo un altra variabile di nome $name sempre rispettando al sintassi ora cerchiamo la riga con scritto blocks("left"); quella è la riga che mette i blocchi a sinistra in ogni pagina ora noi l'andremo a modificare così cacellate la riga blocks(left); e incollate questo codice sottostante

Codice:
if ($name=='nomemodulo') {}
else {
blocks(left);
}


ok quindi per far sparire da un modulo i blocchi di sinistra ora dove vedete nomemodulo dovete mettere il nome del modulo interessato che ne so per esempio Forum, Private message, Download se invece volete togliere quei blocchi a più di 1 modulo dovete mettere questo codice

Codice:
if ($name=='nomemodulo1') {}
elseif ($name=='nomemodulo2') {}
elseif ($name=='nomemodulo3') {}
elseif ($name=='nomemodulo4') {}
else {
blocks(left);
}


coì dove vedete nomemodulo 1,2,3,4 mettete il nome del modulo dove non deve comparire la colonna di sinistra e il giuoco è fatto.

Passiamo ora a vedere/togliere i blocchi di detsra dentro i moduli come si fa? Nelle versioni non patch basta cercare questa variabili che è nelle prime righe del modulo

Codice:
$index = 0;


e settarla a 1

per chi usa una versione patch deve togliere quella riga e sostituirla con

Codice:
define('INDEX_FILE', false);


mettendola a false se vuole vedere i blocchi e a true se non vuole vederli


Spero che con questa guida tutti possiate risolvereil vostro problema senza dire che non avete trovato nulla sul forum Wink per ogni aggiunta o correzione contattatemi via PM ma solo per correzioni e spero che i blocchi di destra e sinistra siano con te Laughing
Torna in cima
Profilo Messaggio privato HomePage
Corocael
Nuovo del Forum
Nuovo del Forum


Registrato: May 29, 2008
Messaggi: 17

MessaggioInviato: Gio Giu 05, 2008 2:47 pm    Oggetto: Rispondi citando

Ho provato ma nulla, forse sbaglio il modulo, il percorso quale è ( interrogativo)
Torna in cima
Profilo Messaggio privato
queen_live78
Amministratore
Amministratore


Registrato: Nov 10, 2006
Messaggi: 2457
Località: Cagliari (CA) - Maniago (PN)

MessaggioInviato: Gio Giu 05, 2008 9:05 pm    Oggetto: Rispondi citando

Corocael ha scritto:
Ho provato ma nulla, forse sbaglio il modulo, il percorso quale è ( interrogativo)



Sbagli modulo ? penso che Alexthemaster sia stato molto chiaro ! chi ha parlato di modulo ?
Torna in cima
Profilo Messaggio privato HomePage
bozzato
Allievo
Allievo


Registrato: Aug 20, 2008
Messaggi: 36

MessaggioInviato: Sab Mag 09, 2009 2:31 pm    Oggetto: Rispondi citando

questo allora cm dovrei modificarlo x nn vedere nessuna colonna mentre sono nel forum?

Codice:
<?php

/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS!                    */
/*                                                          */
/* When you start coding your theme, if you want to         */
/* distribute it, please double check it to fit the HTML    */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org                       */
/* If you don't know where to start with your theme, just   */
/* start modifying this theme, it's validate and is cool ;) */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#18202C";
$bgcolor2 = "#000000"; // Contour Cadre
$bgcolor3 = "#FF3333";
$bgcolor4 = "#666666";
$textcolor1 = "#FFFFFF"; // Textes dans les cadres
$textcolor2 = "#FFFFFF"; // Titres dans les cadres

include("themes/Kiowa_UT/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body bgcolor=\"#505050\" text=\"#FFFFFF\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" background=\"themes/Kiowa_UT/images/fonds.gif\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
    if ($banners == 1) {
   include("banners.php");}

    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
   $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
   $sel = "";
    }
    if ($username == "Anonymous") {
   $theuser = "  <a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
   $theuser = "  Hey $username!";
    }
    $tmpl_file = "themes/Kiowa_UT/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/Kiowa_UT/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;

   $tmpl_file = "themes/Kiowa_UT/center_right.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
   blocks(right);

    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/Kiowa_UT/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/Kiowa_UT/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/Kiowa_UT/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/Kiowa_UT/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>
Torna in cima
Profilo Messaggio privato
queen_live78
Amministratore
Amministratore


Registrato: Nov 10, 2006
Messaggi: 2457
Località: Cagliari (CA) - Maniago (PN)

MessaggioInviato: Sab Mag 09, 2009 2:56 pm    Oggetto: Rispondi citando

Ma hai letto sopra ? Shocked
_________________

Torna in cima
Profilo Messaggio privato HomePage
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