Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#805 2011-03-07 09:30:17

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_gallery: super-flexible gallery generator

I’m not sure if this is possible anyway… Argh, lost.

Last edited by hablablow (2011-03-07 09:33:20)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#806 2011-03-07 10:41:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: smd_gallery: super-flexible gallery generator

hablablow wrote:

Is it possible to increment {counter} by 1 each time we have a group of 10 images in the same category ?

Not sure if it’s possible (slash a good idea) to modify the in-built counters but I don’t see why you couldn’t utilise a countform like this:

countform="smd_every:10:inc_counter"

And inside your inc_counter form use rvm_counter or adi_calc to increment a txp:variable which you then use in your main smd_gallery form/container.

To make the counter work per category I would guess if you were ordering by category and reset the counter to 0 each time there’s a change in category (perhaps in an onchangeform?) that would go some way to making it behave in a way that meets your goal.


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

#807 2011-03-07 11:00:00

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: smd_gallery: super-flexible gallery generator

This sounds great Stef…

I will return with ze rezults…

<txp:super-flexible_thanks />

Last edited by hablablow (2011-03-07 11:00:57)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#808 2011-03-15 23:48:49

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: smd_gallery: super-flexible gallery generator

Hi there,

This is probably very simple but can’t seem to get it to work… looking for an easy image slider which fades into each image nicely. I’ve uploaded your plugin and am amazed at all you can do with it! Bit overwhelming for a total noob like me! I’m wondering if it’s because I don’t have the mootools.js? Is that installed in texpattern as default? I’m not getting any notices saying javascript not found… so could be something else?

I’ve got a form entitled gallery with following code:
<div class=“slideshow” id=“slideshow1”> <img src=”<txp:txp:www.kimstewart/textpattern-4.3.0/images/{id#1}.jpg” alt=”{alt#1}” width=”{width#1}” height=”{height#1}” />
</div>

Then I’ve got an article with the following code:
<txp:smd_gallery category=“sigma 6” form=“gallery” combo=“imglist:{id}{ext}” collate=“quote:{imglist}:{alt}” />

(Only have two images in sigma 6 category so far… could this be the reason?

Also in pages head:
<script type=“text/javascript” src=”/js/mootools.js”></script>
<script type=“text/javascript” src=”/js/slideshow.js”></script>

Apologies for such a simple question… I know I’m missing something really obvious but still getting used to textpattern.

Many thanks in advance for any help given!


www.kimstewart.co.uk

Offline

#809 2011-03-15 23:55:44

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: smd_gallery: super-flexible gallery generator

Sorry, shoulda posted my site url:
http://www.kimstewart.co.uk/textpattern-4.3.0/

(I’d like the slideshow to appear where the static image currently is.)


www.kimstewart.co.uk

Offline

#810 2011-03-16 00:14:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kstewart wrote:

Bit overwhelming for a total noob like me!

Hehe, sometimes it overwhelms me, so you’re not alone :-)

I’m wondering if it’s because I don’t have the mootools.js?

If I view the source of your page and click the /js/mootols.js link I get a 404, so that would certainly be part of it. Once you alter your link to point to the actual mootools.js file you’ve uploaded to your server you’ll be one step closer. jQuery is installed by default in Textpattern so if you can find a slideshow script that uses jQuery then all you need to do is load jQuery with:

<script type="text/javascript" src="<txp:site_url />textpattern/jquery.js"></script>

and upload / install the relevant scripts that come with the slideshow. I can heartily recommend jQuery Cycle (or even CycleLite if you only need simple transitions).

<img src=”<txp:txp:www.kimstewart/textpattern-4.3.0/images/{id#1}.jpg”

That doesn’t quite look right. You should have {http://}www.kimstewart…

The slideshow output is the most complex one to start with so if you can get the functionality you require with a simpler plugin (like Cycle) then I’d go with that first. But if you really need the power of slideshow it’s not insurmountable, just a little picky. Post back here with your findings/thoughts and we’ll go from there.


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

#811 2011-03-16 12:30:47

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: smd_gallery: super-flexible gallery generator

Thank you so much! Cycle Lite’s worked perfectly! Also it’s easy to update images and alter their size. (Though I prefer them all to be the same size so will resize them later).

Now I just have to fix my video gallery and I’ll have the site I want! Cheers!


www.kimstewart.co.uk

Offline

#812 2011-03-29 15:16:27

chume
Member
Registered: 2009-12-03
Posts: 27

Re: smd_gallery: super-flexible gallery generator

Hello,

Great plugin Stef.
Any idea how Jonathan got his project done with smd_gallery. I would like to know the plugins he used to achieve the result in http://spaintennisacademy.com/photos/.

Thank you.

Chume

Offline

#813 2011-03-29 21:40:51

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: smd_gallery: super-flexible gallery generator

Hey chume – I think he would have used http://www.twospy.com/galleriffic/

Not sure if he used smd_gallery for this – because he has wrote 2 tutorials on txptips.com without, one old method and one using native txp tags

Offline

#814 2011-03-29 22:44:08

chume
Member
Registered: 2009-12-03
Posts: 27

Re: smd_gallery: super-flexible gallery generator

Thank you Tye for responding.
I think he used smd_gallery for that particular project based on his forum posts but I wanted to know if other plugins are used to make it happen.

Chume

Last edited by chume (2011-03-29 23:18:51)

Offline

#815 2011-04-04 18:28:15

maxk
Member
Registered: 2010-02-17
Posts: 11

Re: smd_gallery: super-flexible gallery generator

Greetings,

I am trying to set up a site using the smd_gallery, and also smd_tags. I need the ability to put images into multiple categories, and it seems that smd_tags is the way to go, but I haven’t been able to figure out how to use the tags to serve as my image/gallery categories.

The galleries are simple, no captions just the images. I am simply outputting a list of images to the page and using jquery cycle plugin to create a slideshow.

Ultimately, I also need to modify the cno_image_order plugin so that images in multiple categories can be put in an absolute order in each gallery, but I am considering that a problem to solve later. I don’t think this is relevant to my question, but wanted to throw this in in case it might cause a problem.

My site is here: http://jameskegley.com/txp/

I am not sure how to find images using the tags, and then pass them into the smd_gallery for output?

Any suggestions or advice would be greatly appreciated. thanks.

Offline

#816 2011-04-19 20:53:04

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: smd_gallery: super-flexible gallery generator

Guys:

Hope someone can help me out. I have used smd_gallery in the past and it worked great. I am now attempting to use it with a different player (http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm) and I am coming across an issue. I have been unsuccesful in referencing it so the player works. The player I am trying to integrate it with now, pulls the images as follows:

imagearray: [
		["http://www.xxxxx.com/images/19.jpg"],
		["http://www.xxxxx.com/images/25.jpg"],
		["http://www.xxxxx.com/images/17.jpg"],
		["http://www.xxxxx.com/images/18.jpg"]
	],

In the past, the players have all referenced the images as straight lists which I could integrate easily.

Any assistance would be appreciated.

progre55

Last edited by progre55 (2011-04-19 20:54:14)

Offline

Board footer

Powered by FluxBB