| Precedente :: Successivo |
| Autore |
Messaggio |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 11-06-2007 18:02 Oggetto: eliminare blocchi di sinistra |
|
|
Salve a tutti ho un problema che mi sta facendo impazzire...utilizzo il tema Nature e non risco ad eliminare i blocci di sinistra posto una parte di codice...
/************************************************************/
/* 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, $name, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body text=\"#000000\" link=\"#004080\" vlink=\"#004080\" alink=\"#004080\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";include("themes/Nature/images/topics.php");
if ($banners) {
include("banners.php");
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
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\">Create an account";
} else {
$theuser = " ;; ;;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/Nature/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
if ($name=='Forums') {}
else
if ($name=='Private_Messages') {}
else
if ($name=='Members_List') {}
else
if ($name=='Web_Links') {}
else
blocks("left");
$tmpl_file = "themes/Nature/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, $name;
if ($index == 0) {
$tmpl_file = "themes/Nature/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$foot2$foot3$foot4";
$tmpl_file = "themes/Nature/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, $cookie, $loonr, $vasak, $parem, $kokku, $storyhome, $storynum;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$loonr = ($loonr+1);
if (isset($cookie[3])) {
$storynum = $cookie[3];
} else {
$storynum = $storyhome;
}
$ridaaa1 = round($loonr/2);
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&username=$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.")";
if (($ridaaa1*2) != $loonr) {
$tmpl_file = "themes/Nature/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
$vasak .= "$r_file";
} else {
$tmpl_file = "themes/Nature/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
$parem .= "$r_file";
}
if ($loonr == $storynum OR $loonr == $kokku) {
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr>";
echo "<td width=\"49%\" valign=\"top\">";
print $vasak;
echo "</td>";
echo "<td width=\"5\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\"></td>";
echo "<td width=\"49%\" valign=\"top\">";
print $parem;
echo "</td>";
echo "</tr>";
echo "</table>";
}
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
così non succede nulla eliminando l' uguale e lasciandone uno solo cioè così:
else
if ($name='Web_Links') {}
else
blocks("left");
sparisco i blocchi di sinistra da tutte le pagine...vorrei che sparissero solo da alcune...
utilizzo
PhpNuke_Donkeys_76v1.0.2
Grazie |
|
| Torna in cima |
|
 |
_tony_ Newbie


Registrato: Apr 06, 2007 Messaggi: 213
|
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 11-06-2007 18:24 Oggetto: |
|
|
Si le ho provate tutte ma niente...non capisco proprio il motivo.... queste son le prove che ho fatto:
//if ($name=='Forums') {
if (($name=='Forums') OR ($name=='Members_List')) {
/* Don't display it. */
}
else {
blocks(left);
}
-----------------------------
-----------------------------
if ($name=='Members_List'){
/* Don't display it. */
}
else
if ($name=='Forums'){
/* Don't display it. */
}
else {
blocks(left);
}
-------------------
------------------
non so proprio come fare....
Se quacuno potesse aiutarmi ne sare davvero gratto... |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 11-06-2007 19:17 Oggetto: |
|
|
| nessuno mette una mano nel cuore e mi da una mano? |
|
| Torna in cima |
|
 |
_tony_ Newbie


Registrato: Apr 06, 2007 Messaggi: 213
|
Inviato: 11-06-2007 19:38 Oggetto: |
|
|
| slaney ha scritto: | | nessuno mette una mano nel cuore e mi da una mano? |
guarda io sono il meno indicato a dare consigli però nella guida dice di sostituire blocks(left); con:
if ($name='forums') {}
else {
blocks(left);
}
hai provato a mettere questo? Sono un pò ignorante ma in quello che scrivi tu vedo di differente il ==....buh, può darsi che non c'entra nula!!!!
ciao |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 11-06-2007 20:09 Oggetto: |
|
|
ti ringrazio tantissimo, con i due == non succede nulla invecce con uno solo spariscono i blocchi da tutte le pagine e a me nn serve che spariscano da tutte ma bensì dal forum, gallery ecc....
Chissa che quancuno decida di darmi una mano..... |
|
| Torna in cima |
|
 |
_tony_ Newbie


Registrato: Apr 06, 2007 Messaggi: 213
|
Inviato: 11-06-2007 20:32 Oggetto: |
|
|
| slaney ha scritto: | ti ringrazio tantissimo, con i due == non succede nulla invecce con uno solo spariscono i blocchi da tutte le pagine e a me nn serve che spariscano da tutte ma bensì dal forum, gallery ecc....
Chissa che quancuno decida di darmi una mano..... |
beh....hai provato a vedere nel file index.php di quei moduli? |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 12-06-2007 15:35 Oggetto: |
|
|
| scusa il ritardo, si ho controllato anche nei moduli...mi basterebbe eliminarli solo dal magic frame vorrei eliminarli entrambi...avete una soluzione? |
|
| Torna in cima |
|
 |
ferdy08 Newbie


Registrato: Sep 26, 2006 Messaggi: 50 Località: Alex
|
Inviato: 12-06-2007 15:39 Oggetto: |
|
|
se vuoi toglire i blocchi di sinistra da dei moduli in particolare .... io ho usato questo nel tema....
| Codice: | if ($name=='nome-modulo'){
/* Don't display it. */
}
else {
blocks(left);
} |
ciao  |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 12-06-2007 15:44 Oggetto: |
|
|
| ti ringrazio...ma come ho scritto nei post precedenti non riesco in nessun modo ad eliminarli così, penso ci sia qualche errore nel theme....se qualcuno sarebbe cosi gentile da darmi una mano... |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 12-06-2007 15:48 Oggetto: |
|
|
quello che non riesco a capire è perche con due == non cambia nulla e con uno elimina i blocchi di sinistra da tutte le pagine...
if ($name='Gallery'){
/* Don't display it. */
}
else {
blocks(left);
} |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 12-06-2007 18:27 Oggetto: |
|
|
| cè nessuno? |
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
|
| Torna in cima |
|
 |
slaney Newbie


Registrato: Oct 02, 2006 Messaggi: 40
|
Inviato: 13-06-2007 17:24 Oggetto: |
|
|
qualcuno sa dirmi dove trovo una guida per capire come funziona il fatto di eliminare una pagina dal percorso html...cioè:
index.php
diventa automaticamente
index.html
un modulo es. http://tuo_sito/modules.php?name=Gallery
diventa
http://tuo_sito/Gallery.html
devo solo eliminare i blocchi di sinistra da una pagina ci sono appresso 3 gg qualcuno può aiutarmi? |
|
| Torna in cima |
|
 |
rino Amministratore


Registrato: Sep 28, 2004 Messaggi: 4617 Località: Anzio
|
Inviato: 13-06-2007 19:20 Oggetto: |
|
|
| Le guide ci sono ma in inglese, basta cercare su Google e ne trovi. Cmq è un discorso abbastanza complicato. Su quale modulo vuoi togliere il blocco sx? Hai provato a cambiare tema? |
|
| Torna in cima |
|
 |
|