Results 201 to 220 of 1322

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


Thread: [Tweak] PerPageHTML

Threaded View

  1. #1
    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 Click image for larger version. 

Name:	IMG_0039.PNG 
Views:	69973 
Size:	295.1 KB 
ID:	494700   Click image for larger version. 

Name:	IMG_0105.PNG 
Views:	62064 
Size:	28.8 KB 
ID:	499586   Click image for larger version. 

Name:	IMG_0106.PNG 
Views:	62310 
Size:	32.8 KB 
ID:	499587  
    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)

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