PDA

View Full Version : CMotion Image Gallery in PHP Include



jwharton3
02-08-2008, 07:01 PM
1) CMotion Image Gallery

2) http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm

3) Ok so I'm trying to add the CMotion Image Gallery to the masthead of a website (http://whartondesigns.com/cjfencing/test.php). When everything is on one page it works, however, I uses php includes to make things easier on myself and once I placed things in their seperate includes (ie header.php, footer.php, etc) the script stopped working.

I believe it's loading all the photos I coded, but it's not accessing the js to scroll the images.

:confused:
Any thoughts?

Pakgeezer
08-17-2008, 08:55 AM
Im having the same problem with PHP require. Does anyone have any advise?

Thanks

jscheuer1
08-17-2008, 10:57 AM
Just off hand, scripts shouldn't really be includes, as the can simply be made to be external scripts. If you go that route, just make sure the paths to the images and for the links are either relative to the page that is using the script or make them absolute paths if pages from different folders will be using the same script.