Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#916 2012-04-30 11:57:15
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: smd_gallery: super-flexible gallery generator
jakob, yeah, there must have been changes in the code. I had a look at it yesterday and could not tell where the problem came from ;)
Last edited by uli (2012-04-30 11:58:00)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#917 2012-05-01 06:35:14
- Zubanoid
- New Member
- Registered: 2012-04-01
- Posts: 8
Re: smd_gallery: super-flexible gallery generator
Ok, I’m totally lost now. I have tried using the slideshow.js and mootools.js files that go with the plug in. Is it because the versions do not match? Any ideas?
Offline
#918 2012-05-01 08:24:16
Re: smd_gallery: super-flexible gallery generator
Zubanoid wrote:
Ok, I’m totally lost now.
Me too! Let’s step back a step. What exactly are you trying to achieve? Are you trying to replicate the Flash gallery I see at www.linesinthesand.com.au/gallery/? Or replace it with something else?
One other thing to check: if you load both jQuery and mootools on the same page you should follow the compatibility advice and try to consistently use $ for mootools and jQuery for jQuery. Alternatively, run jQuery.noConflict(); and assign the result to a variable to use for future jQuery calls. Even if you don’t actively use jQuery on that page, you should perform this step if it is to co-exist with other libraries.
fwiw, I exclusively use jQuery instead of $ as a function prefix, and leave $ for other libraries. It’s more typing, but causes fewer headaches!
If we can nail down what you want the gallery to look like and what functionality you need it to offer over and above what’s there already, we can start to figure out the best course of action for you. As others have said, you might not even need smd_gallery to achieve what you want. If you can possibly use the core tags, it’s always preferable to a plugin.
Last edited by Bloke (2012-05-01 08:25:23)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Online
#919 2012-05-01 12:11:20
Re: smd_gallery: super-flexible gallery generator
Stef, I think this all has to do with the slideshow on the frontpage. That’s what all the messages about errors in the posts above refer to.
Ok, I’m totally lost now. I have tried using the slideshow.js and mootools.js files that go with the plug in. Is it because the versions do not match? Any ideas?
You write that but are you sure you did actually load both of them? The “slideshow not defined” error you report and the page we are seeing suggest that you did swap out the mootools version but also inadvertently deleted the line that loads the slideshow.js plugin. That’s why you get “slideshow not defined”. Try adding the line back in that loads the slideshow.js and then we take a fresh look.
TXP Builders – finely-crafted code, design and txp
Offline
#920 2012-05-02 05:10:45
- Zubanoid
- New Member
- Registered: 2012-04-01
- Posts: 8
Re: smd_gallery: super-flexible gallery generator
Basically, what I’m after is a simple image fader to dissolve from one image to another.
The story is that I inherited the site from another company and my client didn’t want anything to do with them anymore. Which is a problem because the previous company built the original slideshow using a Flash plugin from slideshowpro.net and I don’t have the credentials to login and change the images. I’m not a fan of having Flash slideshows anyway, why would you bother when JavaScript does it better with no need for a browser plugin… anyway. I’m a kind of “web designer” who dabbles in coding so I get a bit lost with you guys who actually know what you are doing!
I think though that Bloke is on the right track that jQuery is running also and is causing conflicts. But Bloke, you lost me with how to actually use that noConflict thing!??
Here is an example of what I want it to look like:
http://www.electricprism.com/aeron/slideshow/example1.html
I guess there is an obvious problem I have that I’m using someone else’s methods and I have no idea what they have done and don’t want to call them to ask (they charged the client a lot of money for a 10 min phone call from me….)
Thanks for all your help everyone by the way :)
Bill
Offline
#921 2012-05-02 07:32:06
Re: smd_gallery: super-flexible gallery generator
Hi Bill,
if you just want an image fader and want to avoid any conflicts between jquery and mootools, you could try my earlier suggestion (see also colak’s tutorial) for a much leaner overall setup. You won’t need mootools at all for that, which removes any possible conflict problems.
TXP Builders – finely-crafted code, design and txp
Offline
#922 2012-05-11 03:10:25
- Zubanoid
- New Member
- Registered: 2012-04-01
- Posts: 8
Re: smd_gallery: super-flexible gallery generator
Greetings, me again….
One last effort to get this to work…. I tried the txptips that was <a href=“http://txptips.com/simple-image-slideshow-using-jquery-and-native-txp-tags”>posted</a> but to no avail. I followed the instructions carefully but still no joy. There is an error that says $cycle is not a function.
Can I ask one last time how I can get this to work? If I can’t get it going I’m giving up on it. I also plan to rebuild the site myself later.
Bill
Offline
#923 2012-05-11 03:11:23
- Zubanoid
- New Member
- Registered: 2012-04-01
- Posts: 8
Re: smd_gallery: super-flexible gallery generator
oh, the url is: http://www.linesinthesand.com.au/
Sorry about the html, I thought I could put it in and it gets converted automatically…..
Offline
#924 2012-05-11 04:12:03
Re: smd_gallery: super-flexible gallery generator
Hi
Your slide show needs to be in a div with class="slideshow". Also you are not calling an image category (or you just have one image in that category). Can you post the code you are using?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#925 2012-11-12 15:12:07
Re: smd_gallery: super-flexible gallery generator
Possibly my favourite Textpattern plugin!
Hope someone can quickly help me. I want to simply have a page of “albums” then when the user clicks on an album all the thumbnails show for that album on the page.
How is this done in smd_gallery?
Offline
#926 2013-08-21 10:07:41
- M_i
- Member
- Registered: 2006-03-05
- Posts: 122
Re: smd_gallery: super-flexible gallery generator
All I want to do is count the number of article images attached to an article (and output that number in a way that I can do some PHP math with it) – is that possible with this plugin?
I’m currently using your excellent smd_slimbox for my galleries, displaying the article images for each article, so the notation of the image IDs for the article images uses the same format (usually a combination of ranges and comma separated lists).
Offline
#927 2013-08-21 19:43:51
Re: smd_gallery: super-flexible gallery generator
M_i wrote:
All I want to do is count the number of article images attached to an article (and output that number in a way that I can do some PHP math with it) – is that possible with this plugin?
Absolutely:
<txp:smd_gallery id="?article_image" limit="1">{maximages}</txp:smd_gallery>
The limit just stops the value of the maximum number of images from being displayed more than once. If you assigned this to a txp:variable you could do maths on it in PHP, or you could use the excellent adi_calc to help do some maths in a less geeky manner than reverting to PHP.
Also note, btw, that the value of {maximages} takes ranges into account and only counts images that exist. So if your list of article image IDs contained some images that had been deleted or there were bogus numbers in there, the plugin doesn’t care.
Hope that helps.
Last edited by Bloke (2013-08-21 19:46:29)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Online
#928 2013-08-23 08:29:48
- M_i
- Member
- Registered: 2006-03-05
- Posts: 122
Re: smd_gallery: super-flexible gallery generator
Bloke wrote:
The
limitjust stops the value of the maximum number of images from being displayed more than once.
Ah! I was mucking about with {totalimages} instead of {maximages} and couldn’t figure out how to get the number just once. So simple!
Bloke wrote:
Hope that helps.
It does indeed! Thank you very much!
Offline
#929 2013-11-12 21:02:27
- robew
- New Member

- Registered: 2013-11-12
- Posts: 2
Re: smd_gallery: super-flexible gallery generator
I’ve searched this forum but didn’t find my issue – if I missed it please point me to it.
The problem I’ve run into has to do with the difference in behavior between “limit” and “thumblimit” attributes of the smd_gallery tag.
I’m trying to display a limited list of thumbnails with next and prev navigation. When viewing the full sized images (using smd_slimbox) referred to hereafter as “the lightbox”. I want the prev/next navigation to display images beyond what are shown in the thumbnail list, e.g. there are 8 images in the gallery, the thumbnail list shows 5 at a time, when viewing image 5 in the lightbox clicking “next” will display image 6 and so on until image 8.
To get the prev/next navigation with the thumbnails I have to use “limit”, that properly restricts the number of thumbnail images as well, it also restricts the lightbox to only navigate the images shown in the thumbnail list and not the entire gallery.
To be able to lightbox the entire gallery while limiting the number of thumbnails I can use “thumblimit”, but this won’t display prev/next links with the thumbnail list.
Any help is appreciated.
Offline
#930 2013-11-12 21:42:43
Re: smd_gallery: super-flexible gallery generator
robew wrote:
I’m trying to display a limited list of thumbnails with next and prev navigation.
Congratulations: I think you’ve found a limit to this plugin’s capabilities ;-)
I never considered the situation you might wish to independently paginate both thumbs and full size images. Can’t think of a neat way to handle it. It gets messy whichever way you try to bend the plugin with count forms or paging.
I’d be tempted to use no limits and employ a Javascript pagination plugin to hide the thumbnails in steps of 5 images. That way, you have control over how the thumbs behave / slide / fade. There may even be a Javascript gallery plugin you can use which will add the pagination from the full set of images / thumbs on the page. In which case, you probably won’t need smd_gallery at all and should try the built-in <txp:images> tag instead, which is versatile enough in the situation to drop suitable markup on the page.
Hope that helps.
Last edited by Bloke (2013-11-12 21:43:22)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Online