Author Topic: help me implement a gallary  (Read 674 times)

0 Members and 1 Guest are viewing this topic.

Offline deansaddighTopic starter

  • Enthusiast
  • Posts: 438
    • View Profile
help me implement a gallary
« on: September 02, 2010, 06:19:04 PM »
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

Code: [Select]
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

Code: [Select]
<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>

Code: [Select]
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

Offline Namtip

  • Enthusiast
  • Posts: 109
  • Gender: Male
  • At least I'm determined.
    • View Profile
Re: help me implement a gallary
« Reply #1 on: September 07, 2010, 12:07:18 AM »
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).
My set up: Windows Vista, XAMPP 1.7.3, Apache 2.2.14 (IPv6 enabled) + OpenSSL 0.9.8l, MySQL 5.1.41 + PBXT engine, PHP 5.3.1, phpMyAdmin 3.2.4, Perl 5.10.1

WARNING: I know next to nothing about coding so if I try to help, take it with a pinch of salt.

Offline deansaddighTopic starter

  • Enthusiast
  • Posts: 438
    • View Profile
Re: help me implement a gallary
« Reply #2 on: September 07, 2010, 03:58:35 AM »
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.

:)