Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Frontpage Slideshow
 
Reply
   X-Cart forums > General > Show us your X-Cart site
 
Thread Tools
  #31  
Old 05-08-2010, 05:03 PM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Frontpage Slideshow

Can someone post which files need to be modified...

It looks like to add the script code you need to modify

xcart/skin1/customer/home.tpl

The you need to add the <div > code to the welcome.tpl...

Is that correct...can someone post examples of from their site? That would help out a bunch.

Thanks
Ed
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #32  
Old 05-08-2010, 11:27 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Frontpage Slideshow

Hi Ed,

Hope this helps? Mine is placed in skin1/customer/main/welcome.tpl and looks like this: (You just need to change URL of your site and if your server path is not the same as mine)

Quote:
<div>
{php}
// START of "Frontpage Slideshow" settings
$nameOfSlideshowToDisplay = "welcomeslideshow"; // Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
$URLofyoursite = "http://www.yoursite.com"; // Enter your site's URL.
$AbsoluteServerPathofyoursite = "/home/custom/public_html"; // Enter the root path of your site on the server.

// do not edit below this line
include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
// END of "Frontpage Slideshow" settings
{/php}
</div>
{/if}


Quote:
Originally Posted by ecollier2012
Can someone post which files need to be modified...

It looks like to add the script code you need to modify

xcart/skin1/customer/home.tpl

The you need to add the <div > code to the welcome.tpl...

Is that correct...can someone post examples of from their site? That would help out a bunch.

Thanks
Ed
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #33  
Old 05-12-2010, 12:05 AM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Frontpage Slideshow

Thanks Dan but it does not work. I can create a standalone php file and it works...but placing the php code in the tpl file errors out.

Parse error: syntax error, unexpected T_ENDIF in /home/cola/public_html/pearlimporters/xcart/var/templates_c/%%0B^0BD^0BD7ADFC%%welcome.tpl.php on line 17


I have installed fpss in my root directory

www/pearlimporters/fpss

Added the following lines to www/pearlimporters/xcart/skin1/customer/main/welcome.tpl

<div>
{php}
// START of "Frontpage Slideshow" settings
$nameOfSlideshowToDisplay = "myslideshow";
// Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
$URLofyoursite = "http://www.pearlimporters.com";
// Enter your site's URL.
$AbsoluteServerPathofyoursite = "/home/cola/public_html/pearlimporters";
// Enter the root path of your site on the server.
// do not edit below this line
include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
// END of "Frontpage Slideshow" settings
{/php}
</div>
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #34  
Old 05-12-2010, 12:25 AM
 
ecollier2012 ecollier2012 is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 85
 

Default Re: Frontpage Slideshow

No idea why but now it works using the following in the welcome.tpl file

{*
$Id: welcome.tpl,v 1.33 2008/10/30 17:57:31 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{php}
// START of "Frontpage Slideshow" settings
$nameOfSlideshowToDisplay = "myslideshow"; // Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
$URLofyoursite = "http://www.pearlimporters.com"; // Enter your site's URL.
$AbsoluteServerPathofyoursite = "/home/cola/public_html/pearlimporters"; // Enter the root path of your site on the server.
// do not edit below this line
include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
// END of "Frontpage Slideshow" settings
{/php}
__________________
Xcart 4.2.1
Xcart 4.1.9
Reply With Quote
  #35  
Old 05-12-2010, 02:03 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: Frontpage Slideshow

Glad you got it sorted!

The dir. paths from person to person will always be different. The code I provided was where my files was located. If you don't mind me asking what else did you do different to make yours work?



Quote:
Originally Posted by ecollier2012
No idea why but now it works using the following in the welcome.tpl file

{*
$Id: welcome.tpl,v 1.33 2008/10/30 17:57:31 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{php}
// START of "Frontpage Slideshow" settings
$nameOfSlideshowToDisplay = "myslideshow"; // Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
$URLofyoursite = "http://www.pearlimporters.com"; // Enter your site's URL.
$AbsoluteServerPathofyoursite = "/home/cola/public_html/pearlimporters"; // Enter the root path of your site on the server.
// do not edit below this line
include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
// END of "Frontpage Slideshow" settings
{/php}
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #36  
Old 05-18-2010, 01:49 AM
  kevfromwiganinlancashire's Avatar 
kevfromwiganinlancashire kevfromwiganinlancashire is offline
 

X-Adept
  
Join Date: Nov 2004
Location: Appley Bridge
Posts: 563
 

Default Re: Frontpage Slideshow

Thank you everyone for this thread, I've been looking at different xcart banners but these frontpage and the css slider seem to be the ones.

Ta
__________________
Php 5.4.16-36.el7_1
MySQL 5.5.41-2.el7_0
Apache
2.4.6-31.el7.centos



4.6.x stalled for now

5.2.6 developing
Reply With Quote
  #37  
Old 10-24-2012, 10:43 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Frontpage Slideshow

I just purchased this banner tool but can not figure out why it doesn't seem to like my path info. Has anyone used this in the last 2 years?

I get this from the example.php page

Frontpage Slideshow (standalone)


Warning: include_once(/home/glvftp/greatlakesvaccum.com/fpss/fpss.php) [function.include-once]: failed to open stream: No such file or directory in /home/glvftp/greatlakesvacuum.com/example.php on line 49

Warning: include_once() [function.include]: Failed opening '/home/glvftp/greatlakesvaccum.com/fpss/fpss.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/glvftp/greatlakesvacuum.com/example.php on line 49
This demo uses the "Movies" template and the sample data that come bundled with the purchase package
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
Reply
   X-Cart forums > General > Show us your X-Cart site


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:08 AM.

   

 
X-Cart forums © 2001-2018