Closed (fixed)
Project:
Weather
Version:
6.x-5.11
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 May 2009 at 14:09 UTC
Updated:
17 May 2010 at 13:40 UTC
I have a set of weather pngs I would like to incorporate, but I'm not sure how to hook into the modules /images/ directory without editing the module's core? Please advise? I've copied over weather's template file to my theme's directory so I can skin it, but I would also like my theme's /images/ directory to contain my custom weather .png.
Thanks,
Damon
Comments
Comment #1
Colorful Tones commented((((((((((((( HELLOOOO??? )))))))))))))))))
Comment #2
parsley commentedIf you just want to add your own custom icons in place of the default ones from the module, why not just save each new icon in place of the original, then the module will just access the new image.
Comment #3
Colorful Tones commentedYes, but I would rather not modify the module's files, because it is not proper dev etiquette. I know, I know...so prissy.
Comment #4
toddy commentedHm, currently, this is not possible with the weather module. Are there other modules which provide such a functionality?
Comment #5
benahlquist commenteddamon.cook is correct; modifying the module's files is touchy, because whatever changes he makes will be overridden the next time he upgrades the module to a new release.
as I don't see any other way around it, I've done just this--replaced all the weather icons in the module's dir. When an update becomes available, I simply plan to back up the images, perform the update, then replace the images once again.
Not the prettiest solution, but it'll have to do for now!
Comment #6
patcon commentedGiven that there's a whole load of tedious renaming involved (or development of a macro, which isn't easy for everyone), would you mind posting a zip of the images dir that you're using, benahlquist? If the icons are open-license, of course :)
Thanks!
Comment #7
szantog commentedSorry for my english..
This is a patch, that do it. In admin/settings/weather make a new field, there you can set the picture's destination in file system path.
Edit: This need a variable_del('weather_image_path') in .install weather_uninstall() too
Comment #8
toddy commentedHi,
this has been fixed in weather 6.x-5.12.