deansaddigh Posted September 2, 2010 Share Posted September 2, 2010 hi i want to implement this gallery, but its just not working even though ive followed everything. This is the gallery http://eyecon.ro/spacegallery/#about heres the code to implement Implement Attach the Javascript and CSS files to your document. Edit CSS file and fix the paths to images and change colors to fit your site theme. Important: be sure to include Javascript files in the specific order as in the example below. <link rel="stylesheet" media="screen" type="text/css" href="css/spacegallery.css" /> <script type="text/javascript" src="js/eye.js"></script> <script type="text/javascript" src="js/utils.js"></script> <script type="text/javascript" src="js/spacegallery.js"></script> Invocation code Prepare a block level element with some images inside. All you have to do is to select the elements in a jQuery way and call the plugin. $('#myGallery').spacegallery({loadingClass: 'loading'}); And heres my code <link rel="stylesheet" media="screen" type="text/css" href="/css/spacegallery.css" /> <script type="text/javascript" src="/js/eye.js"></script> <script type="text/javascript" src="/js/utils.js"></script> <script type="text/javascript" src="/js/spacegallery.js"></script> <script> $('#myGallery').spacegallery({loadingClass: 'loading'}); </script> while($copiedrow = mysql_fetch_array($copiedresult)) { $imagename = $copiedrow ['image_name']; $image = '/admin/'.$copiedrow['path'] . '/' . $copiedrow ['image_name']; //echo '<a href="'.$image.'" rel="shadowbox" title="'.$imagename.'" class="floatright"><img src="'.$image.'" width="150" height="150"/></a>'; echo '<p>Again another image gallery. Click on the images bellow to see it in action.</p>'; echo '<div id="myGallery" class="spacegallery">'; echo '<img src="'.$image.'" alt="" />'; echo '<img src="/images/lights3.jpg" alt="" />'; echo '<img src="/images/bw2.jpg" alt="" />'; echo '<img src="/images/lights2.jpg" alt="" />'; echo '<img src="/images/bw1.jpg" alt=""/>'; echo '<img src="/images/lights1.jpg" />'; echo '<img src="/images/mag.png"/>'; echo '</div>'; Any help would be amazing. Kind Regards Dean Quote Link to comment Share on other sites More sharing options...
Namtip Posted September 7, 2010 Share Posted September 7, 2010 In what way is it not working? Are you getting a parse error (if so please type out the error)? Do you want the page to function in a different way? What way would that be? What set up do you have e.g what OS, what PHP version and Apache version are you using? The code looks like its above my station, but if you define your problem better, the smart people might come and help (that is not me I'm afraid). Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted September 7, 2010 Author Share Posted September 7, 2010 Hey there. my main problem is the upload script, does indeed upload the images to the server, But doesnt do any inserts to the db. I think that this problem has beaten me, i think ill find a better upload script, because this seems to be more hassle that its worth just for a pretty upload. Kind regards Dean ps. if someone has got uploadify working with uploading details to db please let me know how you done it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.