+ Reply
Page 762 of 878 FirstFirst ... 262 662 712 752760761762763764 772 812 862 ... LastLast
Results 15,221 to 15,240 of 17556

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: UniAW6.0 for iph4 & iph5

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
Originally Posted by Darrenrooster Just a question, if anyone could help please. On the uniaw6.4 i am trying to move the description. I have changed alignment to the left (which
...
  1. #15221
    Theme Modder nateD's Avatar
    Join Date
    Dec 2011
    Location
    Sydney, Australia
    Posts
    1,407
    Thanks
    11,321
    Thanked 9,128 Times in 1,301 Posts

    Quote Originally Posted by Darrenrooster View Post
    Just a question, if anyone could help please.

    On the uniaw6.4 i am trying to move the description. I have changed alignment to the left (which it goes to the left) however no matter what value i put in the left: it wont move left? i have even put in a figure of 200px and still doesnt move? is there somewhere else i can do this?
    Check the accuweather and yahoo js files mate.. If using ifile just use the search function to search for "desc"(include the inverted commas)and you'll see some styling info like font-size etc..you just need to delete the text-align styling here and then you can style it via CSS.. As always, make a copy of the js before you make changes and reload it because the tiniest error will break the mod(I've learned that the hard way...more than once lol )

    Quote Originally Posted by LWalsh View Post
    I just downloaded this. I loved the weather as part of the Shine theme. Lost that theme with the iOS 7 update so I was thrilled to find this! Can someone explain the little empty box next to "fair"? I'm not sure what I did. Attachment 657794

    I didn't change a thing, and now I just get this. Attachment 657797
    Which mod are you using? The empty box l think means it's looking for an image it can't find...the second pic I looks just like a wallpaper lol
    Last edited by nateD; 02-16-2014 at 07:51 PM.

  2. The Following User Says Thank You to nateD For This Useful Post:

    Darrenrooster (02-17-2014)

  3. #15222
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,342
    Thanks
    4,264
    Thanked 4,744 Times in 1,054 Posts

    Playing with the Day0Icon (current condition) and UI Touch Punch: jQuery UI Touch Punch - Touch Event Support for jQuery UI. I've seen this on a few LS around and wanted to take a crack at it myself. The dev made it super easy.

    Basically move any element you want, anywhere just by touch...


    Day0Icon - YouTube

  4. The Following 12 Users Say Thank You to Marty McFly For This Useful Post:

    bliken (02-16-2014), BootsBrown (02-16-2014), chevymusclecar (02-16-2014), ferlop15 (02-17-2014), Ian Nicoll (02-17-2014), jma1 (02-18-2014), lostinthemes (02-17-2014), nateD (02-16-2014), pnunez1310 (02-16-2014), RKO1195 (02-17-2014), sethbossfan (02-18-2014), The_Durben (02-17-2014)

  5. #15223
    My iPhone is a Part of Me bliken's Avatar
    Join Date
    Apr 2013
    Posts
    724
    Thanks
    689
    Thanked 418 Times in 282 Posts

    Looks great Gary....what LS is that. Is it in this thread?


    Quote Originally Posted by Marty McFly View Post
    Playing with the Day0Icon (current condition) and UI Touch Punch: jQuery UI Touch Punch - Touch Event Support for jQuery UI. I've seen this on a few LS around and wanted to take a crack at it myself. The dev made it super easy.

    Basically move any element you want, anywhere just by touch...


    Day0Icon - YouTube

  6. #15224
    Livin the iPhone Life BootsBrown's Avatar
    Join Date
    Jan 2014
    Posts
    1,018
    Thanks
    2,345
    Thanked 1,147 Times in 537 Posts

    Quote Originally Posted by tcm1998 View Post
    Additionally, you could add the red lines below to the fetchWeatherData function (same files)

    for yahoo:
    Code:
    obj.state = $(data).find('location').attr('region');
    obj.humidity = $(data).find('atmosphere').attr('humidity');
    obj.windunit =  $(data).find('units').attr('speed');
    for accuweather:
    Code:
    obj.state = $.trim($(this).find('State').text()); 
    obj.windspeed = $.trim($(this).find('WindSpeed').text()) * 1;
    obj.humidity = $.trim($(this).find('Humidity').text());
    then you can change Ian's code to ...

    Code:
    document.getElementById("city").innerHTML = obj.city + "," + obj.state;
    Should work with or without GPS.
    @tcm...if I'm not using accuweather do I need to add it in file? THAT file is a lil intimidating...haha!

    TIA

  7. #15225
    Green Apple
    Join Date
    Jan 2014
    Posts
    71
    Thanks
    31
    Thanked 204 Times in 44 Posts

    Quote Originally Posted by BootsBrown View Post
    @tcm...if I'm not using accuweather do I need to add it in file? THAT file is a lil intimidating...haha!
    TIA
    I don't see why that file would be more intimidating than the yahoo version, but no, you can leave the accuweather files untouched if you only use yahoo. I just wanted to be complete with my suggestion.

  8. The Following 6 Users Say Thank You to tcm1998 For This Useful Post:

    Bacardi85 (02-17-2014), BootsBrown (02-17-2014), ferlop15 (02-17-2014), King_O_Hill (02-19-2014), menard_00 (02-20-2014), The.Drifter (02-17-2014)

  9. #15226
    Theme Modder
    Join Date
    Apr 2012
    Posts
    1,262
    Thanks
    1,954
    Thanked 5,433 Times in 1,048 Posts

    Thank you Ian for the Day0Icon, it's really nice!!....and thanks tcm, for the obj.state code, is there a way to have it spelled out?....or is it controlled by the yahoo feed entirely?

    Edit: on second thought, maybe abbreviated is better, nvm.

    Last edited by ferlop15; 02-17-2014 at 03:57 AM.

  10. The Following 5 Users Say Thank You to ferlop15 For This Useful Post:

    BootsBrown (02-17-2014), Ian Nicoll (02-17-2014), jma1 (02-18-2014), King_O_Hill (02-19-2014), nateD (02-17-2014)

  11. #15227
    Livin the iPhone Life roman3001's Avatar
    Join Date
    Sep 2009
    Location
    Germany
    Posts
    1,503
    Thanks
    294
    Thanked 706 Times in 426 Posts

    Possible to get this 👆 as iWidget?

  12. #15228
    Theme Modder
    Join Date
    Apr 2012
    Posts
    1,262
    Thanks
    1,954
    Thanked 5,433 Times in 1,048 Posts

    NewD is working on that, I believe....Hopefully he's making some progress,

  13. #15229
    ----NewD 2.0---- NewdestinyX's Avatar
    Join Date
    Jan 2012
    Posts
    9,820
    Thanks
    4,193
    Thanked 8,989 Times in 4,509 Posts

    Quote Originally Posted by ferlop15 View Post
    NewD is working on that, I believe....Hopefully he's making some progress,
    Lol!! If my "real life" would give me a break to work on my phone! Lol..
    Here to help if I can. If I can't I know someone who can!

  14. #15230
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,342
    Thanks
    4,264
    Thanked 4,744 Times in 1,054 Posts

    Please Note: I should mention that this applies to NON Widget Weather versions. I thought it was pretty obvious as WW widgets do not have a location.js file but thought I should clarify anyway.

    Hi everyone. I've been reading the comments about adding 'State' to your widget and I believe there is a better way.

    Ian's suggestion was to add it manually which means it's not GPS based and it will not change if you travel. Tcm1998 then suggested pulling it from the Yahoo and Accuweather data feeds however I've often found 'State' is left blank in those.

    In my humble opinion it's better to pull the State in the location.js files where all of the other location information is coming from.

    Here is the very simple way. You just need to add these two small lines in red to both location.js files:

    Code:
    var prevlatitude;
    var prevlongitude;
    var city;
    var textLat;
    var textLong;
    var neighborhood="";
    var state="";
    Code:
    city = data.query.results.Result.city;
    state = data.query.results.Result.state;
    neighborhood = data.query.results.Result.neighborhood;
    Then in both UniAW js files, it's just a matter of altering this line to add the state:

    Code:
    document.getElementById("city").innerHTML = obj.city + ", " + state;
    Here is the result:

    UniAW6.0 for iph4 & iph5-new-1.png

    Again, this is the quick and dirty way where the full state name is just appended to the city name. It can easily be setup with it's own CSS element so it can be placed anywhere. Also can easily be trimmed to the abbreviated version. But this method is totally GPS based

    P.S. Happy Family Day to my fellow Canadians!

    EDIT: I didn't include the config switch to turn this method on/off but happy to post if someone would like.

  15. The Following 11 Users Say Thank You to Marty McFly For This Useful Post:

    Darrenrooster (02-17-2014), ferlop15 (02-17-2014), Ian Nicoll (02-17-2014), King_O_Hill (02-19-2014), nateD (02-17-2014), NewdestinyX (02-17-2014), Platini2000 (02-17-2014), RKO1195 (02-17-2014), sethbossfan (02-17-2014), tcm1998 (02-17-2014), The_Durben (02-17-2014)

  16. #15231
    widget modder RKO1195's Avatar
    Join Date
    Aug 2010
    Location
    Alabama
    Posts
    2,326
    Thanks
    10,653
    Thanked 5,371 Times in 1,809 Posts

    Thanks Marty this is how out first GPS widgets was when myLocation came out it had it like that

  17. The Following 3 Users Say Thank You to RKO1195 For This Useful Post:

    Marty McFly (02-17-2014), nateD (02-17-2014), The_Durben (02-17-2014)

  18. #15232
    Theme Modder
    Join Date
    Apr 2012
    Posts
    1,262
    Thanks
    1,954
    Thanked 5,433 Times in 1,048 Posts

    Quote Originally Posted by NewdestinyX View Post
    Lol!! If my "real life" would give me a break to work on my phone! Lol..
    Lol, of course!....At your leisure, bud.

  19. #15233
    My iPhone is a Part of Me signori's Avatar
    Join Date
    Oct 2007
    Location
    Toronto
    Posts
    521
    Thanks
    283
    Thanked 315 Times in 180 Posts

    Quote Originally Posted by Marty McFly View Post
    Please Note: I should mention that this applies to NON Widget Weather versions. I thought it was pretty obvious as WW widgets do not have a location.js file but thought I should clarify anyway.

    Hi everyone. I've been reading the comments about adding 'State' to your widget and I believe there is a better way.

    Ian's suggestion was to add it manually which means it's not GPS based and it will not change if you travel. Tcm1998 then suggested pulling it from the Yahoo and Accuweather data feeds however I've often found 'State' is left blank in those.

    In my humble opinion it's better to pull the State in the location.js files where all of the other location information is coming from.

    Here is the very simple way. You just need to add these two small lines in red to both location.js files:

    Code:
    var prevlatitude;
    var prevlongitude;
    var city;
    var textLat;
    var textLong;
    var neighborhood="";
    var state="";
    Code:
    city = data.query.results.Result.city;
    state = data.query.results.Result.state;
    neighborhood = data.query.results.Result.neighborhood;
    Then in both UniAW js files, it's just a matter of altering this line to add the state:

    Code:
    document.getElementById("city").innerHTML = obj.city + ", " + state;
    Here is the result:

    Attachment 657911

    Again, this is the quick and dirty way where the full state name is just appended to the city name. It can easily be setup with it's own CSS element so it can be placed anywhere. Also can easily be trimmed to the abbreviated version. But this method is totally GPS based

    P.S. Happy Family Day to my fellow Canadians!

    EDIT: I didn't include the config switch to turn this method on/off but happy to post if someone would like.
    Hey Marty. Is there a way to add this to Widget Weather themes like the code above. Or is Tcm1998 way the best way to do this for Widget Weather. Thanks very much.

  20. The Following User Says Thank You to signori For This Useful Post:

    Marty McFly (02-17-2014)

  21. #15234
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,342
    Thanks
    4,264
    Thanked 4,744 Times in 1,054 Posts

    Quote Originally Posted by signori View Post
    Hey Marty. Is there a way to add this to Widget Weather themes like the code above. Or is Tcm1998 way the best way to do this for Widget Weather. Thanks very much.
    Hey bro. With WW it's even easier because "State" is already included in the XML file and can be retrieved just like anything else . Let me know if you need more info but I suggest taking a look at the 'base theme' that gets installed with WW as that shows you the code required to bring in every element from the XML.

  22. The Following 3 Users Say Thank You to Marty McFly For This Useful Post:

    BootsBrown (02-17-2014), King_O_Hill (02-19-2014), The_Durben (02-17-2014)

  23. #15235
    Green Apple
    Join Date
    Jan 2014
    Posts
    71
    Thanks
    31
    Thanked 204 Times in 44 Posts

    Quote Originally Posted by Marty McFly View Post
    Hi everyone. I've been reading the comments about adding 'State' to your widget and I believe there is a better way.

    Ian's suggestion was to add it manually which means it's not GPS based and it will not change if you travel. Tcm1998 then suggested pulling it from the Yahoo and Accuweather data feeds however I've often found 'State' is left blank in those.
    At first, I was going to get it from the location.js files, but thought it was ONLY one extra step. Since I don't live in the USA, I didn't know the state info in the weather-feed are often empty. Thanks for the addition.

  24. The Following 4 Users Say Thank You to tcm1998 For This Useful Post:

    BootsBrown (02-17-2014), King_O_Hill (02-19-2014), Marty McFly (02-17-2014), nateD (02-17-2014)

  25. #15236
    Livin the iPhone Life Darrenrooster's Avatar
    Join Date
    Nov 2009
    Location
    Nottingham, UK
    Posts
    1,542
    Thanks
    11,825
    Thanked 1,083 Times in 570 Posts

    Quote Originally Posted by nateD View Post
    Check the accuweather and yahoo js files mate.. If using ifile just use the search function to search for "desc"(include the inverted commas)and you'll see some styling info like font-size etc..you just need to delete the text-align styling here and then you can style it via CSS.. As always, make a copy of the js before you make changes and reload it because the tiniest error will break the mod(I've learned that the hard way...more than once lol )
    Perfect mate, thanks very much

  26. The Following User Says Thank You to Darrenrooster For This Useful Post:

    nateD (02-17-2014)

  27. #15237
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,342
    Thanks
    4,264
    Thanked 4,744 Times in 1,054 Posts

    Hi everyone,

    Here's something I found interesting this morning while on the topic of 'location.js' files...

    If you open up a 'location.js' file from ANY myLocation based theme, you will likely see the following Yahoo URL call. This uses the coordinates from your myLocation.txt file to determine your location:

    "http://query.yahooapis.com/v1/public/yql?q=select * from geo.placefinder where text="'+latitude+','+longitude+'" and gflags="R"&format=json"

    I've never been shy about posting my location With my home GPS coordinates, this is the URL I get...

    http://query.yahooapis.com/v1/public...22&format=json

    If you have a look at the above page, you can see that similar to the Widget Weather XML file, there is a ton of location data we have access to......including street address! The above page pinpoints my correct address exactly - 16 Brookwood Drive. That's pretty impressive. Using the Google locator (image from Rasputin cydget below), I only get an address range - still impressive (and correct) but not an exact address!

    UniAW6.0 for iph4 & iph5-photo.png

    I know a lot of people out there like to bash the Yahoo weather service - fair enough. But I think their location service via GPS coordinates, is spot on! Here is what it looks like with address data added to the widget...

    UniAW6.0 for iph4 & iph5-new-1.png

    I'd like to try to get this address data in Widget Weather based themes but that would involve adding this Yahoo call - kind of defeats the purpose of Widget Weather and having an XML file locally

  28. The Following 12 Users Say Thank You to Marty McFly For This Useful Post:

    BootsBrown (02-17-2014), Darrenrooster (02-20-2014), DEH (02-17-2014), Destan (02-17-2014), Ian Nicoll (02-17-2014), lostinthemes (02-17-2014), MamaJaay (02-17-2014), menard_00 (02-20-2014), nateD (02-17-2014), NewdestinyX (02-17-2014), Platini2000 (02-17-2014), The_Durben (02-17-2014)

  29. #15238
    iPhoneaholic Destan's Avatar
    Join Date
    Jan 2012
    Location
    Home
    Posts
    458
    Thanks
    1,306
    Thanked 845 Times in 263 Posts

    Nice Marty,it would be cool if you got the address to LS or widgets

  30. The Following User Says Thank You to Destan For This Useful Post:

    Marty McFly (02-17-2014)

  31. #15239
    The Formulator Marty McFly's Avatar
    Join Date
    Mar 2013
    Location
    Barrie
    Posts
    1,342
    Thanks
    4,264
    Thanked 4,744 Times in 1,054 Posts

    Quote Originally Posted by Destan View Post
    Nice Marty,it would be cool if you got the address to LS or widgets
    Done. Current street address (according to Yahoo) on a Widget Weather Lockscreen using the GPS coordinates in the widgetweather.xml file.

    UniAW6.0 for iph4 & iph5-photo.png

    Still need to fine tune the code but it's working. Adding the Yahoo call is very simple and only a few lines of code. Will report back asap!

  32. The Following 9 Users Say Thank You to Marty McFly For This Useful Post:

    bliken (02-17-2014), Darrenrooster (02-20-2014), DEH (02-17-2014), Destan (02-17-2014), j0k3r (02-17-2014), nateD (02-17-2014), nik1975 (02-17-2014), Platini2000 (02-17-2014), The_Durben (02-17-2014)

  33. #15240
    Livin the iPhone Life BootsBrown's Avatar
    Join Date
    Jan 2014
    Posts
    1,018
    Thanks
    2,345
    Thanked 1,147 Times in 537 Posts

    Quote Originally Posted by Marty McFly View Post
    Please Note: I should mention that this applies to NON Widget Weather versions. I thought it was pretty obvious as WW widgets do not have a location.js file but thought I should clarify anyway.

    Hi everyone. I've been reading the comments about adding 'State' to your widget and I believe there is a better way.

    Ian's suggestion was to add it manually which means it's not GPS based and it will not change if you travel. Tcm1998 then suggested pulling it from the Yahoo and Accuweather data feeds however I've often found 'State' is left blank in those.

    In my humble opinion it's better to pull the State in the location.js files where all of the other location information is coming from.

    Here is the very simple way. You just need to add these two small lines in red to both location.js files:

    Code:
    var prevlatitude;
    var prevlongitude;
    var city;
    var textLat;
    var textLong;
    var neighborhood="";
    var state="";
    Code:
    city = data.query.results.Result.city;
    state = data.query.results.Result.state;
    neighborhood = data.query.results.Result.neighborhood;
    Then in both UniAW js files, it's just a matter of altering this line to add the state:

    Code:
    document.getElementById("city").innerHTML = obj.city + ", " + state;
    Here is the result:

    Attachment 657911

    Again, this is the quick and dirty way where the full state name is just appended to the city name. It can easily be setup with it's own CSS element so it can be placed anywhere. Also can easily be trimmed to the abbreviated version. But this method is totally GPS based

    P.S. Happy Family Day to my fellow Canadians!

    EDIT: I didn't include the config switch to turn this method on/off but happy to post if someone would like.
    Hey Marty, thanx for this. sounds good but a simple question..would I need to then turn "use neighborhood" in Widget Weather? And sorry to ask but new at this..what do u mean by State is left blank?

    tcm & Ian I finally got it set up from y'all's instructions & appreciate the help!

    ImageUploadedByModMyi1392668375.796969.jpg
    Now I just gotta fine tune the shadows & ask how in thee Sam Hill do I get rid of "feels like" I've added display: none; at the end but it ain't willin to die!!!

    Thanx guys

  34. The Following 2 Users Say Thank You to BootsBrown For This Useful Post:

    Marty McFly (02-17-2014), tcm1998 (02-17-2014)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts