Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » Joomla »

Problema con salto de linea en template ja anion

Estas en el tema de Problema con salto de linea en template ja anion en el foro de Joomla en Foros del Web. Hola que tal buenas noches amigos, instale la plantilla ja anion en joomla y resulta que vengo renegando con algo que no puedo solucionar problema ...
  #1 (permalink)  
Antiguo 17/01/2011, 20:03
 
Fecha de Ingreso: noviembre-2008
Ubicación: Chabás, Santa Fe, Argentina
Mensajes: 105
Antigüedad: 15 años, 5 meses
Puntos: 2
Problema con salto de linea en template ja anion

Hola que tal buenas noches amigos, instale la plantilla ja anion en joomla y resulta que vengo renegando con algo que no puedo solucionar problema de codigo php. Lo chequie abriendolo con dreamweaver y me dice que hay problemas con salto de linea en la linea 36 y eso me va a causar problemas en navegadores y si me ocurre un problema que realmente no se si viene por ahí pero sospecho de que si. Cuando pongo una foto en un articulo la foto se me pone por delante del articulo y no me lo dejá leer. Eso en firefox y en explorer se ve la foto cortada y nada de texto. Bueno como les decia chequeando encontré en este error, el asunto que no tengo mucha idea como solucionarlo porque no se tanto de código, si me podrian ayudar, yo les dejo el codigo y además como se estaba viendo.

En firefox
http://www.subirimagenes.com/imagen-...a-5809331.html
En internet explorer
http://www.subirimagenes.com/imagen-...x-5809337.html
En dreamweaver el código
http://www.subirimagenes.com/imagen-...2-5809342.html

Bueno gente acá les dejo el cógigo completo. espero de su ayuda!.. Gracias
Código PHP:
Ver original
  1. <?php
  2. /*
  3. # ------------------------------------------------------------------------
  4. # JA Anion template for Joomla 1.5.x
  5. # ------------------------------------------------------------------------
  6. # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
  7. # @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
  8. # bound by Proprietary License of JoomlArt. For details on licensing,
  9. # Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
  10. # Author: JoomlArt.com
  11. # Websites:  http://www.joomlart.com -  http://www.joomlancers.com
  12. # Redistribution, Modification or Re-licensing of this file in part of full,
  13. # is bound by the License applied.
  14. # ------------------------------------------------------------------------
  15. */
  16.  
  17.  
  18. // no direct access
  19. defined('_JEXEC') or die('Restricted access'); ?>
  20.  
  21. <?php
  22. //Get out all images
  23. $regex = "/\<img[^\>]*>/";
  24. $images = '';
  25. if (preg_match_all ($regex, $this->item->text, $matches)) {
  26.     $this->item->text = preg_replace ($regex, '', $this->item->text);
  27.     $images = implode ("\n", $matches[0]);
  28. }
  29. ?>
  30.  
  31. <?php if ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) : ?>
  32.     <div class="contentpaneopen_edit<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>" style="float: left;">
  33.         <?php echo JHTML::_('icon.edit', $this->item, $this->item->params, $this->access); ?>
  34.     </div>
  35. <?php endif; ?>
  36. <div class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?><?php if ($images): ?>haveimage<?php endif; ?> clearfix">
  37.  
  38.  
  39. <?php if ($images): ?>
  40. <div class="article-image">
  41.     <?php echo $images ?>
  42. </div>
  43. <?php endif; ?>
  44.  
  45. <div class="article-main">
  46. <?php if ($this->item->params->get('show_title')) : ?>
  47. <h2 class="contentheading<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  48.     <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
  49.     <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
  50.         <?php echo $this->escape($this->item->title); ?>
  51.     </a>
  52.     <?php else : ?>
  53.         <?php echo $this->escape($this->item->title); ?>
  54.     <?php endif; ?>
  55. </h2>
  56. <?php endif; ?>
  57.  
  58. <?php  if (!$this->item->params->get('show_intro')) :
  59.     echo $this->item->event->afterDisplayTitle;
  60. endif; ?>
  61.  
  62. <?php
  63. if (
  64. ($this->item->params->get('show_create_date'))
  65. || (($this->item->params->get('show_author')) && ($this->item->author != ""))
  66. || (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid))
  67. || ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon'))
  68. || ($this->item->params->get('show_url') && $this->item->urls)
  69. ) :
  70. ?>
  71. <div class="article-tools clearfix">
  72.  
  73.     <div class="article-meta">
  74.  
  75.     <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
  76.     <span class="createby">
  77.         <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>,
  78.     </span>
  79.     <?php endif; ?>
  80.  
  81.     <?php if ($this->item->params->get('show_create_date')) : ?>
  82.     <span class="createdate">
  83.         on <?php echo JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')); ?>
  84.     </span>
  85.     <?php endif; ?>
  86.  
  87.     <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
  88.         <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
  89.         <span class="article-section">
  90.             <?php if ($this->item->params->get('link_section')) : ?>
  91.                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
  92.             <?php endif; ?>
  93.             <?php echo $this->escape($this->item->section); ?>
  94.             <?php if ($this->item->params->get('link_section')) : ?>
  95.                 <?php echo '</a>'; ?>
  96.             <?php endif; ?>
  97.                 <?php if ($this->item->params->get('show_category')) : ?>
  98.                 <?php echo ' - '; ?>
  99.             <?php endif; ?>
  100.         </span>
  101.         <?php endif; ?>
  102.         <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
  103.         <span class="article-section">
  104.             <?php if ($this->item->params->get('link_category')) : ?>
  105.                 <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
  106.             <?php endif; ?>
  107.             <?php echo $this->escape($this->item->category); ?>
  108.             <?php if ($this->item->params->get('link_category')) : ?>
  109.                 <?php echo '</a>'; ?>
  110.             <?php endif; ?>
  111.         </span>
  112.         <?php endif; ?>
  113.     <?php endif; ?>
  114.     </div>
  115.  
  116.     <?php if ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
  117.     <div class="buttonheading">
  118.         <?php if ($this->item->params->get('show_email_icon')) : ?>
  119.         <span class="ja-button-email">
  120.         <?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?>
  121.         </span>
  122.         <?php endif; ?>
  123.  
  124.         <?php if ( $this->item->params->get( 'show_print_icon' )) : ?>
  125.         <span class="ja-button-print">
  126.         <?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?>
  127.         </span>
  128.         <?php endif; ?>
  129.  
  130.         <?php if ($this->item->params->get('show_pdf_icon')) : ?>
  131.         <span class="ja-button-pdf">
  132.         <?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?>
  133.         </span>
  134.         <?php endif; ?>
  135.     </div>
  136.     <?php endif; ?>
  137.  
  138.     <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
  139.     <span class="article-url">
  140.         <a href="http://<?php echo $this->escape($this->item->urls) ; ?>" target="_blank"><?php echo $this->escape($this->item->urls); ?></a>
  141.     </span>
  142.     <?php endif; ?>
  143.  
  144. </div>
  145. <?php endif; ?>
  146.  
  147. <?php echo $this->item->event->beforeDisplayContent; ?>
  148.  
  149. <div class="article-content">
  150. <?php if (isset ($this->item->toc)) : ?>
  151.     <?php echo $this->item->toc; ?>
  152. <?php endif; ?>
  153. <?php echo $this->item->text; ?>
  154. </div>
  155.  
  156. <?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
  157.     <span class="modifydate">
  158.         <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?>
  159.     </span>
  160. <?php endif; ?>
  161.  
  162. <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
  163.     <a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->escape($this->item->title); ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
  164.     <?php if ($this->item->readmore_register) : ?>
  165.         <span><?php echo JText::_('Register to read more...'); ?></span>
  166.     <?php else : ?>
  167.         <span><?php echo JText::_('READ MORE...'); ?></span>
  168.     <?php endif; ?>
  169.     </a>
  170. <?php endif; ?>
  171. </div>
  172.  
  173. </div>
  174.  
  175. <?php echo $this->item->event->afterDisplayContent; ?>
  #2 (permalink)  
Antiguo 17/01/2011, 21:01
 
Fecha de Ingreso: noviembre-2009
Ubicación: Colombía
Mensajes: 311
Antigüedad: 14 años, 4 meses
Puntos: 17
Respuesta: Problema con salto de linea en template ja anion

Cita:
<div class="contentpaneopen<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?><?php if ($images): ?>haveimage<?php endif; ?">
Espero que te sirva, si no.. Publicalo para ayudarte un poco en el tema!

También publica el link donde tienes el template para visualizarlo con Firebug o miralo tu mismo.

Saludos!
  #3 (permalink)  
Antiguo 18/01/2011, 11:55
 
Fecha de Ingreso: noviembre-2008
Ubicación: Chabás, Santa Fe, Argentina
Mensajes: 105
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: Problema con salto de linea en template ja anion

No no cambió nada peor, por lo que observe borraste sólo el clearfix, si lo sacó sigue el error y es peor tira una error de php y ni si quiera abre la página. Fijate que esa línea sigue debe estar relacionada con el resto del código. Te pasó el link de la web, www.escuela142.com.ar no te lo había pasado porque la tengo desactivada desde joomla, te la activo y fijate. Pero eso no es. Es un error mínimo seguro porque el resto anda perfecto.
  #4 (permalink)  
Antiguo 18/01/2011, 12:30
 
Fecha de Ingreso: noviembre-2009
Ubicación: Colombía
Mensajes: 311
Antigüedad: 14 años, 4 meses
Puntos: 17
Respuesta: Problema con salto de linea en template ja anion

Es un lio todo esto... ya que usas Framework y en realidad con firebug encontre algo:

en el css busca:

Cita:
.article-image
y tiene lo siguiente:

Cita:
.article-image{
left:0;
position:absolute;
top:5px;
}
Modificalo por:

Cita:
.article-image{
float:left;
margin:0 10px 0 0;
left:0;
top:5px;
}
Es todo!
  #5 (permalink)  
Antiguo 18/01/2011, 18:26
 
Fecha de Ingreso: noviembre-2008
Ubicación: Chabás, Santa Fe, Argentina
Mensajes: 105
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: Problema con salto de linea en template ja anion

Amigo ya he probado, pero seguimos en la misma, esta vez no hace absolutamente nada. Ni idea lo que es framework y como funciona, se que es bastante diferente a una plantilla común de joomla porque renegué bastante para encontrar el archivo .php, siempre esto debería estar en index.php de la plantilla pero lo está dentro de una carpeta frontpage. Desconozco como funciona realmente por eso estoy pidiendo ayuda. Yo te insisto con que el problema está en el salto de linea que detecta dreamweaver, no en el css. En un principio pensé que era el editor de joomla pero lo reeintale, lo cambie y sigue igual. Si prestás atención al cartel que indica dreamweaver dice el error, no se si prestaste atención pero en la explicación del error, la imagen de dreamweaver que te mostré está. Pero te reitero no lo entiendo mucho. Gracias por lo que estás haciendo por mí! tu ocupación, te adjunto la plantilla completa para que veas. Con todos los archivos y la investigues.
www.escuela142.com.ar/ja_anion.v1.2.4.zip

Gracias! Saludos
  #6 (permalink)  
Antiguo 18/01/2011, 20:11
 
Fecha de Ingreso: noviembre-2009
Ubicación: Colombía
Mensajes: 311
Antigüedad: 14 años, 4 meses
Puntos: 17
Respuesta: Problema con salto de linea en template ja anion

Framework: Sistema que hace el manejo más fácil de algún Producto X.

En este caso es un Framework para Plantillas de Joomla que no tienes que saber programación ni muchas cosas para realizarlo, yo tengo experiencia en Joomla pero creando cosas desde 0, ya que quedan a la medida y con mi propio código y a la hora de estos problemas lo soluciono rápidamente de hecho nunca me ha pasado.

Es muy dificil de ayudarte ya que medio mire el código de la plantilla y pues vi la solución y te la di, también pueda con esto:

Agregelo usted mismo:

Cita:
.article-image{
float:left !important;
margin:0 10px 0 0 !important;
left:0 !important;
top:5px !important;
}
Agregelo en una hoja de estilos de un CSS.

En realidad es un lio como te dije este tipo de plantillas ya que todos programamos o realizamos las cosas de diferentes formas, y este tipo de plantillas de estos Frameworks son basados en una creación compleja y se tendría que estudiar mucho tiempo para poder entenderlas.

Saludos!

Etiquetas: linea, salto, template
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 17:47.