Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#229 2008-10-03 18:13:57
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: smd_gallery: super-flexible gallery generator
Hi Stef, thanks for the shadowbox tip, just got it working and it’s really classy
Last edited by lee (2008-10-03 20:01:33)
Offline
#230 2008-10-04 02:36:31
Re: smd_gallery: super-flexible gallery generator
I agree about Shadowbox being the bees’ knees, but especially when deployed via smd_gallery. Fpx_image_import completes the uber useful trio for me because it enables me to upload a single category defined gallery of, say, 15 pictures at one fell swoop, automatically making the thumbnails.
Offline
#231 2008-10-04 06:20:44
Re: smd_gallery: super-flexible gallery generator
Hi Stef/Joe – do you have an example of how you got Shadowbox to work with smd_gallery? I just found out about it with Stef’s post above.
Is it best to run in conjunction with jQuery or standalone? I have FancyZoom but find it a little buggy here and there. Nice though.
Offline
#232 2008-10-04 06:58:11
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: smd_gallery: super-flexible gallery generator
Head:
<script type=“text/javascript” src=”<txp:site_url/>textpattern/jquery.js”></script>
<script type=“text/javascript” src=”<txp:site_url/>shadowbox/shadowbox-jquery.js”></script>
<script type=“text/javascript” src=”<txp:site_url/>shadowbox/shadowbox-2.0.js”></script>
<script type=“text/javascript”>
Shadowbox.loadSkin(‘classic’, ‘../shadowbox’);
Shadowbox.loadLanguage(‘en’, ‘../shadowbox’);
Shadowbox.loadPlayer([‘img’], ‘../shadowbox’);
window.onload = Shadowbox.init;
</script>
Page:
<txp:smd_gallery category=“gallery” form=“gallery” />
Form (called gallery):
<a href=”{url}” rel=“shadowbox[gallery]”>
<img class=“animage” src=”<txp:site_url/>images/{thumbdef}” alt=”{alt}” />
</a>
Offline
#233 2008-10-04 07:18:46
Re: smd_gallery: super-flexible gallery generator
Thanks lee. And for the shadowbox download options, anything in particular that should/should not be included?
Offline
#234 2008-10-04 07:34:16
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: smd_gallery: super-flexible gallery generator
I just included img in the build. You also need the full download to get the skin etc.
Offline
#235 2008-10-04 16:28:10
- curiouz
- Member
- Registered: 2006-06-20
- Posts: 56
Re: smd_gallery: super-flexible gallery generator
I’ve been trying to setup smd_gallery with slideshow2, but without succes.
This is my code:
<txp:smd_gallery category="aviatrix" form="slideshow" collate="quote:{imagedef}" />
<div class="slideshow" id="show">
<img src="{imagepath#1}{imagedef#1}" alt="{alt#1}" />
</div>
<script type="text/javascript">
var data = [{imagedef}];
var myShow1 = new Slideshow('show', data,
{controller: true, hu: '{imagepath#1}',);
</script>
See testpage.
It seems that the img elements remain hidden somehow, instead of toggling to visible.
UPDATE:
the above link works. But by adding “www”, the above mentioned problem happens…
Last edited by curiouz (2008-10-04 16:36:08)
Offline
#236 2008-10-04 17:23:08
Re: smd_gallery: super-flexible gallery generator
curiouz wrote:
It seems that the img elements remain hidden somehow, instead of toggling to visible… by adding “www”, the above mentioned problem happens
I’ve seen this before (somewhere in this thread) and I believe it’s to do with the slideshow script or browser not “trusting” the image location. Under Firefox 2, a JS error would be issued that made it obvious, but it appears that under FF3 there isn’t one. Bit of a shame.
I think if you changed your mootools/slideshow <script>
and <link>
tags to include www
as well, it would work. But of course anyone not using the subdomain prefix would see no images. Best thing to do is use an .htaccess rule to force one or the other and then consistently stick to that throughout the site.
Hope that helps.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#237 2008-10-04 17:30:00
- xzamen
- Member
- Registered: 2007-02-12
- Posts: 18
Re: smd_gallery: super-flexible gallery generator
Maybe I’m missing something but I can’t come up with an idea how to insert a newly added image’s thumbnail in the middle of let’s say 100 other thumbnails. Is it possible at all? In general I want to find a way of adding a new thumbnail anywhere between other thumbs. By default it just adds up to the end of the list (gallery).
And also if I use order=“date” what date does it use? image creation or adding to DB?
Offline
#238 2008-10-04 17:44:30
Re: smd_gallery: super-flexible gallery generator
xzamen said
Maybe I’m missing something but I can’t come up with an idea how to insert a newly added image’s thumbnail in the middle of let’s say 100 other thumbnails. Is it possible at all?
Generally, I find it’s a good idea to have a naming convention for gallery pictures like ‘pic_name_010.jpg, pic_name_020.jpg ….. etc’ where 010, 020 etc represents the order that you want the pictures to appear in the gallery. Then use some thing like <txp:smd_gallery category="?Gallery Name" sublevel="all" form="gallery" sort="name asc" />
. Then it’s a cinch to name a file, say, pic_name_011.jpg to appear between 010 and 020.
Obviously it helps to have a file management tool like ACDSee (PC) or ‘A Better Finder Rename’ (Mac) to make light of that work.
Last edited by joebaich (2008-10-04 17:46:58)
Offline
#239 2008-10-07 16:59:57
- curiouz
- Member
- Registered: 2006-06-20
- Posts: 56
Re: smd_gallery: super-flexible gallery generator
Thanks Bloke for the tip!
I’ve edited my .htaccess (see below) and everything works fine in ff3, but not in IE6/7. any thoughts?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Offline
#240 2008-10-15 11:32:13
Re: smd_gallery: super-flexible gallery generator
Hi Bloke, can we expect MLP plugin compatibility in near future?
Thanks!
Offline