Tuttosoft.it Php Nuke Italian Community: Forums
TUTTOSOFT :: Leggi il Topic - Larghezza diversa del sito sul " Leggi Tutto " del
Precedente :: Successivo
Autore
Messaggio
Destino Maestro Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
Inviato: Mar Apr 27, 2010 5:55 pm Oggetto: Larghezza diversa del sito sul " Leggi Tutto " del
ciao a tutti.. ho notato che sul mio sito www.hogwartsite.net succede un fatto strano...per quanto riguarda il tema del sito...quando però vado a cliccare su leggi tutto (nelle news) quando si apre la pagina della news completa vedo che le colonne destra, o tutte e due si stringono e la barra_immagine dove poi ci va il titoilo dlela news compare ristretta e icompleta. vi faccio vedere con delle immagini che forse è più semplice
Immagine della news nella home...come potete vedere le linee rosse delimitano la larghezza del sito..delle colonne e anche la grandezza della barra_immagine sui cui sopra viene messo il tiolo della news:
Qui invece e come viene visualizzato il sito, la larghezza e la barra..la line rossa ha la stessa larghezza di quella riportata nel sito e potete notare che tra la linea rossa e la colonna destra del sito c'è un spazio che non fa completare la barra_immagine del titolo della news...
come posso aggiustare la cosa...posto il file php del tema....aiutatemi...
Codice: <?php
$bgcolor1 = "#000000";
$bgcolor2 = "#000000";
$bgcolor3 = "#46a4a1";
$bgcolor4 = "#46a4a1";
$textcolor1 = "#ffffff";
$textcolor2 = "#fgfgfgf";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"news\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\"><b>$informant</a> ";
} else {
$boxstuff = "<b>Un anonimo ";
}
$boxstuff .= "segnala:</b> \"$thetext\"$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $banners, $name;
echo "<body text=\"#ffffff\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0>\n";
if ($banners) {
include("banners.php");
}
########## Modifica header #########
if ($name=='Forums') {
$logo="Header_forum.jpg";
} else {
$logo="Heade2222.jpg";
}
#########################
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"10\" align=\"center\">\n"
."<tr><td width=\"100%\" height=\"10\" valign=\"bottom\">\n"
."<map name=\"FPMap0\">"
."</map>"
."<img border=\"0\" src=\"themes/siteground4/images/$logo\" usemap=\"#FPMap0\" width=\"1036px\" height=\"282px\">"
."<tr><td width=\"1040px\" align=\"center\" >\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"1040px\">\n"
."<tr><td width=\"1040\" bgcolor=\"#000000\"><table width='1040%' cellspacing='0' cellpadding='0' border='0' ><tr><td>\n";
echo "</td></tr></table><table width=\"\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"10400\" valign=\"top\" style=\"padding:10px;\">\n";
if ($name=='Forums') {}
else if ($name=='Members_List') {}
else if ($name=='Private_Messages') {}
else {
blocks(left);
$sg = 'banner'; include "templates.php";
}
echo "</td><td width=\"980%\" style=\"padding:10px 10px 10px 0px;\">\n";
}
function themefooter() {
global $index;
echo "<br>";
if (defined('INDEX_FILE')) {
echo "</td><td valign=\"top\" width=\"130\" style=\"padding:10px 10px 10px 0px;\">\n";
blocks(right);
echo "<td>";
}
else {
echo "</td><td colspan=\"2\" style=\"padding:10px 10px 10px 0px;\">";
}
echo "<br><br></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse: collapse\" width=\"100%\"><tr><td width=\"100%\">"
."<br><center>";
echo "<br>";
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "<p align=\"center\">";
$sg = ''; include "templates.php";
echo "</p>";
echo "</center></table></table></table>";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#666666\">\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><tr>\n"
."<td background=\"themes/siteground4/images/barranews.gif\" width=\"609\" height=\"44\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td background=\"themes/siteground4/images/back1.gif\"colspan=\"2\" bgcolor=\"#333333\">\n"
."<table border=\"0\" width=\"100%\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes, $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table>\n"
."</td></tr><tr><td bgcolor=\"#000000\" align=\"center\">\n"
." "
."<b><font class=\"tiny\">"._POSTEDBY." ";
formatAidHeader($aid);
echo " - $time $timezone <br></font>\n"
."<font class=\"content\">$morelink</font></center>\n"
."<img src=\"themes/siteground4/images/pixel.gif\" border=\"0\" height=\"1\">"
."</td></tr></table>\n"
."</td></tr><tr><td background=\"themes/siteground4/images/header_news_down.gif\" width=\"607\" height=\"32\"></tr>"
."<tr><td bgcolor=\"#000000\"><img src=\"themes/siteground4/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">"
."<tr><td background=\"themes/siteground4/images/barranews.gif\" width=\"609\" height=\"44\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" background=\"themes/siteground4/images/back1.gif\"><br>\n"
."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes="", $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr>\n"
."</table></td></tr>\n"
."<tr><td background=\"themes/siteground4/images/barrasottodopo.gif\" width=\"607px\" height=\"32\"></tr>"
."<tr><td><br><div align=\"center\"></div></td></tr>\n"
."<tr><td bgcolor=\"#2897dd\"></td></tr></table>\n";
}
function themesidebox($title, $content) {
echo "<table border=\"0\" align=\"center\" width=\"200\" cellpadding=\"0\" cellspacing=\"0\">"
."<tr><td background=\"themes/siteground4/images/menu_top1.jpg\" width=\"200\" height=\"1\">"
." <font color=\"#46a4a1\" style=\"font-size:13px;\"><b>";
if (file_exists("$title.png")){ //Mod by matteoiamma - // www.matteoiammarrone.com
echo "<img src='$title.png'/>";
} else {
echo $title;
}
echo "</b></font>"
."</td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"200\">\n"
."<tr><td width=\"160\" bgcolor=\"#46a4a1\">\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"200\">\n"
."<tr><td background=\"themes/siteground4/images/menu_middle.jpg\" width=\"200\" height=\100\">\n"
."$content"
."</td></tr></table></td></tr><td background=\"themes/siteground4/images/menu_bottom.jpg\" width=\"200\" height=\"9\"></td><tr><td><img src=\"themes/siteground4/images/pixel.gif\" width=\"130\" height=\"4\"></td></tr></table>";
}
?>
_________________
Torna in cima
vecchio_joe Moderatore Registrato: Sep 21, 2008 Messaggi: 126 Località: Roma
Inviato: Gio Apr 29, 2010 9:13 am Oggetto:
Mamma mia, il codice del tuo tema è molto incasinato e andrebbe corretto.
cmq tornando al tuo prob.
prova cosi
sostituisci questo codice
Codice:
function themefooter() {
global $index;
echo "<br>";
if (defined('INDEX_FILE')) {
echo "</td><td valign=\"top\" width=\"130\" style=\"padding:10px 10px 10px 0px;\">\n";
blocks(right);
echo "<td>";
}
else {
echo "</td><td colspan=\"2\" style=\"padding:10px 10px 10px 0px;\">";
}
echo "<br><br></td></tr></table>\n"
con questo
Codice:
function themefooter() {
global $index;
echo "<br>";
if (defined('INDEX_FILE')) {
echo "</td><td valign=\"top\" width=\"130\" style=\"padding:10px 10px 10px 0px;\">\n";
blocks(right);
echo "<td>";
}
else {
echo "</td>";
}
echo "</tr></table>\n"
poi vai nel file article.php del modulo news e cerca la prima tabella
echo "<table ......
scrivila correttamente
cosi
Codice:
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
fammi sapere
Ciao
Torna in cima
Destino Maestro Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
Inviato: Gio Apr 29, 2010 1:03 pm Oggetto:
si grazie infinite..tutto sistemato _________________
Torna in cima
vecchio_joe Moderatore Registrato: Sep 21, 2008 Messaggi: 126 Località: Roma
Inviato: Dom Mag 02, 2010 2:08 pm Oggetto:
Perfetto...
Scusa una curiosità, nell ahome del tuo sito c'è il trailers del 6 capitolo. Ma il titolo in alto dice
Citazione: IL LORO ULTIMO VIAGGIO HA INIZIO..
Secondo me è sbagliato perchè l'ultimo viaggio da a intendere il capitolo 7 e non il 6.
Ciao
Torna in cima
Destino Maestro Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
Inviato: Dom Mag 02, 2010 2:56 pm Oggetto:
vecchio_joe ha scritto: Perfetto...
Scusa una curiosità, nell ahome del tuo sito c'è il trailers del 6 capitolo. Ma il titolo in alto dice
Citazione: IL LORO ULTIMO VIAGGIO HA INIZIO..
Secondo me è sbagliato perchè l'ultimo viaggio da a intendere il capitolo 7 e non il 6.
Ciao
quella scritta non è intesa per il video ma per la grafica di quella pagina web..se tu vai a cliccare sopra quella scritta ti poterà alla pagina web dell'ultimo film...il video che ho fatto è del sesto film...era solo un modo per presentare la nuova pagina web...poi lo cambierò quando arriverà il trailer ufficiale con l'uscita nelle sale di Eclipse...XD _________________
Torna in cima
Non puoi inserire nuovi Topic in questo forumNon puoi rispondere ai Topic in questo forumNon puoi modificare i tuoi messaggi in questo forumNon puoi cancellare i tuoi messaggi in questo forumNon puoi votare nei sondaggi in questo forum