TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: MadTxn on December 30, 2003, 11:24:28 AM

Title: Floating region
Post by: MadTxn on December 30, 2003, 11:24:28 AM
I am trying to have my weather region "float" over my other regions, much like the FILTERS section in the default slider skin.  Here's what I have:
(http://home.comcast.net/~madtxn/todayplus/wish.jpg)

It more or less works, but I have a couple of problems...

1.  When the regions underneath (meaning z-index, not y-index) refresh, they overwrite the weather region.  How do I stop that?

2.  I use a deactivate buttons command to stop the lower regions from being activated when I click in the weather region, but how do I reactivate them once I close the weather?

Thanks in advance.
Title: Floating region
Post by: srs on December 30, 2003, 12:50:16 PM
looking nice :)

Quote1. When the regions underneath (meaning z-index, not y-index) refresh, they overwrite the weather region. How do I stop that?

I can think of two things.

1.  enclose the regions underneath within if statements, so that they won't be updated when the weather region is active.



if,region,1,0 (weather region active)
else
   region,2,0,10 (regions underneath...)
   endregion,2,0
endif



2.  when a region underneath refreshes, also refresh the weather region.  Note, that this would require the weather region to be below (physically in the skin txt) the regions underneath as the updateregions command only works on subsequent lines.



region2,0,10
if,region,1,0  (if weather region is active)
   updateregions,1  (update the weather region)
else
endif

region,1,0,-1  (weather region)
endregion,1,0



hope this helps.


- edit, one thought occurs to me to maybe enhance the look of the of the floating weather region... instead of having a solid purple background, you could have an partially transparent png, allowing a bit of the background to show through.
Title: Floating region
Post by: srs on December 30, 2003, 01:00:03 PM
and I forgot about the second question too...

Quote2. I use a deactivate buttons command to stop the lower regions from being activated when I click in the weather region, but how do I reactivate them once I close the weather?

use the activatebuttons command (works exactly the same as the deactivatebuttons command).
Title: Floating region
Post by: MadTxn on December 30, 2003, 01:13:58 PM
Quote from: srslooking nice :)

thanks ;)

Quote
1.  enclose the regions underneath within if statements, so that they won't be updated when the weather region is active.



if,region,1,0 (weather region active)
else
   region,2,0,10 (regions underneath...)
   endregion,2,0
endif



I think I'll do that

Quote
- edit, one thought occurs to me to maybe enhance the look of the of the floating weather region... instead of having a solid purple background, you could have an partially transparent png, allowing a bit of the background to show through.

That was the original plan, but then I started using a bunch of "draw,roundrect" to break up the region.
(http://home.comcast.net/~madtxn/todayplus/weather1.jpg)(http://home.comcast.net/~madtxn/todayplus/weather2.jpg)

Once I get everything the way I want it, I'll probably spend some time in PhotoShop to pretty everything up.  I still have to work on my RSS section, but if I get this working, that should be cake.  Chocolate cake... with chocolate icing... mmm...

edit:
Quote
use the activatebuttons command (works exactly the same as the deactivatebuttons command).

where do I put this?  If I put it in the weather region, won't it just keep the buttons active? Or do I need to make a new invisible region?
Title: Floating region
Post by: srs on December 30, 2003, 01:28:09 PM
If you are going to go with a partially transparent background, then I think the second method would be better, because it would allow the meters underneath to update and display the correct information, even with the weather region active.  If its a solid background the first method will be better as it will take less time to update.

You can put the activatebuttons command into the region/page thats for the inactive weather region.

so if region 1 is the weather regions (page 0 is active, and page 999 is inactive)


region,1,0,-1
deactivatebuttons,...
endregion,1,0

region,1,999,-1
activatebuttons,....
endregion,1,999
Title: Floating region
Post by: jhollin1138 on December 30, 2003, 01:36:14 PM
Wow, that looks great!  I always amazed to see what talented people can truly do with this great program srs has written.  I look for to seeing the final version of this skin!  8)
Title: w00t
Post by: MadTxn on December 31, 2003, 11:49:04 AM
I think I'm getting the hang of this thing.  Here's my RSS section...

(http://home.comcast.net/~madtxn/todayplus/rss.gif)

Now I just need to finish up the images...
Title: Floating region
Post by: joelw135 on December 31, 2003, 03:57:31 PM
Nice, What rss are you using for the movie feeds?
Title: Floating region
Post by: MadTxn on December 31, 2003, 04:15:43 PM
Booyah (http://www.dark-mojo.com/todayplus/viewtopic.php?p=3872#3872)
Title: Floating region
Post by: Lordtwisted on December 31, 2003, 08:02:11 PM
madTxn could you throw my edited scrip on your server, my sever dosen't run php?

Lordtwisted :(
Title: Floating region
Post by: Eitel on December 31, 2003, 08:59:34 PM
I can't make the script work.  I change the theater name and the zip code and I only get errors.   :(
Title: Floating region
Post by: MadTxn on December 31, 2003, 09:19:35 PM
Eitel -
What errors are you getting?  First, go to http://movies.yahoo.com, find your theater, then copy the exact name and zip code to put in the "array" section.

Lordtwisted -
I'm running my PHP server from a laptop at home.  My upload is only 256K, and I already run two web servers, an FTP server, an HTTPort server, a mail server, two VNC boxes, and a Shoutcast server (music streaming).  However, I can help you if you want to setup an Apache/PHP server.  It only takes about 30 minutes. ;)
Title: Floating region
Post by: Eitel on December 31, 2003, 09:30:00 PM
Ok, here's my theather (http://movies.yahoo.com/showtimes/showtimes.html?z=48197&r=sim&m=&t=Showcase%20Cinemas%20Ann%20Arbor&a=&dt=0&s=tm&p=0), and here's the php code (http://www.dark-mojo.com/listings_rss.php).

Since I just want one theater, I'm just changing the "Muvico" for mine and then the first zip code for mine.
Title: Floating region
Post by: MadTxn on December 31, 2003, 09:49:38 PM
Well feces.  Your theater actually uses the different Dolby legend star thingies (take a look at the left side of the screen on the yahoo page).  My parsing doesn't take care of that.  I'll fix it in the morning and post a zip file.

Happy New Year
Title: Floating region
Post by: Eitel on December 31, 2003, 10:50:14 PM
Glad to know I wasn't crazy.  :D

Thanks a lot, and Happy New Year to you too.
Title: Floating region
Post by: SacredCow on January 01, 2004, 12:11:17 AM
Quote from: MadTxnWell feces.  Your theater actually uses...

Happy New Year

hahaha... when i first read this I thought you were calling Eitel "feces"

i thought... "duuude" then "whoaaaa"

;)

Happy NY!!

-SC

PS dig'n the theme!
Title: Floating region
Post by: MadTxn on January 01, 2004, 01:33:49 PM
I uploaded a new version here (http://www.dark-mojo.com/todayplus/viewtopic.php?p=4042#4042).  Give that a try.
Title: Floating region
Post by: LawofA on January 01, 2004, 01:38:47 PM
Hi MadTxn:

I have installed the PHP server as per your directive and have updated the script. I can get access from the browser to the server, but the PDA is not accessing the program from TP. I have checked the URL, all letters, every input is correct. What am i doing wrong?

Thanks.

LawofA
Title: Floating region
Post by: MadTxn on January 01, 2004, 02:06:53 PM
Can you post what URL you put in the registry?
Title: Floating region
Post by: LawofA on January 01, 2004, 02:15:16 PM
Quote from: MadTxnCan you post what URL you put in the registry?

Hi MadTxn:

Here is the link, http://nj-01/cgi_php/listings%5Frss%2Ephp

Thanks.

LawofA
Title: Floating region
Post by: joelw135 on January 01, 2004, 02:19:25 PM
It is a shame that we have to have our own PHP server to get this, what a loss!
Title: Floating region
Post by: MadTxn on January 01, 2004, 02:19:37 PM
I think you need an externally available address.  Try using the IP address of "nj-01".
Title: Floating region
Post by: fishboy on January 01, 2004, 09:23:57 PM
MadTxn,

Getting a little off topic, but here is a suggestion. You might look into modifying your script to allow the theaters and zipcodes to be specified in the http address (query string parameters. This would allow it to be run on a server that could be accessed by multiple users and would work "out of the box".

I threw together (with help from other scripts) a stock feed that allows specifying the stock symbols in the link address.

Example:
"http://my_computer/myrss/YahooStocks-rss.php?symbols=^dji+^ixic+^gspc+aivsx+cstgx+avlfx+temwx"

In my script, I create an array using the statement:
$stocklist = explode(" ", $_GET["symbols"]);

Doing this for your Movie Listings script would require a little more work, but would use similar code.
Title: Floating region
Post by: MadTxn on January 01, 2004, 10:04:11 PM
I thought of doing that... And since I still have nothing to do at work, I'll probably do it tomorrow. ;)
Title: Floating region
Post by: Lordtwisted on January 01, 2004, 10:20:15 PM
You'r code works great.

Lordtwisted :D
Title: Floating region
Post by: LawofA on January 02, 2004, 04:56:04 AM
Quote from: MadTxnI think you need an externally available address.  Try using the IP address of "nj-01".

Hi MadTxn:
That worked. Now it does not update for the following date. How do I accomplish this?

Thanks.

LawofA
Title: Floating region
Post by: MadTxn on January 02, 2004, 09:40:48 AM
Well, sometimes, Yahoo doesn't update until later in the day.  Check yahoo's page first, then check the update time for your RSS feed.  The script checks only when called (meaning nothing is cached), so it should always have the most recent data.
Title: Floating region
Post by: LawofA on January 02, 2004, 11:28:22 AM
Quote from: MadTxnWell, sometimes, Yahoo doesn't update until later in the day.  Check yahoo's page first, then check the update time for your RSS feed.  The script checks only when called (meaning nothing is cached), so it should always have the most recent data.

Hi MadTxn:
That's exactly what happened.

Thanks.

LawofA