Foros del Web » Creando para Internet » CSS »

Editar un theme

Estas en el tema de Editar un theme en el foro de CSS en Foros del Web. Tengo este tema Y me gustaría que los menús de la iquierda, quedasen a la misma altura que los de la derecha pero por mas ...
  #1 (permalink)  
Antiguo 16/05/2012, 18:24
 
Fecha de Ingreso: mayo-2007
Mensajes: 12
Antigüedad: 17 años, 6 meses
Puntos: 1
Editar un theme

Tengo este tema

Y me gustaría que los menús de la iquierda, quedasen a la misma altura que los de la derecha pero por mas que lo intento no lo consigo.
¿Alguien podría darme indicaciones de como hacerlo?

Gracias

Código:
<?php
/*
+---------------------------------------------------------------+
|	e107 website system
|
|	©Steve Dunstan 2001-2007
|	http://e107.org
|	[email protected]
|
|	Released under the terms and conditions of the
|	GNU General Public License (http://gnu.org).
+---------------------------------------------------------------+
*/
// [multilanguage]
$lan_file = e_THEME."4xA_047/languages/".e_LANGUAGE.".php";
require_once(file_exists($lan_file) ? $lan_file : e_THEME."4xA_047/languages/German.php");

define("BROWSIMAGES", e_THEME."4xA_047/images/browsers.png");
// [theme]
$themename = "4xA_047";
$themeversion = "1.0";
$themeauthor = "***RuSsE***";
$themeemail = "[email protected]";
$themewebsite = "www.e107.4xa.de";
$themedate = "17.08.2010";
$themeinfo = "<a href='http://www.e107.4xa.de' title=''><img src='http://www.e107.4xa.de/e107_images/e107-templates.png' style='border:0px;float:right;margin:px 5px 0px 0px;padding:2px;' title='' alt='Logo'/></a> Eine dunkle Theme extra für die \"Battlefield: Bad Company 2\"- Clans, mit einem Menübereich auf der linke Seite (Menüs 1) und einem Meübereich auf der rechte Seite (Menüs 2).";
define("STANDARDS_MODE", "");
define("IMODE", "dark");
$xhtmlcompliant = TRUE;
$csscompliant = TRUE;
// [layout]
$layout = "_default";
require_once(THEME."gc_custom_login.php");
function theme_head(){
	return "<link rel='stylesheet' href='".THEME."nav_menu.css' />\n";
}

define("e_PAGE", substr(strrchr($_SERVER['PHP_SELF'], "/"), 1));
define("e_PAGECLASS", str_replace(substr(strrchr(e_PAGE, "."), 0), "", e_PAGE));

$HEADER = "
	<table cellspacing='0' align='center' cellpadding='0' height='900' width='1024' border='0' style='font-size:100%;background:url(".THEME."images/BG.jpg) no-repeat;'>
		<tr>
			<td style='background:transparent;padding:3px;text-align:left;vertical-align:top;height:100px;border:0px;width:100%;'>
				<table cellspacing='0' cellpadding='0' width='100%' border='0' style='font-size:90%;color:#000;'>
					<tr>
						<td style='vertical-align:top;font-size:200%;font-weight:bold;'>
					{SITENAME}
					<br/><br/>
					{SITETAG}
						</td>
						<td style='vertical-align:top;height:100px;width:220px;padding-top:60px;font-weight:bold;'>						
						".GC_CUSTOM_LOGIN."
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style='background:transparent;vertical-align:top;height:3px;width:100%;'>
	
			</td>
		</tr>
		<tr>
			<td style='background:transparent;vertical-align:top;width:100%;'>
				<table cellspacing='0' cellpadding='0' width='100%' border='0' style='font-size:100%;'>
					<tr>
						<td style='background:transparent;width:230px;vertical-align:top;padding:0px;'>
							{SETSTYLE=menu1}
							{MENU=1}
						</td>
						<td style='background:transparent;width:750px;vertical-align:top;text-align:center;padding:0px;'>
						<img src='".THEME."/images/BC2-Logo.png' style='border:0px;margin:px 5px 0px 0px;padding:2px;' title='' alt='Logo'/>
						<br/>
							{SITELINKS_ALT=no_icons}
							<br/><br/>
							<table cellspacing='0' cellpadding='0' width='750' border='0' style='font-size:100%;'>
								<tr>
									<td style='background:transparent;width:550px;vertical-align:top;text-align:center;padding:5px;'>	
										{SETSTYLE=content}
						";
$FOOTER = "				</td>
									<td style='background:transparent;width:200px;vertical-align:top;text-align:center;padding:5px;'>
									{SETSTYLE=menu2}
									{MENU=2}
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style='background:url(".THEME."images/footer.jpg) no-repeat;height:276px;text-align:center;'>
				{SITEDISCLAIMER}
			</td>
		</tr>
	</table>";
////////////////////////////////////////////////////////////////////
function news_style($news) {
        $myday  = strftime("%d", $news["news_datestamp"]);
        $mymonth = strftime("%b", $news["news_datestamp"]);
        $myyear = strftime("%Y", $news["news_datestamp"]);
$NEWSSTYLE = "

				<table cellspacing='0' cellpadding='0' border='0' style='font-size:100%;' width='100%'>
					<tr>
						<td style='font-size:100%;background:url(".THEME."images/content_bg.png);border: 9px #4d5e65 solid;padding:10px;text-align:left;'>&nbsp;
						<font style='color:#5d6e75;font-size:130%;font-weight:bold;'>{NEWSTITLE}&nbsp;&nbsp;{ADMINOPTIONS}<br/></font>
						";
					if(NEWSIMAGE){$NEWSSTYLE .= "<div id='newsimg'>{NEWSTHUMBNAIL}</div>";}
					$NEWSSTYLE .= "{NEWSBODY}{EXTENDED}
							</td>
					</tr>
				</table>
				<br/>";
	return $NEWSSTYLE;
 }
define('ICONMAIL', 'email_16.png');
define('ICONPRINT', 'print_16.png');
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", LAN_THEME_2);
define("COMMENTOFFSTRING", LAN_THEME_3);
define("PRE_EXTENDEDSTRING", "");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", "");
define("TRACKBACKSTRING", LAN_THEME_5);
define("TRACKBACKBEFORESTRING", " | ");
///////////////////////////////////////////////////////////////
function linkstyle($sTheStyle)
{

//
// Common to all styles (for this theme)
//
  $aSLinkSet['prelink']          = "";
  $aSLinkSet['postlink']         = "";
  $aSLinkSet['linkclass']        = "link1";
  $aSLinkSet['linkclass_hilite'] = "link2";
  // (see below for linkstart_hilite and linkstart)
  $aSLinkSet['linkend']          = "</div></div>";
  $aSLinkSet['linkdisplay']      = 1;
  $aSLinkSet['linkalign']        = "left";
  $aSLinkSet['linkseparator']    = "";

//
// Set some common sublink settings
// NOTE: *any* settings can be customized for sublinks by using
//       'sub' as a prefix for the setting name. Plus, there's "subindent"
//
  $aSLinkSet['sublinkclass'] = 'mysublink';
  $aSLinkSet['subindent']    = ' ';

//
// Now for some per-style setup
//
  switch ($sTheStyle)
  {
  case 'StyleA':
    $aSLinkSet['linkstart'] = "<li>";
    $aSLinkSet['linkstart_hilite'] = "";
    break;
  case 'StyleB':
    $aSLinkSet['linkstart'] = "| ";
    $aSLinkSet['linkstart_hilite'] = "";
    break;
  default: // if no LINKSTYLE defined
    $aSLinkSet['linkstart'] = "<div  class='link1' onmouseover=\"this.className='link2';\" onmouseout=\"this.className='link1';\"><div class='linktext'> <img src='".THEME_ABS."images/bullet2.gif' alt='' />&nbsp;&nbsp;";
    $aSLinkSet['linkstart_hilite'] = "<div class='link2' onmouseover=\"this.className='link1';\" onmouseout=\"this.className='link2';\"><div class='linktext'><img src='".THEME_ABS."images/bullet2.gif' alt='' />&nbsp;&nbsp;";
    $aSLinkSet['linkclass'] = 'link2'; // Override linkclass for fun-- mark these
    $aSLinkSet['sublinkclass'] = 'link1'; // Override sublinkclass for fun-- mark these
    $aSLinkSet['LINKEND'] = "</div></div>";
		$aSLinkSet['LINKDISPLAY'] = 1;
		$aSLinkSet['LINKALIGN'] =  "left";
  }
  return $aSLinkSet;
}

//	[tablestyle]
function tablestyle($caption, $text, $mode)
	{
	global $style;	
	if($style == "menu1")
		{
		echo "
				<table cellspacing='0' cellpadding='0' border='0' width='220' style='font-size:100%;'>
					<tr>
						<td style='font-size:80%;background:url(".THEME."images/content_bg.png);border: 9px #4d5e65 solid;padding:10px;'>&nbsp;
						<font style='color:#4d5e65;font-size:130%;font-weight:bold;'>".$caption."</font><br/>
						".$text."
							</td>
					</tr>
				</table>
				<br/>";
		}
	elseif($style == "menu2")
		{
		echo "
				<table cellspacing='0' cellpadding='0' border='0' width='200' style='font-size:100%;'>
					<tr>
						<td style='font-size:80%;background:url(".THEME."images/content_bg.png);border: 9px #4d5e65 solid;padding:10px;'>&nbsp;
						<font style='color:#4d5e65;font-size:130%;font-weight:bold;'>".$caption."</font><br/>
						".$text."
							</td>
					</tr>
				</table>
				<br/>";
		}
	elseif($style == "content")
		{
		echo "<table cellspacing='0' cellpadding='0' width='100%'  border='0' style='font-size:100%;'>
					<tr>
						<td style='text-align:left;font-size:100%;background:url(".THEME."images/content_bg.png);border: 9px #4d5e65 solid;padding:10px;'>&nbsp;
						<font style='color:#4d5e65;font-size:130%;font-weight:bold;'>".$caption."</font><br/>
						".$text."
							</td>
					</tr>
				</table>
				<br/>";
		}
else{
	echo "<div class='menu_bottom' style='color:#fff;'><b>".$caption."<b/></div><br/><div class='menu_bottom' >".$text."</div>";
		}
	}
?>
  #2 (permalink)  
Antiguo 17/05/2012, 00:36
 
Fecha de Ingreso: diciembre-2008
Ubicación: PERU
Mensajes: 294
Antigüedad: 15 años, 11 meses
Puntos: 23
Respuesta: Editar un theme

jeje eso no es un theme de wordpress al parecer es para un CMS llamado "e107 CMS"
veo muchas tables y no mucho div ... si que anda viejito.
Hace falta la hoja de estilos (.css) del theme, para que te ayuden.

Deberias ayudarte con un editor html para que vallas revisando el codigo.

Suerte
  #3 (permalink)  
Antiguo 17/05/2012, 03:09
 
Fecha de Ingreso: mayo-2007
Mensajes: 12
Antigüedad: 17 años, 6 meses
Puntos: 1
Respuesta: Editar un theme

Style.css
Código:
body {
	font-size:0.8em;
	background: #000000;
	text-align:center;
	font-family:Arial;
	color:#DFDFDF;
	text-align:center;
	margin:0px;
	padding:0px;
	leftmargin:0px;
	topmargin:0px;
	marginheight:0px;
	marginwidth:0px;
}

a:link {
color: #AAAAAA;
text-decoration: none;
background: transparent;

border: 0px;}

a:visited {
color: #AAAAAA;
text-decoration: none;
background: transparent;

border: 0px;
}
a:hover {
color: #fff;
text-decoration: none;
background: transparent;

border: 0px;
}
a:active {
color: #fff;
text-decoration: none;
background: transparent;

border: 0px;
}

.fborder{
border-collapse:collapse;
background:#182332 url(4xA_047/images/ftable_bg.jpg) no-repeat;
}
.fcaption{
	background: url(4xA_047/images/showcase-bg.png) repeat-y;
	font-size:110%;
	color:#CCC;
	padding:2px;
	margin:0px;
	border: 1px solid #ccc;
	text-align: left;
	margin:0px;
}


.fcaption a:link {text-transform: none; color:#003e7a;}
.fcaption a:visited {font-weight: bold; text-transform: none; color:#003e7a;}
.fcaption a:hover {font-weight: bold; text-transform: none; color:#fff;}
.fcaption a:active {font-weight: bold; text-transform: none; color:#003e7a;}


.menu3{color:#fff;}
.menu3 a:link {text-transform: none; color:#ccc;}
.menu3 a:visited {text-transform: none; color:#ccc;}
.menu3 a:hover {text-transform: none; color:#fff;}
.menu3 a:active {text-transform: none; color:#ccc;}


.menu_bottom{
color: #003e5a;
}
.menu_bottom a:link {text-transform: none; color:#ff6500;}
.menu_bottom a:visited {font-weight: bold; text-transform: none; color:#ff6500;}
.menu_bottom a:hover {font-weight: bold; text-transform: none; color:#efefef;}
.menu_bottom a:active {font-weight: bold; text-transform: none; color:#ff6500;}

.forumheader3{
vertical-align:top;
text-align:left;
font-size:100%;
background:url(4xA_047/images/content_bg.png);

padding:3px;
color:#666;
border-top: 0px #ccc solid;
border-left: 0px #ccc solid;
border-bottom: 1px #bbb dashed;
}
.forumheader a:link {text-transform: none; color:#444;}
.forumheader a:visited {text-transform: none; color:#444;}
.forumheader a:hover {text-transform: none; color:#bbb;}
.forumheader a:active {text-transform: none; color:#444;}

.forumheader2{
background:url(4xA_047/images/content_bg.png);
border-top: 1px #ccc dashed;
border-left: 1px #ccc dashed;
border-bottom: 1px #bbb dashed;
border-right: 1px #ccc dashed;
color:#666;
vertical-align:top;
text-align:left;
font-size:100%;
padding: 3px;
margin:0px;
}
.forumheader2 a:link {text-transform: none; color:#444;}
.forumheader2 a:visited {text-transform: none; color:#444;}
.forumheader2 a:hover {text-transform: none; color:#bbb;}
.forumheader2 a:active {text-transform: none; color:#444;}


.forumheader{
background:url(4xA_047/images/content_bg.png);
border: 2px #4d5e65 solid;
color:#888;
vertical-align:top;
text-align:left;
font-size:100%;
padding: 4px;
margin:0px;
}
.forumheader3 a:link {font-weight: bold;text-transform:none;color:#444;}
.forumheader3 a:visited {font-weight: bold;text-transform:none;color:#444;}
.forumheader3 a:hover {font-weight: bold;text-transform:none;color:#bbb;}
.forumheader3 a:active {font-weight: bold;text-transform:none;color:#444;}

.link2 {
	background:#888;
	color: #fff;
	text-align:left;
	border-top: 1px solid #444444;
	padding:4px;
	text-transform: uppercase;
	font-size:90%;
	font-weight:bold;

}
.link2 a:link {text-transform: none; color:#fff;text-transform: uppercase;
font-size:90%;
	font-weight:bold;}
.link2 a:visited {text-transform: none; color:#fff;text-transform: uppercase;
font-size:90%;
	font-weight:bold;}

.link1 {
	background: #565656;
	text-align:left;
	border-top: 1px solid #444444;
	padding:4px;
	text-transform: uppercase;
	font-size:90%;
	font-weight:bold;
}
.link1 a:link {text-transform: none; color:#fff;text-transform: uppercase;
	font-size:90%;
	font-weight:bold;}
.link1 a:visited {text-transform: none; color:#fff;text-transform: uppercase;
	font-size:90%;
	font-weight:bold;}



.smalltext{
font-size: 80%;
}

.menuleft1{
}

.tbox{
	background: #152130 url(4xA_047/images/butoon.gif) repeat-x;
	border: 2px solid #4d5e65;
	font: 11px Tahoma, Verdana, Arial, Helvetica, sans-serif;
	color: #4d5e65;
	margin:2px;
}
.tbox:focus {
	background: #152130 url(4xA_047/images/butoon.gif) repeat-x;
	border: 2px solid #4d5e65;
	font: 11px Tahoma, Verdana, Arial, Helvetica, sans-serif;
	color: #eee;
}

.tbox.search {
	background: #152130 url(images/butoon.gif) repeat-x;
	border: 2px solid #4d5e65;
	font: 11px Tahoma, Verdana, Arial, Helvetica, sans-serif;
	color: #4d5e65;
}

.button {
	background: #152130 url(4xA_047/images/butoon.gif) repeat-x;
	border: 2px solid #4d5e65;
	font: 11px Tahoma, Verdana, Arial, Helvetica, sans-serif;
	color: #4d5e65;
	height:22px;
	padding-top:3px;
	padding-bottom:3px;
	padding-left:5px;
	padding-right:5px;
	margin:3px;
}

.button a:hover{
	background: 4d5e65 url(4xA_047/images/butoon.gif) repeat-x;
	border: 2px solid #152130;
	color: #152130;
}


.menu1_TL{width:6px;height:29px;background: url(4xA_047/images/TL.png) no-repeat; border: 0px solid #000;}
.menu1_TC{height:29px;background:#f7f7f7 url(4xA_047/images/TC.png) repeat-x; border: 0px solid #000;vertical-align:midle;text-align:left;color:#fff;font-weight:bold;}
.menu1_TC a:link {font-weight: bold;text-transform:none;color:#fff;}
.menu1_TC a:visited {font-weight: bold;text-transform:none;color:#fff;}
.menu1_TC a:hover {font-weight: bold;text-transform:none;color:#bbb;}
.menu1_TC a:active {font-weight: bold;text-transform:none;color:#fff;}
.menu1_TR{width:6px;height:29px;background: url(4xA_047/images/TR.png) no-repeat; border: 0px solid #000;}
.menu1_ML{width:6px;background: url(4xA_047/images/ML.png) repeat-y; border: 0px solid #000;}
.menu1_MC{background:#f7f7f7 url(4xA_047/images/MC.png) repeat-y; border: 0px solid #000;font-size:100%;padding-top:4px;}
.menu1_MR{width:6px;background: url(4xA_047/images/MR.png) repeat-y; border: 0px solid #000;}
.menu1_BL{width:6px;height:4px;background: url(4xA_047/images/BL.png) no-repeat; border: 0px solid #000;}
.menu1_BC{height:4px;background: url(4xA_047/images/BC.png) repeat-x; border: 0px solid #000;}
.menu1_BR{width:6px;height:4px;background: url(4xA_047/images/BR.png) no-repeat; border: 0px solid #000;}

#newsimg {
  float:left;
  margin:5px 5px 0 0;
  padding: 3px;
  border: #4d5e65 6px solid;
}

.code-box{
background: #ececec;
border: 1px solid #666;
font: 10px Tahoma, Verdana, Arial, Helvetica, sans-serif;
color: #fff;

}

.nextprev {
	border: 0px;
	border-collapse: collapse;
	padding: 10px;
	text-align: right;
	width: auto;
	color: #999;
}
.nextprev_current{
padding-top: 14px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
text-decoration: none; 
color: #888;
font-size: 12px;
font-weight: bold;
background: url(4xA_047/images/on.png) no-repeat;
background-position:40% 50%;
width: 33px;
height: 29px;

}
a.nextprev_link {
padding-top: 14px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
text-decoration: none; 
color: #003e7a;
font-size: 12px;
font-weight: bold;
background: url(4xA_047/images/off.png) no-repeat;
background-position:50% 50%;
width: 33px;
height: 29px;
}
/*
a.nextprev_link:link{
padding-top: 14px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
text-decoration: none; 
color: #003e7a;
font-size: 12px;
font-weight: bold;
background: url(images/on.png) no-repeat;
background-position:50% 50%;
width: 33px;
height: 29px;
}
*/
a.nextprev_link:hover {
padding: 14px;
padding-left: 10px;
padding-right: 10px;
text-decoration: none; 
color: #888;
background: url(4xA_047/images/on.png) no-repeat;
background-position:50% 50%;
width: 33px;
height: 29px;}
.spacer{
	padding: 5px 0px;
}
.code{
	border: #800 1px solid;
	padding: 8px;
	background-color: #EEECEC;
	font: 12px courier, arial, verdana, tahoma, helvetica, sans-serif;
	color:#000040;
	width: 500px;
}

.code-box{
	border: #800 1px solid;
	padding: 8px;
	background-color: #EEECEC;
	font: 12px courier, arial, verdana, tahoma, helvetica, sans-serif;
	color:#000040;
	width: 500px;
}

.code_highlight{
	border: #800 1px solid;
	padding: 8px;
	background-color: #EEECEC;
	font: 12px courier, arial, verdana, tahoma, helvetica, sans-serif;
	color:#000040;
	width: 500px;
}
  #4 (permalink)  
Antiguo 17/05/2012, 05:59
 
Fecha de Ingreso: mayo-2007
Mensajes: 12
Antigüedad: 17 años, 6 meses
Puntos: 1
Respuesta: Editar un theme

Cita:
Iniciado por yuo2 Ver Mensaje
jeje eso no es un theme de wordpress al parecer es para un CMS llamado "e107 CMS"
veo muchas tables y no mucho div ... si que anda viejito.
Hace falta la hoja de estilos (.css) del theme, para que te ayuden.

Deberias ayudarte con un editor html para que vallas revisando el codigo.

Suerte
Lo hago con el Dreamweaver

Etiquetas: themes, fondo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:13.