Come faccio per inserire un'immagine come sfondo a posto del bianco?
scusate ma non capisco un h di php per questo vi riporto il codice, penso che è questo il pezzo che vi serve no?
[code:1:9e191d79a6]function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\"><br>\n\n\n&qu ot;;
if ($banners == 1) {
include("banners.php");
}
$topics_list = "<select name=\"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 = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\"&g t;Create an account";
} else {
$theuser = "&nbsp;&nbsp;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/5-Clone/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\" ;;";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/5-Clone/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\" ;;";
eval($thefile);
print $r_file;
}
[/code:1:9e191d79a6]
help;)
<body background="immagine.jpg">
grazie mi puoi dire dove lo devo inserire? più puoi ricopiare il codice corretto?
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" background=\"themes/5-Clone/images/bg.jpg\"><br>\n\n\n";
if ($banners == 1) {
include("banners.php");
}
$topics_list = "<select name=\"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 = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = "&nbsp;&nbsp;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/5-Clone/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/5-Clone/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
niente mi rimane bianco al centro puoi vedere tu stesso, cosa possa fare ora?
http://zaxarius.altervista.org
non è in questo codice il problema
posta il codice dove vengono elaborate le tabelle
(e basta pm )
Acc scusa per il disturbo;) quali sono?
table.php o sempre theme.php?
forse è table.php
[code:1:9b981ee448]<?php
function OpenTable() {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>
<td width=\"15\" height=\"15\"><img src=\"themes/5-Clone/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
<td background=\"themes/5-Clone/images/up2.gif\" align=\"center\" width=\"100%\" height=\"15\">&nbsp;</td>
<td><img src=\"themes/5-Clone/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
<tr>
<td background=\"themes/5-Clone/images/left2.gif\" width=\"15\">&nbsp;</td>
<td bgcolor=\"ffffff\" width=\"100%\">";
}
function OpenTable2() {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr>
<td width=\"15\" height=\"15\"><img src=\"themes/5-Clone/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
<td background=\"themes/5-Clone/images/up2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
<td><img src=\"themes/5-Clone/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
<tr>
<td background=\"themes/5-Clone/images/left2.gif\" width=\"15\">&nbsp;</td>
<td bgcolor=\"ffffff\">";
}
function CloseTable() {
echo "</td>
<td background=\"themes/5-Clone/images/right2.gif\">&nbsp;</td></tr>
<tr>
<td width=\"15\" height=\"15\"><img src=\"themes/5-Clone/images/down-left2.gif\" alt=\"\" border=\"0\"></td>
<td background=\"themes/5-Clone/images/down2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
<td><img src=\"themes/5-Clone/images/down-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
</td></tr></table>
<br>";
}
function CloseTable2() {
echo "</td>
<td background=\"themes/5-Clone/images/right2.gif\">&nbsp;</td></tr>
<tr>
<td width=\"15\" height=\"15\"><img src=\"themes/5-Clone/images/down-left2.gif\" alt=\"\" border=\"0\"></td>
<td background=\"themes/5-Clone/images/down2.gif\" align=\"center\" height=\"15\">&nbsp;</td>
<td><img src=\"themes/5-Clone/images/down-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
</td></tr></table>
<br>";
}
?>[/code:1:9b981ee448]
eccolo sorry!
dopo ogni "<table " aggiungi: style=\"background-image: themes/5-Clone/images/bg.jpg\"
niente, ho provato a fare come mi hai detto ho inserito anche il link per essere sicuro di non sbagliare qualcosa ( cambiando posizione al fil di sfondo e mettendolo nella cartella principale ma niente da fare quella parte rimane bianca...) ti l'esempio di come lo ho modificato
[code:1:0353a99c7e]
function OpenTable() {
echo "<table style=\"background-image: http://zaxarius.altervista.org/bg1.jpg\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>
<td width=\"15\" height=\"15\"><img src=\"themes/5-Clone/images/up-left2.gif\" alt=\"\" border=\"0\"></td>
<td background=\"themes/5-Clone/images/up2.gif\" align=\"center\" width=\"100%\" height=\"15\">&nbsp;</td>
<td><img src=\"themes/5-Clone/images/up-right2.gif\" width=\"15\" height=\"15\" alt=\"\" border=\"0\"></td></tr>
<tr>
<td background=\"themes/5-Clone/images/left2.gif\" width=\"15\">&nbsp;</td>
<td bgcolor=\"ffffff\" width=\"100%\">";
}[/code:1:0353a99c7e]
Regole di scrittura
Non puoi creare nuove discussioni
Non puoi rispondere ai messaggi
Non puoi inserire allegati.
Non puoi modificare i tuoi messaggi
Regole del forum