Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aro_slideshow v2
mrdale wrote:
Could you give me a little detail about what
myShow0.props.images.shift();does? And would this use the first image once and then continue cycling without it?
Exactly. It just pops the first image off the images array. The first image is already set to the <img> tag in your HTML by the plugin – if Javascript were disabled that image would still appear, albeit static – however by popping it off the array it will never appear again when the slideshow loops.
Last edited by rloaderro (2007-09-07 21:44:24)
Travel Atlas * Org | Start Somewhere
Offline
Re: aro_slideshow v2
Ahah! that’s much simpler. Thanks. so it would be…
<txp:aro_slideshow category="blah-blah" callback="myShow0.props.images.shift();" />
and you can combine callbacks as well right?
Offline
Re: aro_slideshow v2
mrdale wrote:
and you can combine callbacks as well right?
Sure – it’s just Javascript. Just tack it onto the end of the previous one.
Travel Atlas * Org | Start Somewhere
Offline
Re: aro_slideshow v2
Thanks Aeron
One more question. Could you help me hack your plugin to output <p class="image-name"> or <p class="%alt%"> for the caption? I spooped around and couldn’t see where that could be done.
Last edited by mrdale (2007-09-11 22:17:35)
Offline
Re: aro_slideshow v2
mrdale wrote:
One more question. Could you help me hack your plugin to output
<p class="image-name">or<p class="%alt%">for the caption? I spooped around and couldn’t see where that could be done.
I think that wouldn’t be so easy to do because the caption is inserted into the p element in the Javascript. What kind of functionality do you need exactly: do you need to be able to apply different classes depending on the image? or just one class per slideshow?
Travel Atlas * Org | Start Somewhere
Offline
Re: aro_slideshow v2
different classes or id depending on the image.
How about replacing the p with a div, then I can put the p-tag in myself in the plugin call.
Last edited by mrdale (2007-09-11 22:37:28)
Offline
Re: aro_slideshow v2
mrdale wrote:
How about replacing the p with a div, then I can put the p-tag in myself in the plugin call.
I think the probably with that would be conflicts with other DIVs already inside the slideshow element and the internal CSS of the javascript that would be hard to override (definitely planning to remove all styles from the JS for the next version). You might have better luck simply wrapping your captions with a span + class from within TXP: <span class='something'>My caption here!!</span> then you can define the styles however you like in your CSS. Do you think that would work?
Travel Atlas * Org | Start Somewhere
Offline
Re: aro_slideshow v2
I was hoping to stay as semantic as possible, and still have two levels of styling hooks. But you’re right, I think I can manage it like this… inside the <p>
<span id='%alt%'><span><strong>%alt</strong> %caption%</span></span>
I suppose I could also call it manually. But that is a really complicated peice of code using three plugins…
Thanks for your help. It’s amazing what you can do with this script.
Last edited by mrdale (2007-09-11 23:04:45)
Offline
Re: aro_slideshow v2
OK so it all works with this technique but there’s a time lag and you lose the nice transparency effects.
One last idea. how about a hack to replace the surrounding p with a span? then i could replace the internal classed span with a classed p.
Offline
#85 2007-09-19 21:13:35
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: aro_slideshow v2
rloaderro:
Thanks for the great plug in. I have used the previous version and it works like a charm.
With the new version, I am getting some odd behaviour. When I have the plug in running (it works fine) but it has a bottom margin of about 47 pixels. I noticed this because of the space (gap) between the image (plug in) and my other elements that I have appearing below that area.
If I remove the plug in and place either a static image or text in its place everythign works like a charm.
I atempted to set the plug in’s height and width and it still caused the same problem. The reason I know the pixel dimensions, is that I kept on adjusting the plug in’s height until it worked.
Am I missing something? Any asistance would be greatly appreciated.
PS: I am not using captions, although if I had to guess it is leaving an area just in case I decide to (if that makes any sense).
Thanks.
progre55
Last edited by progre55 (2007-09-19 21:21:02)
Offline
Re: aro_slideshow v2
progre55 wrote:
I am not using captions, although if I had to guess it is leaving an area just in case I decide to (if that makes any sense).
I seem to remember that the plugin has a bug that creates the caption element even if there are no captions. I am 100% sure this can be resolved with CSS though – try setting:
div.slideshow p { display: none }
This might be mentioned previously in this thread as well.
Travel Atlas * Org | Start Somewhere
Offline
#87 2007-09-20 03:38:12
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: aro_slideshow v2
rloaderro:
Thank You. That did the trick.
progre55
Offline
#88 2007-09-25 06:22:22
- joseph@bigfresh.com
- New Member
- From: Bellingham, WA
- Registered: 2007-09-25
- Posts: 1
Re: aro_slideshow v2
Hi, just wanted to say I’m love with your slideshow. For all intensive purposes I’m trying to keep the timer/duration from attempting to go to the next slide so that navagation is left up to the user with the Thumbnails. Applying the Duration: [500] keeps its from sliding, but the hour glass is still attempting to slide. Is there a way/hack to stop this?
Thanks,
Joseph
Offline
#89 2007-09-26 18:44:57
- Logoleptic
- Plugin Author

- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: aro_slideshow v2
I’ve had nothing but trouble trying to get a similar slideshow effect working in Safari 2.x (albeit with different JavaScript). Is it possible to use aro_slideshow to produce a slideshow of images that link somewhere?
The other thread I’ve linked to can give you some idea of what I’m talking about.
Offline
Re: aro_slideshow v2
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline