A blend of programming and seo

A free image gallery script

I have released a simple image gallery script called rGallery 1.0 (based on the dojo framework).

Requirements

  • php 5+

How to use

Extract all files from rgallery.zip to a specified directory (default is gallery.php). No setup is required (You shouldn’t have to change anything in any of the php scripts). Any image you want to display in the gallery just needs to be uploaded to the /images directory.

Place the following on the page where you would like your gallery displayed:


<head>
<script type="text/javascript" src="http://o.aolcdn.com/dojo/1.3.1/dojo/dojo.xd.js" djConfig="parseOnLoad: true"></script>
<style type="text/css">
  @import "css/image.css";
</style>
<script type="text/javascript">
  dojo.require("dojox.image.Gallery");
  dojo.require("dojo.data.ItemFileReadStore");
  dojo.require("dojo.parser");
</script>
<head>

In the body, place the following:

<div jsId="imageItemStore" dojoType="dojo.data.ItemFileReadStore"
 url="gallery.php"></div>

<div id="gallery1" dojoType="dojox.image.Gallery">
  <script type="dojo/connect">
    var itemRequest = {
      query: {},
      count: 20
    };
    var itemNameMap = {
      imageThumbAttr: "thumb",
      imageLargeAttr: "large"
    };
    this.setDataStore(imageItemStore, itemRequest, itemNameMap);
  </script>
</div>

Download

Version 1.0 can be downloaded here

A demo can also be found Here

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Reddit
  • Twitter
  • HackerNews
  • StumbleUpon
  • Technorati

4 comments

1 College Chris { 06.02.09 at 10:17 am }

I will be tring this download tonight…but what if I do not have a php 5+ ? Is there some other program, or anything else you can supply that I can use…as a non-web saavvy guy?

2 Justin (rawseo) { 06.02.09 at 1:57 pm }

are you going to be using this on a web server? If you have any questions about it, just send me an email: support@rawseo.com

3 Jimbo Jones { 06.02.09 at 2:34 pm }

Where’s a demo of this in action, or at least a screen shot?

4 Justin (rawseo) { 06.02.09 at 2:44 pm }

@jimbo:

I forgot to add a link to the demo from my post. I have added it above.

http://www.rawseo.com/demo/rgallery/

Leave a Comment