| Precedente :: Successivo |
| Autore |
Messaggio |
Destino Maestro


Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
|
Inviato: Lun Giu 28, 2010 6:59 pm Oggetto: Come mettere un margine testo al titolo della news |
|
|
Ciao a tutti potete aiutarmi..dovrei mettere un margine di testo al titolo delle news. posto il file PHP e CSS del tema....aiuto..è urgente...:
| 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/Darkside/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=\"100%\" 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>";
}
echo "</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/Darkside/images/barranews.gif\" width=\"609\" height=\"45\"><font class=\"option\"><b>$title</b></font></td></tr>\n"
."<tr><td background=\"themes/Darkside/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/Darkside/images/pixel.gif\" border=\"0\" height=\"1\">"
."</td></tr></table>\n"
."</td></tr><tr><td background=\"themes/Darkside/images/header_news_down.gif\" width=\"609\" height=\"32\"></tr>"
."<tr><td bgcolor=\"#000000\"><img src=\"themes/Darkside/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/Darkside/images/barranews.gif\" width=\"609\" height=\"45\"><b>$title</b></td></tr>\n"
."<tr><td colspan=\"2\" background=\"themes/Darkside/images/back1.gif\"\n"
."<table border=\"0\" width=\"110%\" 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/Darkside/images/barrasottodopo.gif\" width=\"604px\" height=\"88\"></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/Darkside/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/Darkside/images/menu_middle.jpg\" width=\"200\" height=\100\">\n"
."$content"
."</td></tr></table></td></tr><td background=\"themes/Darkside/images/menu_bottom.jpg\" width=\"200\" height=\"9\"></td><tr><td><img src=\"themes/Darkside/images/pixel.gif\" width=\"130\" height=\"4\"></td></tr></table>";
}
?> |
CSS
| Codice: | FONT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px;color:#ffffff;background:#000 url(../images/ron.jpg) center top repeat-y;}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
INPUT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
TEXTAREA {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
A:link {
BACKGROUND: none;
COLOR: #a4dbdc;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
A:active {
BACKGROUND: none;
COLOR: #a4dbdc;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
A:visited {
BACKGROUND: none;
COLOR: #a4dbdc;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
A:hover {
BACKGROUND: none;
COLOR: White;
FONT-SIZE: 10px;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: underline;
}
.title {BACKGROUND: none; COLOR: #fefefe; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content {BACKGROUND: none; COLOR: #ffffff; line-height:150%; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.news {BACKGROUND: none; COLOR: #ffffff; line-height:155%; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica}
.storytitle {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle {BACKGROUND: none; COLOR: #ffffff; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent {BACKGROUND: none; COLOR: #fefefe; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica}
.option {
BACKGROUND: none;
COLOR: #a4dbdc;
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
.tiny {
BACKGROUND: none;
COLOR: White;
FONT-SIZE: 10px;
FONT-WEIGHT: normal;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
.footmsg {
BACKGROUND: none;
COLOR: White;
FONT-SIZE: 10px;
FONT-WEIGHT: normal;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none;
}
.footmsg_l {
BACKGROUND: none;
COLOR: White;
FONT-SIZE: 10px;
FONT-WEIGHT: normal;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: underline;
}
.box {
FONT-FAMILY: Verdana,Helvetica;
FONT-SIZE: 10px;
border: 1px solid #CCCCCC;
background-color: White;
}
i { color:#a6d7ed;}
/* -------------------------- */
a.sgfooter:link, a.sgfooter:visited {
color : #fefefe;
font-size : 11px;
font-family: Arial;
text-decoration:none;
}
a.sgfooter:hover {
color : #fefefe;
font-family: Arial;
text-decoration:none;
}
a.sgfooter1:link, a.sgfooter1:visited {
color : #336699;
font-size : 10px;
font-family: Verdana,Arial,Helvetica,sans-serif;
text-decoration:none;
}
a.sgfooter1:hover {
color: White;
font-family: Verdana,Arial,Helvetica,sans-serif;
text-decoration: none;
}
.sgf {
font-size: 11px;
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #fefefe;
text-decoration:none;
}
.sgf1 {
font-size: 11px;
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #fefefe;
text-align:left;
}
.sgimg1{
background:#0072b5 url(../images/banner_01.jpg) center top no-repeat;
background-repeat: no-repeat;
width:28px;
height:16px;
}
.sgimg2{
background:#0072b5 url(../images/banner_02.jpg) center top no-repeat;
background-repeat: no-repeat;
width:107px;
height:16px;
} |
_________________
 |
|
| Torna in cima |
|
 |
queen_live78 Amministratore


Registrato: Nov 10, 2006 Messaggi: 2457 Località: Cagliari (CA) - Maniago (PN)
|
|
| Torna in cima |
|
 |
Destino Maestro


Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
|
Inviato: Ven Lug 02, 2010 9:17 am Oggetto: |
|
|
| queen_live78 ha scritto: | | la variabile del titolo della news è indicato nel file html del tema che utilizzi. | nn ne ho file html nella cartella..ho solo file php e css _________________
 |
|
| Torna in cima |
|
 |
queen_live78 Amministratore


Registrato: Nov 10, 2006 Messaggi: 2457 Località: Cagliari (CA) - Maniago (PN)
|
|
| Torna in cima |
|
 |
Destino Maestro


Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
|
Inviato: Ven Lug 02, 2010 9:47 am Oggetto: |
|
|
| queen_live78 ha scritto: | | è la stessa cosa!!! che tema utilizzi ? |
http://phpnuke.siteground.com/siteground4/ ma chiaramente il file del tema è cambiato un casino _________________
 |
|
| Torna in cima |
|
 |
Destino Maestro


Registrato: Feb 08, 2009 Messaggi: 314 Località: Reggi Calabria
|
Inviato: Dom Lug 04, 2010 10:07 am Oggetto: |
|
|
quindi che dovrei fare...è qualkosa che si può fare? _________________
 |
|
| 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
|
|