| Precedente :: Successivo |
| Autore |
Messaggio |
blankpage Newbie


Registrato: 29-09-2004 Messaggi: 26
|
Inviato: 14-10-2004 22:43 Oggetto: Redirect Link Forums |
|
|
ho installato la versione 7.4 di phpnuke.
in alto compaiono dei link standard.... (tra l'altro non riesco ad eliminarli!)
:: Home :: Downloads :: Your Account :: Forums ::
In particolare..."Forums" mi dirige verso il forum installato nei modules
vorrei ke quel link mi reindirizzasse semplicemente verso un altro forum ke non c'entra nulla con phpnuke del mio sito.... (solo il redirect alla home dell'altro forum...così come potrebbe essere linkato a qualsiasi altra pagina nient'altro!)
è possibile??
come?
grazie! |
|
| Torna in cima |
|
 |
Darsch Newbie


Registrato: 11-06-2004 Messaggi: 387
|
Inviato: 14-10-2004 22:48 Oggetto: |
|
|
Per la prima domanda devi cambiare il codice php nel file theme.php del tuo tema.
Per il redirect prova questo |
|
| Torna in cima |
|
 |
blankpage Newbie


Registrato: 29-09-2004 Messaggi: 26
|
Inviato: 15-10-2004 08:18 Oggetto: |
|
|
in quel file...riguardo la prima domanda (x cancellare la dicitura FORUMS)
non riesco a trovar nulla.....
<?php
/************************************************************/
/* Theme Name: Dune */
/* Theme Design: www.disipal.vze.com (Disipal) */
/* Powered by www.mid.gr */
/* */
/************************************************************/
/************************************************************/
/* 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 = "000000";
$bgcolor2 = "000000";
$bgcolor3 = "000000";
$bgcolor4 = "000000";
$textcolor1 = "#c0c0c0";
$textcolor2 = "#cccccc";
include("themes/Dune/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=\"000000\" text=\"#c0c0c0\" 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 = "&&Welcome $username!";
}
$tmpl_file = "themes/Dune/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/Dune/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;
if ($index == 1) {
$tmpl_file = "themes/Dune/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/Dune/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/Dune/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/Dune/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/Dune/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?> |
|
| Torna in cima |
|
 |
blankpage Newbie


Registrato: 29-09-2004 Messaggi: 26
|
Inviato: 15-10-2004 08:21 Oggetto: |
|
|
come non detto...
l'ho appena trovato..
dovevo modificare il file header.html del tema! |
|
| Torna in cima |
|
 |
Darsch Newbie


Registrato: 11-06-2004 Messaggi: 387
|
Inviato: 15-10-2004 09:40 Oggetto: |
|
|
Ok, allora è un tema composta da più parti html tipo il Classic.
Invece quelli tipo DeepBlue hanno tutto dentro.
L'importante che hai trovato. |
|
| 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
|
Powered by phpBB
© 2001-2006 phpBB Group
Versione 2.0.21 by Nuke Cops © 2006 http://www.nukecops.com
- Generazione pagina: 0.14 Secondi
|