• Welcome to TodayPlus Boards v2.
 

defregion-override question

Started by MadTxn, December 02, 2003, 10:20:15 AM

Previous topic - Next topic

MadTxn

Here's the plan...

I want to have my RSS section have a popup to display the RSS item description.  However, I have three sections below the RSS section that could be active or not.  I can write a hideous if...else statement to decide where each section may or may not be, but I'd rather not.  Is there a way to use variables or something in the defregion-override?

I'll probably just move the RSS section to the bottom...

srs

let me see if I can understand the situation better:

you want to display the rss description below the rss item area, but there could be different regions below the item area ?

without knowing the specifics of the skin, I can think of a couple of possiblities, and I'm not sure which one would meet your demands.

1)  you can put all those regions that are below inside another region and have the rss description as another page in that "parent" region,

ie.


region,0,0,-1

region,1,0,-1
// subregion 1
endregion,1,0

region,2,0,-1
// subregion 2
endregion,2,0

region,3,0,-1
// subregion 3
endregion,3,0

endregion,0,0

region,0,1,-1
// RSS description region
endregion,0,1


this may require a full rerender if the height is going to change when you activate the descriptions.  you can use some if statements to check if they are necessary.

2.  using if statements (it shouldn't be too bad...).  something along the lines of:

if,region,1,0
  if,region,2,0
     if,region,3,0
         // we have all 3 regions active...
     else
         // regions 1 & 2 active
     endif
  else
     if,region,3,0
         // regions 1 & 3 active
     else
         // region 1 active
     endif
  endif
else
....


depending on which regions are active, you could customize the size the rss description will take / decide if you want to do a full rerender (to increase the size), etc

feel free to post your skin or ask any further questions if you need any more help.

MadTxn

Hmm... rereading my post, I see that I was none too clear on what I wanted.  My idea was to have a popup bubble (like the filters on the slider skin) with the RSS description.  The reason is that for my movie listings feed, especially with new movies, the description can be quite large.  

Your second solution is what I was going to do, I just was wondering if there was an easier way.

What I have done is moved the RSS section to the bottom, and I'm going to have the description as a popup bubble higher than it.  I should be able to accomplish this with defining a region with absolute position values, and not using any offsets.  I've accidentally overlayed regions before, so I'm sure I can do it on purpose. ;)

Thanks for the response.

fishboy

MadTxn,

A little off topic, but what rss feed are you using for movie listings?
Axim X5 Advanced, Windows Mobile 2003

MadTxn

I wrote a PHP script to get movie listings.  You can get it from this thread:

http://www.dark-mojo.com/TodayPlus/viewtopic.php?p=3872#3872

But you need to have an accessible PHP server to make it work.