Tema: agregar link
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/01/2005, 16:13
SidV
 
Fecha de Ingreso: mayo-2004
Ubicación: CABA - Argentina
Mensajes: 278
Antigüedad: 20 años
Puntos: 3
Es el "overall_header.tpl" yo modifique mas o menos el documento, le agregue UN LINK. Mira:
Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Solaris/{T_HEAD_STYLESHEET}" type="text/css">

<!--

  NOTICE

  Solaris template, originally custom designed for alternativeSuns forums (http://forum.alternativesuns.com).
  Template created by Jakob Persson (http://www.jakob-persson.com), see my website for more free templates
  and samples of my work.
  
  This template is in no way associated or affiliated with the film by the same name released in 2002, directed
  by Steven Soderbergh and distributed by 20th Century Fox.
  No trademark infringement intended. Choice of name solely meant as a tribute to the science-fiction novel
  by the same name by author Stanislaw Lem (http://www.cyberiad.info).
  
  This template is publicly available for use with the phpBB forum software (http://www.phpbb.com).
  
  This template is copyright (c) Jakob Persson 2003.
  
  Template ID: EkjAk9vYSF2dpi3LiBJR2Vq8jW9NX9pSYAxMfPGy  
  
  Removal or alteration of this notice is strongly prohibited.

-->

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--

	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}

	
//-->
</script>
<!-- END switch_enable_pm_popup -->

</head>
<body>
<table width="750" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td valign="top" class="maintable">
	
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="50%" valign="top"><a href="{U_INDEX}" class="nav"><img src="templates/Solaris/images/forumlogo.jpg" width="253" height="98" border="0" /></a></td>
            <td width="50%" valign="top">
			
			<table border="0" align="right" cellpadding="0" cellspacing="1">
                <tr> 
                  <td></td>
                  <td></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="9" /></td>
                </tr>
                <tr>
                <td><a href="http://www.tusitio.com" name="topnavurl0"><img src="templates/Solaris/images/lang_english/boto_HOME.jpg" alt="Principal" name="topnavimg0" border="0" /></a></td>
                  <td><a href="{U_FAQ}" name="topnavurl0"><img src="templates/Solaris/images/lang_english/topimg_faq-e.jpg" alt="{L_FAQ}" name="topnavimg0" border="0" /></a></td>                  
				  <td><a href="{U_LOGIN_LOGOUT}" name="topnavurl1"><img src="templates/Solaris/images/lang_english/topimg_login-logout-e" alt="{L_LOGIN_LOGOUT}" name="topnavimg1" border="0" /></a></td>				  
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td><a href="{U_SEARCH}" name="topnavurl2"><img src="templates/Solaris/images/lang_english/topimg_search-e.jpg" width="80" height="15" alt="{L_SEARCH}" name="topnavimg2" border="0" /></a></td>
                  <td><a href="{U_PROFILE}" name="topnavurl3"><img src="templates/Solaris/images/lang_english/topimg_profile-d.jpg" width="80" height="15" alt="{L_PROFILE}" name="topnavimg3" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td><a href="{U_MEMBERLIST}" name="topnavurl4"><img src="templates/Solaris/images/lang_english/topimg_members-d.jpg" width="80" height="15" alt="{L_MEMBERLIST}" name="topnavimg4" border="0" /></a></td> <!--  onLoad="this.src=topnavimg_4;" -->
                  <td><a href="{U_GROUP_CP}" name="topnavurl5"><img src="templates/Solaris/images/lang_english/topimg_groups-e.jpg" width="80" height="15" alt="{L_USERGROUPS}" name="topnavimg5" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr> 
                  <td colspan="2"><a href="{U_PRIVATEMSGS}" name="topnavurl6"><img src="templates/Solaris/images/lang_english/topimg_pms-d.jpg" width="161" height="15" alt="{PRIVATE_MESSAGE_INFO}" name="topnavimg6" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="15" /></td>
                </tr>
                <tr> 
                  <td colspan="2"><a href="{U_REGISTER}" name="topnavurl7"><img src="templates/Solaris/images/topimg_register.jpg" width="161" height="15" name="topnavimg7" alt="{L_REGISTER}" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="8" /></td>
                </tr>
              </table>
			  
<script language="Javascript" type="text/javascript">
<!--
//declaring variables and arrays
var privmsg_image_path = "{PRIVMSG_IMG}", current_lang = "";

//extract the current language string
current_lang = privmsg_image_path.match(/lang_[a-z]*/);

if (current_lang != ""){

<!-- BEGIN switch_user_logged_out -->

	//assign image paths
	document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg";			//faq
	document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_login-e.jpg";	//login/logout
	document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg";		//search
	document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-d.jpg";		//profile
	document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg";		//memberlist
	document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg";		//usergroups
	document.images["topnavimg6"].src = "templates/Solaris/images/" + current_lang + "/topimg_pms-d.jpg";			//private messages/new private messages
	document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-e.jpg";		//register
	
<!-- END switch_user_logged_out -->

<!-- BEGIN switch_user_logged_in -->

	//parse strings
	loginlogout = "{U_LOGIN_LOGOUT}";
	stringIndex = loginlogout.indexOf("amp");
	loginlogout2 = loginlogout.slice(0,stringIndex);
	loginlogout2 += loginlogout.slice(stringIndex+4);

	//assign image paths
	document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg";			//faq
	document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_logout-e.jpg";	//login/logout
	document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg";		//search
	document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-e.jpg";		//profile
	document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg";		//memberlist
	document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg";		//usergroups
	document.images["topnavimg6"].src = "{PRIVMSG_IMG}";																	//private messages/new private messages
	document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-d.jpg";		//register
	
<!-- END switch_user_logged_in -->	

}

//-->
</script>  
		  
			</td>
          </tr>
          <tr valign="top"> 
            <td colspan="2"><img src="templates/Solaris/images/bg_top_border.jpg" width="750" height="51" /></td>
          </tr>
          <tr>             
      		<td colspan="2">
          
				  <table width="720" border="0" cellpadding="0" cellspacing="0" align="center">
					<tr> 					  
                  		<td class="mainforumcell">
						
						<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  							<tr>
    							<td width="1%"><img src="templates/Solaris/images/spacer.gif" width="10" /></td>
    							<td width="98%"> 
Como veras agregue, antes del FAQ, un boton que tenes que hacer vos, llamado boto_HOME.jpg (si le cambias el nombre, tambien tenes que cambiarle el nombre al codigo)

Cita:
<td><a href="http://www.tusitio.com" name="topnavurl0"><img src="templates/Solaris/images/lang_english/boto_HOME.jpg" alt="Principal" name="topnavimg0" border="0" /></a></td>
Dicho boton lo subis a la carpeta:
templates/Solaris/images/lang_english/
Despues modificas vos mismo el archivo overall_header.tpl (o copias y pegas lo que te pase aca mismo) lo subis y deberia funcionar.
Obviamente tenes que cambia la dire "tusitio.com" por la web tuya.

Bueno, creo que vas a entender todo...
De ultima si llegaras tener problemas, me avisas...
Gracias a vos por compartir los tpl.

Nos vemos...
Salu2 desde la Docta... Argentina
__________________
ReC Blog =)