View Full Version : Wordpress Plugin need help
Blogger
11-19-2008, 03:12 PM
Hi, I found a good site to display photos on site but i don't know how to turn it to wordpress plugin.
The site is : http://devkick.com/lab/galleria/. Photo loading very fast and very user friendly.
Can someone help me to turn that into a plugin so that it will be easy to upload the photo and publish them?
Thanks!
sarahG
11-19-2008, 03:39 PM
You shouldn't need a plugin for that. WordPress has the built in functionality to add photos already via the media uploader, and to use that method you would just insert the JavaScript and CSS into your theme's header file, then on the page you want the gallery you could just list the images by inserting them from the media uploader and just putting them into a list.
Blogger
11-19-2008, 04:36 PM
You shouldn't need a plugin for that. WordPress has the built in functionality to add photos already via the media uploader, and to use that method you would just insert the JavaScript and CSS into your theme's header file, then on the page you want the gallery you could just list the images by inserting them from the media uploader and just putting them into a list.
Err... don't quite get the last sentence. Can you show me how to do it? I mean What code should i put and where should i put?
Sorry... dumb in coding..
Actually, I want one photo with bigger size then few photos with smaller sizes so that visitors can just click on the smaller size photos and view in a big size. And I want it to load fast so that visitors won't feel frustrated.
That's why I want something like http://devkick.com/lab/galleria/ . If using the default of wodpress, i have to wait for the page to load when every post of mine have about 3-5 photos. That's really annoying for visitors.
sarahG
11-20-2008, 08:22 AM
The site that you linked to simply has a list of the images for the gallery plus a couple of other lines ie.
<div class="demo">
<div id="main_image"></div>
<ul class="gallery_demo_unstyled">
<li><img src="img/flowing-rock.jpg" alt="Flowing Rock" title="Flowing Rock Caption"></li>
<li><img src="img/stones.jpg" alt="Stones" title="Stones - from Apple images"></li>
<li class="active"><img src="img/grass-blades.jpg" alt="Grass Blades" title="Apple nature desktop images"></li>
<li><img src="img/ladybug.jpg" alt="Ladybug" title="Ut rutrum, lectus eu pulvinar elementum, lacus urna vestibulum ipsum"></li>
<li><img src="img/lightning.jpg" alt="Lightning" title="Black & White"></li>
<li><img src="img/lotus.jpg" alt="Lotus" title="Fusce quam mi, sagittis nec, adipiscing at, sodales quis"></li>
<li><img src="img/mojave.jpg" alt="Mojave" title="Suspendisse volutpat posuere dui. Suspendisse sit amet lorem et risus faucibus pellentesque."></li>
<li><img src="img/pier.jpg" alt="Pier" title="Proin erat nisi"></li>
<li><img src="img/sea-mist.jpg" alt="Sea Mist" title="Caption text from title"></li>
</ul>
<p class="nav"><a href="#" onclick="$.galleria.prev(); return false;">« previous</a> | <a href="#" onclick="$.galleria.next(); return false;">next »</a></p>
</div>
So you could create a page template with part of this code already in and then just build the list in your content area.
However, by the sounds of things, if you don't understand what a list is then trying to do this manually just wouldn't be a good idea for you.
Also, in response to your last comment. The page you've linked to above just links to large images and uses height and width attributes to make the thumbnails. So if your site is slow to load 3-5 images on a page then it'd going to grind to a halt with 1 large image and 10 large images resized via HTML.
It may look pretty but it doesn't seem to be an efficient method in my opinion.
vBulletin® v3.8.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.