re: Undefined variable: imageSRC

  • norbies
  • Visitor
  • Visitor
14 years 11 months ago #352 by norbies
Replied by norbies on topic Re: re: Undefined variable: imageSRC
I came up with a similar issue, but I'm running Apache under Ubuntu, so it's not a path or OS problem, I guess.

I solved this by declaring the variable in the /modules/mod_hot_image_slider/tmpl/default.php code.

around line 120 it reads:
Code:
<script type="text/javascript"> if(!window.slider) var slider={};slider.data=[ <?php for ($titleCounter = 1; $titleCounter <= 9; $titleCounter += 1) { ?> <?php if ($imageArray[$titleCounter]) { ?> <?php $imageSRC .= '{"id":"slide-img-'.$titleCounter.'","client":"'.$imageTitleArray[$titleCounter].'","desc":"'.$imageDescArray[$titleCounter].'"},'; ?> <?php } ?> <?php } ?>


I hand inserted the code
Code:
<?php $imageSRC=""; ?>
, and it looks like this now:

Code:
<script type="text/javascript"> if(!window.slider) var slider={};slider.data=[ <?php $imageSRC=""; ?> <?php for ($titleCounter = 1; $titleCounter <= 9; $titleCounter += 1) { ?> <?php if ($imageArray[$titleCounter]) { ?> <?php $imageSRC .= '{"id":"slide-img-'.$titleCounter.'","client":"'.$imageTitleArray[$titleCounter].'","desc":"'.$imageDescArray[$titleCounter].'"},'; ?> <?php } ?> <?php } ?>


Hope this helps.

regards,
Norberto

Please Log in to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum