Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread N. Turnage

Sean Cribbs wrote:
Actually, it sounds like John Muhl's solution will work best for you - 
you could even keep it tucked away in a snippet.


">...



That worked like a charm! Thanks, Sean & John. I hadn't even thought 
about using a snippet in an inline style.



~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread N. Turnage

Sean Cribbs wrote:
Actually, it sounds like John Muhl's solution will work best for you - 
you could even keep it tucked away in a snippet.


">...


That's not a bad idea, Sean. I think I'll try that this afternoon.


~N
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread Sean Cribbs
Actually, it sounds like John Muhl's solution will work best for you - 
you could even keep it tucked away in a snippet.


">...

Sean

N. Turnage wrote:

Joel Oliveira wrote:
I know I'll come off as the guy who turns to the javascript hammer 
every time he needs a tool to fix a problem -BUT,  that'd be a 3 or 4 
line implementation with some JS.   Or is that out of the question 
for your purposes?


I thought there was something more Radiant specific. Maybe it was the 
banner rotator that I was thinking of, but I don't think I that will 
work for what I am trying to do.


In an ideal world, what I want to do would be this: The css 
background-image property of a div would use a random image from a 
directory of images that have completely random names. The client I am 
building a site for has a Phanfare feed, and I would like to use their 
images as backgrounds. I was thinking about setting up a cron job to 
pull images from their feed into a directory on the web server, then 
randomly choose an image from that directory.


Every javascript solution I have seen requires that the images be 
named "samename_#.jpg" and and a random number is chosen and added 
into the filename. That is probably something I can achieve with the 
radiant random number generator and a stylesheet. I was looking for a 
more automated solution.


Do you know of any javascripts or jQuery scripts that would allow for 
non-uniform file names?





~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread N. Turnage

Joel Oliveira wrote:
I know I'll come off as the guy who turns to the javascript hammer 
every time he needs a tool to fix a problem -BUT,  that'd be a 3 or 4 
line implementation with some JS.   Or is that out of the question for 
your purposes?


I thought there was something more Radiant specific. Maybe it was the 
banner rotator that I was thinking of, but I don't think I that will 
work for what I am trying to do.


In an ideal world, what I want to do would be this: The css 
background-image property of a div would use a random image from a 
directory of images that have completely random names. The client I am 
building a site for has a Phanfare feed, and I would like to use their 
images as backgrounds. I was thinking about setting up a cron job to 
pull images from their feed into a directory on the web server, then 
randomly choose an image from that directory.


Every javascript solution I have seen requires that the images be named 
"samename_#.jpg" and and a random number is chosen and added into the 
filename. That is probably something I can achieve with the radiant 
random number generator and a stylesheet. I was looking for a more 
automated solution.


Do you know of any javascripts or jQuery scripts that would allow for 
non-uniform file names?





~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread Joel Oliveira
I know I'll come off as the guy who turns to the javascript hammer  
every time he needs a tool to fix a problem -BUT,  that'd be a 3 or 4  
line implementation with some JS.   Or is that out of the question for  
your purposes?


- Joel

On May 13, 2009, at 10:07 AM, "N. Turnage"  wrote:

I could have sworn that I had seen an extension that would either  
load a random image or rotate images banner-style, but I cannot find  
it. I need to to be able to set a random background image for a div  
each time the page is loaded/re-loaded. Does anybody know what I am  
talking about? I thought I had seen an extension that would do this  
one time, but with the serious lack of sleep I am experiencing I  
cannot find it.



Thanks,

~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread Sean Cribbs
Although it's very specific to Con-way's use case, the banner_rotator 
extension does just that.  A word of caution though -- the image choice 
will be cached along with the page, so your only chance of a new one is 
every 5 minutes.


Sean

N. Turnage wrote:
I could have sworn that I had seen an extension that would either load 
a random image or rotate images banner-style, but I cannot find it. I 
need to to be able to set a random background image for a div each 
time the page is loaded/re-loaded. Does anybody know what I am talking 
about? I thought I had seen an extension that would do this one time, 
but with the serious lack of sleep I am experiencing I cannot find it.



Thanks,

~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Is there an extension for rotating or random images?

2009-05-13 Thread john muhl
On Wed, May 13, 2009 at 8:07 AM, N. Turnage  wrote:
> I could have sworn that I had seen an extension that would either load a
> random image or rotate images banner-style, but I cannot find it. I need to
> to be able to set a random background image for a div each time the page is
> loaded/re-loaded. Does anybody know what I am talking about? I thought I had
> seen an extension that would do this one time, but with the serious lack of
> sleep I am experiencing I cannot find it.

not sure about any particular extension but the random/options radius
tags are a part of radiant core.


  a
  b
  c


and since 0.6.9 (i think) the options can be dynamic so if you had
page_attachments installed and a bunch of images attached to a banner
page you could do something like:


  

  

  

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant