I am surprised not to find a feature that I thought would be a given when I saw that you can specify how many images can be uploaded. Yet then, when I uploaded all the background images my client wanted to be used for the background (one randomly every time a page loads/reloads), I found that you can just pick one to be the background?
The whole point of "Dynamic" for me was for it to be changeable, not just via UI, but also to be randomly selected and changed by code. Is there any way that this can be done, that Dynamic_Background PICKS an image from those uploaded and shows it as the background, without me having to make a module with a hook, or my own jQuery code? If not, seriously think this module needs this feature. Thanks!
Comments
Comment #1
mahnster CreditAttribution: mahnster commentedIt was even expected, by just what I would think of a module with this name, that it may even, with JavaScript, change the background without the user reloading, and even fade out fade in with a new background, such as black and white photos of a city's skyline (which is what my project requires, but not necessarily reloading the images without a reload, but still would be cool, to have a time between changes to set, etc.)
Comment #2
cableman0408 CreditAttribution: cableman0408 commentedThis is currently not possible, but I like your idea's an this might be something that I'll look into and try to get into the module.
Comment #3
mthiner CreditAttribution: mthiner commentedsubscribe: even if someone could write a script for this module, that would be helpful...
Comment #4
RubenV CreditAttribution: RubenV commentedI hacked this quick and dirty into the dynamic_background.module file.
In that file, replace the 'dynamic_background_dynamic_background_css' function with the following code:
This is ok for my situation, but maybe someone can add some setting to switch this functionality on and off...
Comment #5
cableman0408 CreditAttribution: cableman0408 commentedThe patch above only applies to the 1.x branch :-)
Comment #6
cableman0408 CreditAttribution: cableman0408 commentedI have updated the code to add support for random image selection as a configuration option in the 7.x-2.x development branch.
It have also been built into the extensions.
Comment #7
DD 85 CreditAttribution: DD 85 commentedI also interested in the function of the random background image.
Comment #8
TarekElTabey CreditAttribution: TarekElTabey commentedHey, thanks a lot for Great, Powerful yet Simple module :)
I would like to ask something about your addition "It have also been built into the extensions."
When I enable "Random Image" for the general Settings, I do this because I want all the site pages to display rotating and random images.
But then I use Context to choose an image for each Taxonomy, but the random image also displays in the taxonomy pages, although I disabled "Random Image" feature in Dynamic Backgrounds Context Settings..
Help, Please?
Thanks, Tarek
Comment #9
deanflory CreditAttribution: deanflory commentedTarek, just a thought, but maybe changing your Dynamic Background Weights would create a logic that fits your needs? I have no idea if the random functionality is contained in the weighted option "Dynamic background" on the following admin page or not as there is no "Dynamic background random" item:
/admin/config/user-interface/backgrounds/weight
Comment #10
DHL CreditAttribution: DHL commentedThis module works like a charm. Since I want each node has its own background. But that will occupy a lot of disk space if those background pictures are reside in local disk. Is there a way to use the picture that is reside in online photo hosting ?
Comment #11
deanflory CreditAttribution: deanflory commentedDHL, start a new issue please.
Comment #12
TarekElTabey CreditAttribution: TarekElTabey commenteddeanflory,
Thanks for your quick reply,
and sorry for my late one :S
I checked the weight feature, it's organized in a manner that serve my needs,
but let me ask the question in a different form..
I realised that the module is set -automatically- to slideshow the images uploaded on each refresh, Am I Right?
if so, can't I PAUSE or STOP this slideshow feature when displaying Taxonomy pages, and let the Context display the background I've chosen for each Taxonomy page???
Sorry for the complication requested :)
Thanks, Tarek
Comment #13
deanflory CreditAttribution: deanflory commentedWithout looking at what settings this module has (doing updates at the moment), can't you just rearrange the weighting so that taxonomy or node backgrounds outrank whereever you've been able to set up the random slideshow (or random upon refresh)? That way if you have a general background site-wide, it would be weighted so it is below the node background if one is set, thus showing a node's background if one is selected or uploaded for that one node or taxonomy term.
I haven't looked lately to see if it does have a slideshow feature (nice) but I imagine if it did it wouldn't have a pause or stop button for a page background. You just need to sort your weights.
These are the options on the project page, not seeing one specifically that covers taxonomy, but maybe the context can cover that either directly via taxonomy vocabulary or via path alias recognition:
I'm unsure if you can change weights on contexts so that context 1 has a greater weight over context 2. You'd need to look into that and see if that is an option.
Comment #14
drupal a11y CreditAttribution: drupal a11y commentedOn the topic of "rotation": is there a way to integrate / support the "vegas"-module: https://drupal.org/project/vegas ?
Comment #15
deanflory CreditAttribution: deanflory commentedScrollshow is in development and isn't necessarily a solution for a background image slideshow without scrolling, but with scrolling it can change the background "video" (series of images). When this module gets stable it should be pretty slick with the parallax layers and other goodies. Holding out for the Views integration though.
https://drupal.org/project/scrollshow
Comment #16
tanius CreditAttribution: tanius commentedThis should be in "Needs review" status due to the code from #6, which is in 7.x-2.0-rc4 already.
My review: Works as expected, no flaws found in some months of use. Anyone else?
Comment #17
GiorgosKrandom images is a great idea
but how would it affect caching ? anybody knows ?