Jump to content

help me implement a gallary


deansaddigh

Recommended Posts

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

 

:)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.