+ Reply
Page 1 of 67 123 11 51 ... LastLast
Results 1 to 20 of 1322

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


Thread: [Tweak] PerPageHTML

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
So Winterboard doesn't allow per-page wallpapers on iOS4 anymore, and this seems to be a big problem for most nav based themes. But who needs boring, static, per-page wallpapers anyways?
...
  1. #1
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    Default [Tweak] PerPageHTML
    So Winterboard doesn't allow per-page wallpapers on iOS4 anymore, and this seems to be a big problem for most nav based themes. But who needs boring, static, per-page wallpapers anyways?



    Instead I offer you per-page HTML wallpapers. With this, you can have dynamic, (not yet) interactive backgrounds on every page. Things such as having a widget on each page, having a different animated background on each page or even an entire theme based off of interactive HTML widgets.


    [Download] (Or in Cydia)


    =====================================
    Creating Page Widgets
    =====================================


    A widget is simply a folder under /var/mobile/Library/PerPageHTML, this folder is the name of your widget and will also be displayed in the PerPage app. A typical widget consists of a Widget.html or a Wallpaper.png or both. In the case of both, the Widget will be displayed on top of the wallpaper.
    (Look at example widgets for more info)

    The first thing to do is to make a folder under /var/mobile/Library/PerPageHTML

    (NO SPACES)

    This folder should be the name of your widget, and will also hold the contents of your widget.

    Once you have created the folder, inside of it put a Widget.html and/or a Wallpaper.png. The Widget.html is a standard html file and the Wallpaper.png must be a 320x480 png file, or a 640x960 file.

    To activate a widget, launch the PerPage app




    The select the widget




    Then choose a page for the widget to be displayed on. If you wish for that page to display nothing, select none and then the page.

    Source Code:

    Code:
    	NSDictionary *myDictionary = [[NSDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/PerPage.plist"];
    	
    	NSString *str1 = [myDictionary valueForKey:@"SpotLight"];
    		if(str1 && ![str1 isEqualToString:@"none"]){
    			if([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Wallpaper.png", str1]]){
    				UIImageView *wallpaper1 = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
    				wallpaper1.image = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Wallpaper.png", str1]];
    				[self addSubview:wallpaper1];
    			}
    			if([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Widget.html", str1]]){
    				UIWebDocumentView *docView1 = [[[UIWebDocumentView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)] autorelease];
    				[docView1 loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Widget.html", str1]]]];
    				[docView1 setBackgroundColor:[UIColor clearColor]];
    				[docView1 setDrawsBackground:NO];
    				[self addSubview:docView1];
    			}
    		}
    	
    	for(int i = 1; i<=11; i++){
    		NSString *str = [myDictionary valueForKey:[NSString stringWithFormat:@"Page%d", i]];
    		if(str && ![str isEqualToString:@"none"]){
    			if([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Wallpaper.png", str]]){
    				UIImageView *wallpaper = [[UIImageView alloc] initWithFrame:CGRectMake(i*320,0, 320, 480)];
    				wallpaper.image = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Wallpaper.png", str]];
    				[self addSubview:wallpaper];
    			}
    			if([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Widget.html", str]]){
    				UIWebDocumentView *docView = [[[UIWebDocumentView alloc] initWithFrame:CGRectMake(i*320, 0, 320, 480)] autorelease];
    				[docView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[NSString stringWithFormat:@"/var/mobile/Library/PerPageHTML/%@/Widget.html", str]]]];
    				[docView setBackgroundColor:[UIColor clearColor]];
    				[docView setDrawsBackground:NO];
    				[self addSubview:docView];
    			}
    		}
    	}
    Attached Thumbnails Attached Thumbnails [Tweak] PerPageHTML-img_0039.png   [Tweak] PerPageHTML-img_0105.png   [Tweak] PerPageHTML-img_0106.png  
    Attached Images Attached Images  
    Last edited by wyndwarrior; 01-25-2011 at 05:44 PM.

  2. The Following 231 Users Say Thank You to wyndwarrior For This Useful Post:

    05g356mt (02-25-2011), 143voltron (01-08-2011), 1972petros (01-06-2011), 88hurst (02-13-2011), Akats__ (01-15-2011), ALIEN1974 (01-05-2011), am1ne1968 (01-11-2011), AngryPIG (03-14-2011), anig (01-20-2011), AnthonyGiola (02-02-2011), applesine (01-28-2011), ardu (01-09-2011), arkha (04-18-2012), aslamvs (02-04-2011), awal1190 (01-11-2011), azaleea (05-20-2011), Beestardo (03-27-2011), Belgmeister (01-18-2011), bignighttrain (03-12-2011), BiX82 (03-05-2011), bjerry101 (01-12-2011), blast123 (01-05-2011), Blue (01-06-2011), Brandstone (02-07-2011), brickeberg (02-02-2011), brunoisa10 (01-31-2011), byron686 (01-06-2011), Caboose1408 (01-23-2011), caldo (02-11-2011), can7 (01-11-2011), cavman2004 (01-07-2011), chg128 (01-11-2011), chrisangel13 (01-07-2011), ChrisOSX (01-26-2011), Christalic (01-31-2011), coachie105 (01-26-2011), cocotherat (02-04-2011), combory (05-13-2011), Coop2009 (01-24-2011), cuongbk_135 (09-10-2012), Curryking (03-23-2012), DaEliminator (01-05-2011), dagger80 (02-06-2011), dahr (02-01-2011), dakkota (01-29-2011), DampDesigns (01-28-2011), Daniel-2010 (01-15-2011), DarkXShadowX21 (03-17-2011), Dark_Ninja (02-25-2011), dazzamcm (01-26-2011), DA_GHOST (01-05-2011), deathbybunnies6 (01-05-2011), Defiied (01-22-2011), Destan (03-02-2012), DeuceDillinger (02-20-2011), Dexy88 (02-09-2011), Dirk Digler (01-11-2011), dmrenfro (01-09-2011), doctorvik (04-08-2011), donaglia (01-21-2011), Doreen (01-06-2011), Downloadeous Maximus (02-07-2011), dude jacobson (01-06-2011), EddieEckhardt (01-06-2011), EddieLeonard (01-06-2011), edel_hert (02-05-2011), eFXx (01-05-2011), elilab (02-12-2011), eonC4PDA (01-07-2011), EventHorizn (02-03-2011), Fish_1 (03-15-2011), FreeApple (01-05-2011), GAIAStevef (03-13-2011), GaN-MaN (01-06-2011), germarican (01-24-2011), GMG450 (01-24-2011), gramirez85 (01-06-2011), grd069 (01-09-2013), greasemuntney (02-27-2011), hacktard (01-06-2011), henftling (01-05-2011), hfinmyblood (03-17-2011), hockeyman8720 (05-07-2012), holdemdogg (01-11-2011), Hownd (03-31-2011), HungryHungryNico (01-07-2011), IamEzio (02-02-2011), Ian Nicoll (01-06-2011), iFrosty (01-05-2011), Ins0mniac (01-26-2011), Ipconfig (03-13-2011), Irish_Man (01-06-2014), It's Mi (01-13-2011), itsajeepthing03 (01-13-2011), Jackim (01-31-2011), jakobxxl (12-09-2011), jasvncnt10 (01-06-2011), jayeshb (03-15-2011), jayteez (02-04-2011), jazmiyko (04-19-2011), jcwill12 (01-25-2011), JDean2 (01-14-2011), Jdot1224 (02-22-2011), JeezLouise86 (03-09-2011), Jephre (01-06-2011), jepp376 (01-20-2011), JesseDegenerate (01-24-2011), JLick (01-25-2011), Jmataska (01-10-2011), JoeStorm (02-20-2011), john8825 (01-10-2011), jonmassot (02-20-2011), jrav45 (01-06-2011), jsayz (01-11-2011), jsnx (04-04-2012), Junior_G (01-16-2011), k.nitsua (01-05-2011), KaiPhone (02-19-2011), Karini (02-28-2011), Kazuyoshi (01-06-2014), Keon (01-11-2011), kevin.e.white (02-25-2011), kimvy (01-05-2011), King Shady (01-24-2011), komsa (04-12-2012), kooldude1411 (02-14-2011), Kr0NiK (03-31-2011), kruzzit (02-25-2011), kycity502 (02-28-2011), lacsap65 (02-15-2011), Late_Nights (02-04-2011), Laxu (06-05-2012), LennyTheDub (01-06-2011), Lloyd Evil (01-24-2011), loopweb (03-04-2011), lostinthemes (01-05-2011), Maarten16 (01-06-2011), mAde1337 (03-03-2011), marc516 (03-10-2011), marco29 (01-06-2011), mason670 (01-26-2011), MaudmyiPhone (01-07-2011), Mavs41413 (02-08-2011), Max_Pa1n (02-02-2011), medic88 (01-27-2011), metaserph (01-05-2011), mikelikesanime (02-04-2011), MikeTheTech (02-02-2011), mikethewolf (01-11-2011), MindGem (01-06-2011), mkheinz (03-25-2011), monkey87 (01-11-2011), Mootdip (01-20-2011), mrmyco (01-25-2011), mtnguy321 (01-12-2011), Nicholas Knight (01-07-2011), nomercy413 (01-05-2011), norcal415 (01-08-2011), notovich (07-26-2012), One0416 (01-11-2011), plasmamaker (04-30-2011), Raaj FX was banned (01-06-2011), RAiiNx (01-11-2011), rameses09 (01-05-2011), ReBourne (01-08-2011), reeco (03-02-2011), renacho (02-17-2011), renegad3 (01-16-2011), Rigatony (01-19-2011), RippedThemer (01-30-2011), river_9x (09-26-2012), rollingsm0ke (01-27-2011), ryanstylee (01-26-2011), Rypac1502 (01-25-2011), satointl (01-06-2011), ScarAce1989 (04-07-2011), shitaki (01-05-2011), shockk (02-19-2011), SilverLMD (01-31-2011), Simon (01-07-2014), Sindervhit (04-17-2011), Sneakerpimp (01-06-2011), SnowLeo (01-07-2011), so0lid (04-03-2012), SomeGuyInOz (02-26-2011), stephenvz (03-13-2011), stlcaddie (01-05-2011), stlwkr (01-20-2011), stratnik (02-17-2011), Stray (01-07-2011), sucram6791 (01-07-2011), taylorn (02-12-2011), techieboy (02-03-2011), tellytel (01-28-2011), teresaync (01-20-2011), terraincognita (01-25-2012), testrun505 (01-06-2011), The1JJDJay (02-28-2011), TheEnigma (02-26-2011), Thorlax402 (02-08-2011), togomaku (01-12-2011), tonymontana101 (01-10-2011), toyvan (01-08-2011), TSGTmoses (04-19-2011), Turb02 (01-10-2011), turtlepaw (05-14-2011), tw1st3d (01-06-2011), ufcsean (01-06-2011), uhohzitzcooky (01-20-2011), unoimkll (01-26-2011), UofMBob (01-05-2011), vietbabyyboi (01-26-2011), vinni30 (01-14-2011), vlad05pun (02-16-2011), vmarcin (01-29-2011), w00dS (01-08-2011), Waughy (02-05-2011), Waverley73 (02-07-2011), weedoo12 (05-13-2011), whitebelt (01-27-2011), whoadie (01-06-2011), WhyNotCallMeRo (02-27-2011), wim66 (01-10-2011), wstcoast (03-01-2011), xeon_xn (03-09-2011), xpprem (01-07-2011), xSURPx (05-16-2011), ZaqCapone (04-19-2011), zausser (01-07-2011), Zerabeth (04-07-2011), ziggy7 (01-06-2011)

  3. #2
    iPhone? More like MyPhone onelow99's Avatar
    Join Date
    Feb 2008
    Location
    North Cackalacky
    Posts
    147
    Thanks
    40
    Thanked 48 Times in 31 Posts

    1st....your on a damn roll aren't you? You come up with some of the most amazing creations....I don't know how I'd make it thru the day without BackBoard! Still bummed you gave up on Endroid...with the whole drag-n-drop concept.
    Last edited by onelow99; 01-05-2011 at 08:27 PM.

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

    mortopher (01-29-2011), vlad05pun (02-16-2011)

  5. #3
    My iPhone is a Part of Me FiVe5tArPlAy3r's Avatar
    Join Date
    Sep 2009
    Location
    private/var/stash/Themes
    Posts
    780
    Thanks
    911
    Thanked 550 Times in 325 Posts

    Damn man your GOOD this will be very interesting.

  6. #4
    My iPhone is a Part of Me Silverado87's Avatar
    Join Date
    Nov 2008
    Posts
    812
    Thanks
    76
    Thanked 151 Times in 127 Posts

    WTF are you gonna come up with next? Lol. Great job

  7. #5
    Livin the iPhone Life deathbybunnies6's Avatar
    Join Date
    May 2009
    Location
    com.apple.Florida
    Posts
    1,051
    Thanks
    232
    Thanked 332 Times in 187 Posts

    Dude i am in love with you
    My Themes

    HTC HD2 HTC 1 HTC Sensation

  8. The Following User Says Thank You to deathbybunnies6 For This Useful Post:

    DeuceDillinger (02-20-2011)

  9. #6
    My iPhone is a Part of Me Pronup's Avatar
    Join Date
    Oct 2009
    Location
    Texas
    Posts
    685
    Thanks
    129
    Thanked 188 Times in 142 Posts

    You are insane! Your whipping out these new groundbreaking concepts so quickly! You are obviously a god at coding.

    Everyone is incredibly lucky to have you as a member of the ModMyi family!

  10. The Following User Says Thank You to Pronup For This Useful Post:

    Dirk Digler (01-11-2011)

  11. #7
    Retired Moderator stlcaddie's Avatar
    Join Date
    Jul 2007
    Location
    Saint Louis, MO
    Posts
    1,088
    Thanks
    139
    Thanked 128 Times in 90 Posts

    WOW, Lete say it again. WOW

  12. #8
    "The Chuck Bass of Theming" k.nitsua's Avatar
    Join Date
    Mar 2009
    Location
    Merced, CA
    Posts
    4,422
    Thanks
    1,761
    Thanked 19,214 Times in 2,596 Posts

    Wyndwarrior...

    ... I think I love you... (in a totally straight guy way).
    #eli7e revived me

  13. The Following 5 Users Say Thank You to k.nitsua For This Useful Post:

    DeuceDillinger (02-20-2011), GaN-MaN (02-22-2011), HungryHungryNico (01-07-2011), Laxu (06-05-2012), SirTimothy1 (01-06-2011)

  14. #9
    PS Slave henftling's Avatar
    Join Date
    Dec 2007
    Location
    iOSAlliance
    Posts
    1,574
    Thanks
    7,654
    Thanked 6,154 Times in 1,098 Posts

    Just WOW!

  15. #10
    iPhone? More like MyPhone
    Join Date
    Aug 2010
    Location
    Guelph, ON
    Posts
    233
    Thanks
    172
    Thanked 42 Times in 29 Posts

    Have to chime in on this with another wow.

    Can't wait to see this.

  16. #11
    My iPhone is a Part of Me Pronup's Avatar
    Join Date
    Oct 2009
    Location
    Texas
    Posts
    685
    Thanks
    129
    Thanked 188 Times in 142 Posts

    I can't wait to see what all the themers are going to do with this!

  17. #12
    Livin the iPhone Life
    Join Date
    Feb 2008
    Posts
    1,084
    Thanks
    242
    Thanked 358 Times in 238 Posts

    dude ur amazing wow man ur tweaks are some of the most needed

  18. #13
    Livin the iPhone Life Bernie-Mac's Avatar
    Join Date
    Aug 2007
    Location
    Las Vegas, NV
    Posts
    1,533
    Thanks
    162
    Thanked 136 Times in 95 Posts

    Please make a google search widget to go with this!!
    iLive an iLife

  19. The Following User Says Thank You to Bernie-Mac For This Useful Post:

    DaEliminator (01-16-2011)

  20. #14
    Master Theme Creator ALIEN1974's Avatar
    Join Date
    Feb 2010
    Location
    var/stash/Themes
    Posts
    2,833
    Thanks
    1,715
    Thanked 5,973 Times in 1,579 Posts

    You are a god....

  21. The Following User Says Thank You to ALIEN1974 For This Useful Post:

    DeuceDillinger (02-20-2011)

  22. #15
    The Arcadian ReBourne's Avatar
    Join Date
    May 2010
    Location
    King Kong Climb This Building
    Posts
    4,178
    Thanks
    13,694
    Thanked 12,389 Times in 2,985 Posts

    Amazinggggggggggggg, fantasticccccccccccccccccccccc, out of this world dude, man ur smart

  23. #16
    Z-INDEX III[ZERO]III's Avatar
    Join Date
    Jul 2010
    Location
    Denver, CO
    Posts
    804
    Thanks
    421
    Thanked 1,528 Times in 497 Posts

    Man this is just amazing, so is your SBAW. You are officially THE MAN.

  24. #17
    iPhoneaholic redaro's Avatar
    Join Date
    Sep 2008
    Location
    Sydney Australia
    Posts
    305
    Thanks
    17
    Thanked 120 Times in 100 Posts

    Speechless!!!!!!!!!!!!!!!!!!!!!!

  25. #18
    Banned DA_GHOST's Avatar
    Join Date
    Jul 2010
    Posts
    3,537
    Thanks
    1,863
    Thanked 2,868 Times in 1,447 Posts

    You are a freaking ccoding god bro!!! Omg!!

  26. #19
    "The Truth" metaserph's Avatar
    Join Date
    Feb 2009
    Location
    Houston, Texas U.S.A.
    Posts
    4,670
    Thanks
    12,269
    Thanked 9,105 Times in 2,700 Posts

    Bro, you have a beautiful mind! (Also in a straight guy way, K.Nit) lol
    @Metaserph
    "You can only attain Peace through spreading Love to create Unity and earn the Respect of others" - Complex Simplicity

  27. #20
    Theme Creator Li-ion's Avatar
    Join Date
    Aug 2009
    Posts
    1,049
    Thanks
    104
    Thanked 436 Times in 204 Posts

    Fcuk. <3

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