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.
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.
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).
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?
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
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)
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...
Nice, What rss are you using for the movie feeds?
Booyah (http://www.dark-mojo.com/todayplus/viewtopic.php?p=3872#3872)
madTxn could you throw my edited scrip on your server, my sever dosen't run php?
Lordtwisted :(
I can't make the script work. I change the theater name and the zip code and I only get errors. :(
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. ;)
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.
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
Glad to know I wasn't crazy. :D
Thanks a lot, and Happy New Year to you too.
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!
I uploaded a new version here (http://www.dark-mojo.com/todayplus/viewtopic.php?p=4042#4042). Give that a try.
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
Can you post what URL you put in the registry?
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
It is a shame that we have to have our own PHP server to get this, what a loss!
I think you need an externally available address. Try using the IP address of "nj-01".
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.
I thought of doing that... And since I still have nothing to do at work, I'll probably do it tomorrow. ;)
You'r code works great.
Lordtwisted :D
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
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.
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