Juan Posted May 13, 2010 at 09:09 PM Share Posted May 13, 2010 at 09:09 PM Saludos una vez más. Uso una versión algo customizada de modulo listings en el que se muestra una pequeña introduciión del texto del artículo, para ello uso: <?php echo $Text->truncateWords($listing['Listing']['summary'],'50');?> En la versión anterior usaba además este código para obtener la primera imagen del artículo y mostrarla también: <?php $imgSTPos = strpos($listing['Listing']['summary'],'src="'); // if($imgSTPos) { $imgETPos = strpos($listing['Listing']['summary'],'"',$imgSTPos+5); } // ?> <?php if($imgSTPos > 0) :?> <?php $src = substr($listing['Listing']['summary'], ($imgSTPos+5), ($imgETPos-($imgSTPos+5)));?> <img src="<?php echo $src;?>" align="left" style="width:100px;height:auto;margin-right:5px;"></img> Pues al actualizar a la última versión no me funciona. Si hago <?php echo $listing['Listing']['summary']; ?>, me devuelve correctamente el contenido esperado con estilo, formato, links, todo menos las imágenes por lo que el código que puse antes no me funciona. ¿Qué otras variables estan disponibles en los módulos? He probado $listing['Listing¡]['text'] pero parece no estar disponible y no devuelve nada. Curiosamente en los listados blogview me aparece la primera imagen del artículo y antes no, debe ser algo nuevo en jReviews. Nota: hablo de imágenes en los artículos pero que no son imágenes subidas a través de la interfaz de jReviews sino insertadas con el editor. Link to comment
Juan Posted May 13, 2010 at 09:39 PM Author Share Posted May 13, 2010 at 09:39 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 13, 2010 at 09:55 PM Share Posted May 13, 2010 at 09:55 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 13, 2010 at 09:59 PM Author Share Posted May 13, 2010 at 09:59 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 13, 2010 at 10:01 PM Share Posted May 13, 2010 at 10:01 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 13, 2010 at 10:14 PM Author Share Posted May 13, 2010 at 10:14 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 13, 2010 at 10:23 PM Share Posted May 13, 2010 at 10:23 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 13, 2010 at 10:28 PM Author Share Posted May 13, 2010 at 10:28 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 13, 2010 at 10:33 PM Share Posted May 13, 2010 at 10:33 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 13, 2010 at 10:44 PM Author Share Posted May 13, 2010 at 10:44 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 22, 2010 at 03:48 PM Author Share Posted May 22, 2010 at 03:48 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 23, 2010 at 09:20 PM Author Share Posted May 23, 2010 at 09:20 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 23, 2010 at 10:02 PM Share Posted May 23, 2010 at 10:02 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 23, 2010 at 10:25 PM Author Share Posted May 23, 2010 at 10:25 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 23, 2010 at 10:58 PM Share Posted May 23, 2010 at 10:58 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 23, 2010 at 11:17 PM Author Share Posted May 23, 2010 at 11:17 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 24, 2010 at 02:32 PM Share Posted May 24, 2010 at 02:32 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 24, 2010 at 03:21 PM Author Share Posted May 24, 2010 at 03:21 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted May 24, 2010 at 03:51 PM Share Posted May 24, 2010 at 03:51 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Juan Posted May 24, 2010 at 05:10 PM Author Share Posted May 24, 2010 at 05:10 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts