-
AuthorPosts
-
joev Friend
joev
- Join date:
- December 2008
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 5
- Thanked:
- 10 times in 1 posts
March 11, 2010 at 3:15 pm #149425Regarding the SlideShow2 component, each time I try to launch an article by clicking on the description or read-more button, the following error occurs below.
Is this because I’m running my test site locally using wamp? Is there a way to get the article link working when running a locally versus on a hosted server? Thanks!
You don’t have permission to access /test/<br /><b>Notice</b>: Undefined variable: row in <b>C:/wamp/www/test/modules/mod_jaslideshow2/tmpl/default_articles.php</b> on line <b>14</b><br /><br /><b>Notice</b>: Trying to get property of non-object in <b>C:/wamp/www/test/modules/mod_jaslideshow2/tmpl/default_articles.php</b> on line <b>14</b><br /> on this server.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 13, 2010 at 3:08 am #336042pls update the source code your files /modules/mod_jaslideshow2/tmpl/default_articles.php
[PHP]<div class=”ja-slidewrap<?php echo $params->get(‘moduleclass_sfx’);?> ja-<?php echo $source;?>” id=”ja-slide-articles-<?php echo $module->id;?>” style=”visibility:hidden”>
<div class=”ja-slide-main-wrap<?php echo ($navAlignment == ‘vertical_left’ ? ‘ ja-slide-right’ : ” )?>”>
<div class=”ja-slide-mask”>
</div>
<div class=”ja-slide-main”>
<?php foreach( $list as $k=> $item ) :
// parse image in the article’s content.
$helper->parseImages( $item, $params );
$list[$k] = $item;
?>
<div class=”ja-slide-item”>
<?php echo $helper->renderImage ($item->title, $item->mainImage, $params, $mainWidth, $mainHeight );?>
<?php if ( $showdescwhen == ‘always’ ):?>
<div class=”ja-slide-desc”>
<a <?php echo $target; ?> href=”<?php echo $item->link; ?>”>
<span><?php echo $helper->trimString( $item->title, $titleMaxChars );?></span>
</a>
<p><?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars ); ?></p>
<?php if ($showDescription==’desc-readmore’): ?>
<a <?php echo $target; ?> class=”readon readmore” href=”<?php echo $item->link; ?>”>
<?php echo $readmoretext;?>
</a><?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div><?php if ( $animation==’move’ && $container ) :?>
<div class=”but_prev ja-slide-prev”></div>
<div class=”but_next ja-slide-next”></div>
<?php endif; ?><!– JA SLIDESHOW 3 MARK –>
<div class=”maskDesc”>
<div class=”inner”></div>
</div>
</div>
<!– END JA SLIDESHOW 3 MARK –>
<?php if( $showDescription && $showdescwhen != ‘always’ ) : ?>
<div class=”ja-slide-descs”>
<?php foreach( $list as $item ) : ?>
<div class=”ja-slide-desc”>
<a <?php echo $target; ?> href=”<?php echo $item->link; ?>”>
<span><?php echo $helper->trimString( $item->title, $titleMaxChars );?></span>
</a>
<p><?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars ); ?></p>
<?php if ($showDescription==’desc-readmore’): ?>
<a <?php echo $target; ?> class=”readon readmore” href=”<?php echo $item->link; ?>”>
<?php echo $readmoretext;?>
</a><?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?><!– JA SLIDESHOW 3 NAVIAGATION –>
<?php if ( $navigation ): ?>
<div class=”ja-slide-thumbs-wrap<?php echo $classNav;?>”>
<div class=”ja-slide-thumbs”>
<?php foreach( $list as $key => $item ) : ?>
<div class=”ja-slide-thumb”>
<?php if ($navigation==’thumbs’){?>
<div class=”ja-slide-thumb-inner”>
<?php if( $navShowthumb ) : ?>
<?php echo $helper->renderImage ( $item->title, $item->thumbnail, $params,
$thumbWidth, $thumbHeight, ‘align=”left”‘ ); ?>
<?php endif; ?>
<h3><?php echo $helper->trimString( $item->title, $titleMaxChars );?></h3>
<?php if( $navShowDate ) : ?>
<span class=”ja-createdate clearfix”>
<?php echo JTEXT::_(“POSTED DATE”). ” “. JHTML::_(‘date’, $item->date, JText::_(‘DATE_FORMAT_LC4’)); ?>
</span>
<?php endif; ?>
<?php if( $navShowdesc ): ?>
<?php echo $helper->trimString( strip_tags($item->introtext), $navDescmaxlength ); ?>
<?php endif; ?>
</div>
<?php }else{?><span><?php echo ($key+1);?></span><?php } ?>
</div>
<?php endforeach; ?>
</div><div class=”ja-slide-thumbs-mask” style=” display:none “>
<div class=”ja-slide-thumbs-mask-left”> </div>
<div class=”ja-slide-thumbs-mask-center”> </div>
<div class=”ja-slide-thumbs-mask-right”> </div>
</div><p class=”ja-slide-thumbs-handles”>
<?php foreach( $list as $item ) : ?>
<span> </span>
<?php endforeach; ?>
</p>
<!– JA SLIDESHOW 3 NAVIAGATION –></div>
<?php endif; ?>
<!– JA SLIDESHOW 3 BUTTONS CONTROL –>
<?php if ($control): ?>
<div class=”ja-slide-buttons clearfix”>
<span class=”ja-slide-prev”>« <?php echo JText::_(‘PREVIOUS’);?></span>
<span class=”ja-slide-playback”>‹ <?php echo JText::_(‘PLAYBACK’);?></span>
<span class=”ja-slide-stop”><?php echo JText::_(‘STOP’);?></span>
<span class=”ja-slide-play”><?php echo JText::_(‘PLAY’);?> ›</span>
<span class=”ja-slide-next”><?php echo JText::_(‘NEXT’);?> »</span>
</div>
<?php endif; ?></div>
[/PHP]joev Friendjoev
- Join date:
- December 2008
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 5
- Thanked:
- 10 times in 1 posts
March 13, 2010 at 3:23 pm #336105Hi Tienhc. Thanks so much for the quick update. I applied the code above and it did resolve the error that I was receiving. However, when I click on the Title or Read More button, it looks like it attempts to load the article (I can see the link in the browser status bar) but nothing happens. It simply returns back to the next image in the slide show. Any ideas?
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Anonymous 14 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum