User Tag List

  1. wyndwarrior's Avatar
    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


    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:

    	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 [Tweak] PerPageHTML-img_0039.png   [Tweak] PerPageHTML-img_0105.png   [Tweak] PerPageHTML-img_0106.png  
    Attached Images [Tweak] PerPageHTML-preview.png 
    Last edited by wyndwarrior; 2011-01-26 at 01:44 AM.
    2011-01-06 04:11 AM
  2. onelow99's Avatar
    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; 2011-01-06 at 04:27 AM.
    2011-01-06 04:16 AM
  3. FiVe5tArPlAy3r's Avatar
    Damn man your GOOD this will be very interesting.
    2011-01-06 04:19 AM
  4. Silverado87's Avatar
    WTF are you gonna come up with next? Lol. Great job
    2011-01-06 04:32 AM
  5. deathbybunnies6's Avatar
    Dude i am in love with you
    My Themes

    HTC HD2 HTC 1 HTC Sensation
    2011-01-06 04:33 AM
  6. Pronup's Avatar
    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!
    2011-01-06 04:39 AM
  7. stlcaddie's Avatar
    WOW, Lete say it again. WOW
    2011-01-06 04:53 AM
  8. k.nitsua's Avatar

    ... I think I love you... (in a totally straight guy way).
    #eli7e revived me
    2011-01-06 04:57 AM
  9. henftling's Avatar
    Just WOW!
    2011-01-06 05:28 AM
  10. LennyTheDub's Avatar
    Have to chime in on this with another wow.

    Can't wait to see this.
    2011-01-06 05:43 AM
  11. Pronup's Avatar
    I can't wait to see what all the themers are going to do with this!
    2011-01-06 05:46 AM
  12. blast123's Avatar
    dude ur amazing wow man ur tweaks are some of the most needed
    2011-01-06 06:08 AM
  13. Bernie-Mac's Avatar
    Please make a google search widget to go with this!!
    iLive an iLife
    2011-01-06 06:36 AM
  14. ALIEN1974's Avatar
    You are a god....
    2011-01-06 06:49 AM
  15. ReBourne's Avatar
    Amazinggggggggggggg, fantasticccccccccccccccccccccc, out of this world dude, man ur smart
    2011-01-06 06:51 AM
  16. III[ZERO]III's Avatar
    Man this is just amazing, so is your SBAW. You are officially THE MAN.
    2011-01-06 06:56 AM
  17. redaro's Avatar
    2011-01-06 06:58 AM
  18. DA_GHOST's Avatar
    You are a freaking ccoding god bro!!! Omg!!
    2011-01-06 07:00 AM
  19. metaserph's Avatar
    Bro, you have a beautiful mind! (Also in a straight guy way, K.Nit) lol
    "You can only attain Peace through spreading Love to create Unity and earn the Respect of others" - Complex Simplicity
    2011-01-06 07:01 AM
  20. Li-ion's Avatar
    Fcuk. <3
    2011-01-06 07:06 AM
1,322 1231151 ...