| Precedente :: Successivo |
| Autore |
Messaggio |
alexthemaster Moderatore


Registrato: Nov 18, 2007 Messaggi: 176
|
Inviato: Gio Giu 05, 2008 2:35 pm Oggetto: Far vedere o nascondere i blocchi di destra |
|
|
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
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 per ogni aggiunta o correzione contattatemi via PM ma solo per correzioni e spero che i blocchi di destra e sinistra siano con te  |
|
| Torna in cima |
|
 |
Corocael Nuovo del Forum


Registrato: May 29, 2008 Messaggi: 17
|
Inviato: Gio Giu 05, 2008 2:47 pm Oggetto: |
|
|
| Ho provato ma nulla, forse sbaglio il modulo, il percorso quale è ( interrogativo) |
|
| Torna in cima |
|
 |
queen_live78 Amministratore


Registrato: Nov 10, 2006 Messaggi: 2457 Località: Cagliari (CA) - Maniago (PN)
|
Inviato: Gio Giu 05, 2008 9:05 pm Oggetto: |
|
|
| 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 |
|
 |
bozzato Allievo


Registrato: Aug 20, 2008 Messaggi: 36
|
Inviato: Sab Mag 09, 2009 2:31 pm Oggetto: |
|
|
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&op=userinfo&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&op=userinfo&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 |
|
 |
queen_live78 Amministratore


Registrato: Nov 10, 2006 Messaggi: 2457 Località: Cagliari (CA) - Maniago (PN)
|
|
| Torna in cima |
|
 |
|
|
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
|
|