If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Templates / What's wrong with this code...

What's wrong with this code...

Locked

Started by coins2012 on 2 Feb 2012, 2:02 PM · Views: 1,902

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
2 Feb 2012, 2:02 PM
#1
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Post #1 by coins2012

I have modified the following code but for some reason the images don't appear in the scrolling box.

here is the link to the site: http://www.aydin-coins.com/zencart/

<?php define(IMAGE1,'cougar.jpg');// default width 550px height 300px / define(IMAGE2,'ase.jpg'); define(IMAGE3,'atb.jpg'); define(IMAGE4,'Buffalo.jpg'); define(IMAGE5,'Philharmonics.jpg'); define(URL1,'http://www.aydin-coins.com/zencart/index.php?main_page=index&cPath=69_87'); define(URL2,'http://www.aydin-coins.com/zencart/index.php?main_page=index&cPath=69_85'); define(URL3,'http://www.aydin-coins.com/zencart/index.php?main_page=index&cPath=69_89'); define(URL4,'http://www.aydin-coins.com/zencart/index.php?main_page=index&cPath=68_73'); define(URL5,'http://www.aydin-coins.com/zencart/index.php?main_page=index&cPath=69_88'); ?>
<script type="text/javascript">
	$(document).ready(function(){	
	    
		$("#slider").easySlider({
			auto: true, 
			continuous: true,
			numeric: true
		});
		
	});	
</script>



	<div id="slider">
		<ul>				
			<li><a href="<?php echo URL1 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.cougar ?>"   alt="first slide image" /></a></li>
			<li><a href="<?php echo URL2 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.ase ?>"   alt="second slide image" /></a></li>
			<li><a href="<?php echo URL3 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.atb ?>"   alt="third slide image" /></a></li> 
			<li><a href="<?php echo URL4 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.Buffalo ?>"   alt="fourth slide image" /></a></li>
			<li><a href="<?php echo URL5 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.Philharmonics ?>"   alt="fifth slide image" /></a></li>			
		</ul>
	</div>
<div id="home-text"> </div>
2 Feb 2012, 2:13 PM
#2
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Post #2 by picaflor_azul

Questions about the all business template should be posted to the all business support thread and not posted separately.

If your slider is not working then I would recommend uploading the includes/languages/english/html_includes/all_business/define_main_page.php file.

Thanks,

Anne

2 Feb 2012, 2:18 PM
#3
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Post #3 by coins2012

sorry, new to this, where can I get that file, I have already modified it without making a backup.

Thank you

2 Feb 2012, 2:21 PM
#5
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Post #5 by coins2012

picaflor-azul:

Questions about the all business template should be posted to the all business support thread and not posted separately.

If your slider is not working then I would recommend uploading the includes/languages/english/html_includes/all_business/define_main_page.php file.

Thanks,

Anne

It looks like it's your template and would appreciate if you could guide me in the right direction.

Thank you

2 Feb 2012, 3:17 PM
#6
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Post #6 by coins2012

I got it working but need to know how to make the box smaller, any idea.

3 Feb 2012, 1:11 AM
#7
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Post #7 by rescoccc

Post your question/s in the support thread for the template.

The best way to learn is to try stuff. But, back it up first.

3 Feb 2012, 2:13 PM
#8
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Post #8 by picaflor_azul

Coins2012:

I got it working but need to know how to make the box smaller, any idea.

There are detailed instructions for using different size images in the slider in the readme.html file in the template package.

Thanks,

Anne