Page 1 of 355 123 11 51 101 ... LastLast
Results 1 to 20 of 7094

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


Thread: [Tweak] iWidgets

  1. #1
    Default [Tweak] iWidgets
    This tweak is based on the awesome PerPageHTML, with some changes to address my personal preferences. Credits to WyndWarrior for the great work and code snippet which helped me get started (http://modmyi.com/forums/iphone-4-ne...rpagehtml.html). The concept is mostly similar to PPH, for differences in usage and creation of widgets, see sections below.

    Installation
    Cydia:
    Search and install iWidgets (ModMyi repo)
    To find more widgets, search "iWidget" in Cydia.

    Manual (+ previous versions, if latest doesn't work for you somehow):
    iWidgets 1.1.2
    iWidgets 1.1.1
    iWidgets 1.1.0

    Here are some sample widgets. Please do not ask me to update them as I do not own or maintain any widgets. I've merely converted them into iWidgets as samples for widget developers to learn from. All credits go to their original creators.
    HTC
    ASUS

    Usage
    Place widgets in /var/mobile/Library/iWidgets
    Preference file is /var/mobile/Library/Preferences/iWidgets.plist
    Long press on blank areas on SpringBoard to bring up menu for adding widgets.
    Long press on any icons or widgets to trigger edit mode, then drag and drop to arrange widgets.

    Screenshots
    -1.png-2.png-3.png-4.png

    Widget Developers
    Widget's css top & left properties should be zeroed.
    Widgets can have simple user interaction such as button presses.
    A new file which defines the widget's dimensions, Widget.plist, must be created in the same directory as Widget.html.
    An optional options file, Options.plist can also be provided to create custom options.
    Each option is represented by a dictionary, where the key name refers to the name of the variable to be defined in JavaScript.

    Widget.plist:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <!-- Required: Size of widget -->
            <key>size</key>
            <dict>
                    <key>width</key>
                    <integer>300</integer>
                    <key>height</key>
                    <integer>150</integer>
            </dict>
    
            <!-- Optional: Default position widget appears at -->
            <key>position</key>
            <dict>
                    <key>x</key>
                    <integer>0</integer>
                    <key>y</key>
                    <integer>-20</integer>
            </dict>
    </dict>
    </plist>
    Options.plist (Optional, corresponds to 2nd screenshot with long list of options removed, find full file in HTC/ASUS widgets below ):
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <array>
            <dict>
                    <key>name</key>
                    <string>showForecast</string>
                    <key>type</key>
                    <string>switch</string>
                    <key>label</key>
                    <string>Show forecast</string>
                    <key>default</key>
                    <true/>
            </dict>
            <dict>
                    <key>name</key>
                    <string>showWeatherAni</string>
                    <key>type</key>
                    <string>switch</string>
                    <key>label</key>
                    <string>Show Animation</string>
                    <key>default</key>
                    <true/>
            </dict>
            <dict>
                    <key>name</key>
                    <string>isCelsius</string>
                    <key>type</key>
                    <string>select</string>
                    <key>label</key>
                    <string>Temperature Unit</string>
                    <key>default</key>
                    <string>Celsius</string>
                    <key>options</key>
                    <dict>
                            <key>Celsius</key>
                            <true/>
                            <key>Fahrenheit</key>
                            <false/>
                    </dict>
            </dict>
            <dict>
                    <key>name</key>
                    <string>locale</string>
                    <key>type</key>
                    <string>select</string>
                    <key>label</key>
                    <string>Locale</string>
                    <key>indexed</key>
                    <true/>
                    <key>default</key>
                    <string>Singapore - Singapore</string>
                    <key>options</key>
                    <dict>
                            <key>Afghanistan - Ghurian</key>
                            <string>AFXX0001</string>
                            <key>Afghanistan - Herat</key>
                            <string>AFXX0002</string>
                            <key>Afghanistan - Kabul</key>
                            <string>AFXX0003</string>
                            <key>Afghanistan - Qandahar</key>
                            <string>AFXX0004</string>
                            <key>Afghanistan - Bost/Laskar</key>
                            <string>AFXX0005</string>
                    </dict>
            </dict>
    </array>
    </plist>
    New 'edit' option type in v 1.0.1:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <array>
            <dict>
                    <key>name</key>
                    <string>scrollingText</string>
                    <key>type</key>
                    <string>edit</string>
                    <key>label</key>
                    <string>Scrolling Text</string>
                    <key>default</key>
                    <string>insert favorite quote</string>
            </dict>
    </array>
    </plist>
    I only own an iPhone 4 ( iOS 7.0.4 ), help with testing on various devices and iOS versions is much appreciated. I will not support the iPad (and its screen orientations) as I do not own one, if you're lucky it will work If you would like to help keep the project going, you can donate HERE or at my email in the link.
    Last edited by eldwin; 09-06-2014 at 01:32 AM.
    @_eldwin | iWidgets | PayPal | Cydia: #4015798

  2. The Following 146 Users Say Thank You to eldwin For This Useful Post:

    .:JimmyL:. (05-18-2012), 8lias (10-05-2012), albertazumbi (03-17-2014), alon799 (10-18-2012), amoramor (03-21-2014), Answer1o1 (01-13-2014), Attair57 (04-03-2014), azaleea (08-28-2012), Bacardi85 (01-09-2014), bennlloyd (08-28-2012), Blue (02-25-2014), Bodhi1976 (05-17-2012), BOGMAT (05-18-2012), boywonder34 (01-10-2014), Calakato (08-24-2013), caniac61906 (03-08-2013), catstide (02-11-2013), chevymusclecar (08-28-2012), Chuck1969 (08-28-2012), Chula (06-29-2013), Cloud2Ground (10-19-2012), CrazyChester (07-10-2012), cukhiem (06-14-2012), cuongbk_135 (09-10-2012), dakkota (08-28-2012), DannyZ83 (08-03-2012), dark.knight (08-24-2012), Darrenrooster (05-18-2012), davidacevedo (03-12-2014), Destan (09-28-2012), Dirtstep (05-21-2012), doctorvik (08-24-2012), doomsday116 (07-19-2012), dwizurd (09-02-2012), ElderRoco (07-30-2012), elilab (06-16-2012), EventHorizn (02-08-2013), faisalz (07-09-2012), fallenzx (06-06-2012), FIF7Y (05-21-2012), flybritn (01-20-2013), ftb32 (07-09-2012), G0NGKiNG (06-03-2012), gadezu (05-18-2012), ginogi (03-26-2014), GraspGG (01-16-2014), grd069 (10-02-2012), grzegorz10 (05-24-2012), GUNNY29 (05-18-2012), hawkfrost (06-14-2012), hemptation (05-17-2012), Hip5 (07-14-2012), Hosko817 (05-23-2012), iAdamir (03-08-2013), Ian Nicoll (12-18-2012), indyzzzz (05-18-2012), Inked_xx (04-18-2014), iRevival (04-06-2013), Irish_Man (01-09-2014), IrobertI (01-19-2013), iRyanKGT (08-31-2012), iskariotA (07-05-2012), It's Mi (05-20-2012), iZangetsu (07-15-2012), jaco01 (02-18-2013), James424 (02-15-2013), Jazzman UK (01-19-2013), jeeepers7 (02-19-2014), jima6636 (08-28-2012), jjk454ss (05-17-2012), joshlogic (03-27-2013), KaiTa (01-10-2014), kifkif (05-06-2013), kimvy (02-15-2013), kingtyce (09-23-2012), King_O_Hill (05-21-2012), Kr0NiK (09-04-2012), KraXik (05-26-2012), kristatos (10-24-2012), kruzzit (08-26-2012), larke (08-29-2012), Laxu (06-10-2012), Lkkwus (05-17-2012), lostinthemes (01-10-2013), Lucys (08-26-2012), LurkerStatus (04-11-2013), Maarten16 (08-28-2012), macinmac (05-18-2012), markotak (06-14-2012), Marty McFly (02-24-2014), Max_Pa1n (05-20-2012), metaserph (05-18-2012), meth357 (12-31-2013), mikelikesanime (07-11-2012), mmcneil (10-03-2012), mrsmickey (05-21-2012), Muddl (10-31-2012), nassermoli (02-01-2014), nateD (05-20-2012), neildradford (03-24-2013), Netherscourge (01-13-2014), nik1975 (05-29-2012), NJ Devils Fan 4 Ever (03-30-2013), nnfdcane (09-11-2012), nonor (08-27-2012), Nsomnia34 (07-23-2012), Nvr2nd2ne1 (06-04-2012), P0R7ER (05-22-2012), phrekaru (05-18-2012), Pocyahtstu (06-04-2012), redsymphony (01-21-2014), revaewmada (01-12-2014), Richard (09-27-2012), rion_j (05-20-2012), RKO1195 (11-26-2012), RobbyJ (11-24-2012), ryanstylee (08-17-2013), Schnedi (08-23-2012), SHARON1O (11-24-2012), sickchris714 (05-17-2012), Simon (02-17-2013), Sk37cH (10-07-2012), SkyGuy5 (08-30-2012), Slate004 (08-28-2012), stratnik (05-18-2012), sunny102 (08-18-2012), Svink (08-31-2012), TaJr12 (07-12-2012), TCcentex (08-31-2013), The.Drifter (09-06-2012), ThelostMC (10-07-2012), Them3this (08-25-2012), thesilentone (09-28-2012), The_Durben (05-18-2012), Toproaster (08-26-2012), tsatryan (07-11-2012), UNLOCKZ (07-29-2012), wildenweb (02-27-2013), Wildfowler (08-30-2012), winfis (08-26-2012), xtrememan (05-23-2012), Yugo (05-18-2012), ZFrost (08-25-2012), Zooropalg (05-19-2012), zplit (05-21-2012), Z_rock (08-29-2012)

  3. #2
    Awesome

  4. The Following 2 Users Say Thank You to kooris For This Useful Post:

    .:JimmyL:. (05-18-2012), eldwin (05-21-2012)

  5. #3
    The One and the Only (retired secret moderator) iPod's Avatar
    Join Date
    Aug 2010
    Location
    Planet Earth
    Posts
    2,127
    Thanks
    55
    Thanked 94 Times in 88 Posts

    You should post it to cydia. Make sure you give credits to wyndwarrior though.

    secret moderator... Please hit that THANKS button over there if I helped you in any single way

  6. The Following 3 Users Say Thank You to iPod For This Useful Post:

    .:JimmyL:. (05-18-2012), eldwin (05-21-2012), Hip5 (07-15-2012)

  7. #4
    I just downloaded on 4s 5.0.1 how do I get the menu up to add a widget to home screen? Nice work man

    Ignore my stupid question sorry completely missed it lol seems to be working fine on my device stated above. Thanks for sharing

    Just found a small bug when widget is in wiggle mode if you press it device goes into safe mode
    Last edited by GUNNY29; 05-17-2012 at 05:33 PM.
    Click My Sig For my auros Mods

  8. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    .:JimmyL:. (05-18-2012), eldwin (05-21-2012)

  9. #5
    @kooris: Thanks!

    @ipodtouchman77: Thanks for the suggestion. I apologize for being unclear but this is really a beta version since I haven't gotten it tested on many devices besides my own. Release never occurred to me until a couple of friends expressed interest. I may have been sloppy with the package information but I'll be sure to credit wyndwarrior when I submit an official package.

    @GUNNY29: Thanks! I can't seem to reproduce the bug on my own device so I may have to wait till my dad returns with his phone assuming the bug is iOS5-related. Did you mean long press or a normal tap? Are you unable to arrange the widgets since you can't press them?

  10. The Following 2 Users Say Thank You to eldwin For This Useful Post:

    .:JimmyL:. (05-18-2012), GUNNY29 (05-18-2012)

  11. #6
    This is what innovation all about gna try it later

    Thanks for sharing with us
    Jim

  12. The Following 3 Users Say Thank You to .:JimmyL:. For This Useful Post:

    eldwin (05-21-2012), fido08 (06-09-2013), The_Durben (05-18-2012)

  13. #7
    Hmm. This seems interesting. So multiple widgets on same page. And can add whatever widgets, are in the widgets folder that you gave us the path to ? On any page, at any place.

    So let me ask ou this, if you want he same widget running on 3 different screens, is it running the same mod, or does it see the mod as 3 different mods?

  14. The Following 3 Users Say Thank You to hemptation For This Useful Post:

    .:JimmyL:. (05-18-2012), eldwin (05-21-2012), The_Durben (05-18-2012)

  15. #8
    @GUNNY29

    Thanks for trying this out! I tried replying earlier but was apparently under some sort of moderation. Could you clarify if you meant long press or a tap? Also, does this mean you're unable to move the widgets? I'm not able to reproduce this on my side so I suspect it may be related to iOS 5. Will check this out when I get hold of my dad's phone.
    Last edited by eldwin; 05-17-2012 at 08:10 PM.

  16. The Following 2 Users Say Thank You to eldwin For This Useful Post:

    GUNNY29 (05-18-2012), metaserph (05-18-2012)

  17. #9
    I am able to move the widgets after further testing it appears not to happen every tap now just every now and again. At first It was every tap seems to have got slightly better
    Click My Sig For my auros Mods

  18. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    .:JimmyL:. (05-18-2012), eldwin (05-21-2012)

  19. #10
    The One and the Only (retired secret moderator) iPod's Avatar
    Join Date
    Aug 2010
    Location
    Planet Earth
    Posts
    2,127
    Thanks
    55
    Thanked 94 Times in 88 Posts

    Quote Originally Posted by eldwin View Post
    @kooris: Thanks!

    @ipodtouchman77: Thanks for the suggestion. I apologize for being unclear but this is really a beta version since I haven't gotten it tested on many devices besides my own. Release never occurred to me until a couple of friends expressed interest. I may have been sloppy with the package information but I'll be sure to credit wyndwarrior when I submit an official package.

    @GUNNY29: Thanks! I can't seem to reproduce the bug on my own device so I may have to wait till my dad returns with his phone assuming the bug is iOS5-related. Did you mean long press or a normal tap? Are you unable to arrange the widgets since you can't press them?
    Oh ok, you also might want to contact wyndwarrior to make sure it's ok.

    secret moderator... Please hit that THANKS button over there if I helped you in any single way

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

    eldwin (05-21-2012)

  21. #11
    I don't feel the need for him to ask permission aslong as he gives credits for the base idea as he said he would all is ok imo plus wynd warrior isn't around anymore is he?
    Click My Sig For my auros Mods

  22. The Following User Says Thank You to GUNNY29 For This Useful Post:

    eldwin (05-21-2012)

  23. #12
    Quote Originally Posted by GUNNY29 View Post
    I just downloaded on 4s 5.0.1 how do I get the menu up to add a widget to home screen? Nice work man

    Ignore my stupid question sorry completely missed it lol seems to be working fine on my device stated above. Thanks for sharing

    Just found a small bug when widget is in wiggle mode if you press it device goes into safe mode
    This is really weird. I'm unable to reproduce this problem with an iPhone 4 on iOS 5.0.1 even when I'm tapping on the widgets like crazy. Is anyone else facing such an issue?

  24. The Following User Says Thank You to eldwin For This Useful Post:

    GUNNY29 (05-18-2012)

  25. #13
    Not sure if it matters but I'm in a 4s. I make the widget wiggle I can press and hold and all is good if I tap the widget while in wiggle mode I go straight to safe mode
    Click My Sig For my auros Mods

  26. The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:

    eldwin (05-21-2012), The_Durben (05-18-2012)

  27. #14
    Thanks! This tweak is awesome!

    iPhone 4 and iPhone 4S firmware 5.0.1 working fine!

    -img_0070.png
    Last edited by gadezu; 05-18-2012 at 05:56 AM.
    READ THIS BEFORE YOU ASK. THANK YOU!

  28. The Following 2 Users Say Thank You to gadezu For This Useful Post:

    eldwin (05-21-2012), It's Mi (05-20-2012)

  29. #15
    Glad you like it and thanks for the confirmation =)

    EDIT: Nice screenshot, your phone is really beautifully themed
    Last edited by eldwin; 05-18-2012 at 06:05 AM.

  30. The Following 2 Users Say Thank You to eldwin For This Useful Post:

    gadezu (05-18-2012), GUNNY29 (05-18-2012)

  31. #16
    I'm guessing it must be a tweak it is clashing with then let me know if you want a list of all the tweaks I have installed
    Click My Sig For my auros Mods

  32. The Following User Says Thank You to GUNNY29 For This Useful Post:

    eldwin (05-21-2012)

  33. #17
    Sure, do list them, via PM if you prefer. I'm guessing it's a tweak which modifies springboard icons.

  34. The Following User Says Thank You to eldwin For This Useful Post:

    King_O_Hill (10-16-2012)

  35. #18
    The tweak that is causing the issue is multi icon mover I just turns it off in mobile substrates and the problem wasn't there turnt it back on and the problem was there hope this helps
    Click My Sig For my auros Mods

  36. The Following 4 Users Say Thank You to GUNNY29 For This Useful Post:

    eldwin (05-21-2012), indyzzzz (06-06-2012), nateD (05-20-2012), The_Durben (05-18-2012)

  37. #19
    EDIT: Sorry. Fix caused other problems instead. BRB
    Last edited by eldwin; 05-18-2012 at 07:10 AM.

  38. The Following User Says Thank You to eldwin For This Useful Post:

    GUNNY29 (05-18-2012)

  39. #20
    Nice tweak. Thanks eldwin!

    Has anyone had an issue moving a widget to a new screen that has no icons on it. Basically dragging the widget to a new screen. It does not seem to work for me on an iPhone 4s 5.0.1.

    Thanks again!

  40. The Following User Says Thank You to Illmatic636 For This Useful Post:

    eldwin (05-21-2012)

Page 1 of 355 123 11 51 101 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •