• Welcome to TodayPlus Boards v2.
 

RSS - 6 line troubles

Started by Barbaros, January 26, 2004, 12:21:36 AM

Previous topic - Next topic

Barbaros

Hi, I am build a custom skin and am using some rss code from Yogimans skin. The code expands the rss area, making it easier to read and adds 6 lines of RSS titles instead of 3.
The problem is that if you tap the title to open the description page, only 3 lines of text for the description are displayed. I'd rather it take advantage of the new extra area and display some more lines of the description. I just can't figure out how TodayPlus is setting the description cache length.
I hope Yogiman, MadTxn or some other experienced rsser can come to my rescue because I am lost and I can't release a skin that doesn't work :|. I have attached a picture to help explain, it shows the empty area above the battery info.

Lordtwisted

barbaros,

   This is wher you set the hight of description, make it the same hight as region:


  RSS,description,55,62,160,210,%var4%,     ,,var20

The 210 is the hight for my description, there should be two of them.

 Also when you do realese you'r skin don't forget to mention who you borrowed parts of the skin from, got to give credit.


Lordtwisted :D

Barbaros

Ya I tried that, it didn't work. I am posting the complete RSS code I use, I'll explain more below where the code is:

//////////// BEGIN LINES RSS SCROLLING//////////////////////////////

region,19,1,7
defregion-copy,19,4
updateregions,4,1
addvar,var5,6
addvar,var6,12
if,var,var5,25,><,25
storevar,var5=1
storevar,var6=23
else
endif


endregion,19,1


////////////////////////// END SCROLLING///////////////////////////


//=====================
// REGION 4 - PAGE 0
//   Container for RSS
//   Subregions: 5,6
//   Vars used:
//=====================
region,4,0,-1

changefont,Frutiger Linotype,11

defregion,4,0,0,240,90,6
offset,offset_-1,offset_-1
updateregions,5,6
image,0,0,dotted_line.png,tr
imagebutton,2,2,rss active.png,t,4,4,999,-1

if,refresh
color,font,125_125_125
else
color,font,-1_4_-1
endif



//==============
// REGION 6 - PAGE 0
//   RSS Headline Display
//   Subregions: 7
//   Vars used: 2,3,4,5,6,7
//==============
region,6,0,-1

if,online
imagebutton,14,2,online.png,t,4,31,
button,14,2,11,11,19,4,0,4      
else
   

imagebutton,14,2,offline.png,t,4,30,
button,14,2,11,11,19,4,1,4      

endif
      
initvar,var2,1
      
imagebutton,212,2,left_arrow.png,t,4,13,var2_-1
button,212,2,11,11,-1,6,var5=1
button,212,2,11,11,-1,6,var6=23

imagebutton,226,2,right_arrow.png,t,4,13,var2_1
button,226,2,11,11,-1,6,var5=1
button,226,2,11,11,-1,6,var6=23
      
if,var,var2,,>,%var28%
storevar,var2=1
else
endif
      
if,var,var2,,<,1
storevar,var2=%var28%
else
endif
   
load,rss,%var2%



text,28,2,[,l
text,33,2,%var2%,l
text,48,2,/2,r
text,51,2,],l


         
updateregions,7

offsetadd,0,2

image,226,23,scrollbar.png,t
image,226,40,scrollbar.png,t
image,226,57,scrollbar.png,t

      
      
imagebutton,226,12,up_arrow.png,t,4,13,var5_-6
button,226,12,11,11,-1,13,var6_-12      
imagebutton,226,74,down_arrow.png,t,4,13,var5_6
button,226,74,11,11,-1,13,var6_12
      
if,var,var5,,>,18
storevar,var5=19
storevar,var6=57
else
endif
      
if,var,var5,,<,1
storevar,var5=1
storevar,var6=22
else
endif
      
image,226,%var6%,scroll1.png,t

offsetadd,0,-2

changefont,Frutiger Linotype,11,b
text,120,2,[name],c
changefont,Frutiger Linotype,11,

RSS,title,15,14,205,12,%var5%,,,
button,15,14,210,12,6,4,100-highlight,4
button,15,14,210,12,-1,6,var4=%var5%

if,online
image,4,16,green circle.png,t
else
if,pagecached,%var5%
image,4,16,green circle.png,t
else
image,4,16,red circle.png,t
endif
endif
      
addvar,var5,1

RSS,title,15,26,205,12,%var5%,,,
button,15,26,210,12,6,4,100-highlight,4
button,15,26,210,12,-1,6,var4=%var5%
if,online
image,4,28,green circle.png,t
else
if,pagecached,%var5%
image,4,28,green circle.png,t
else
image,4,28,red circle.png,t
endif
endif
      addvar,var5,1

RSS,title,15,38,205,12,%var5%,,,
button,15,38,210,12,6,4,100-highlight,4
button,15,38,210,12,-1,6,var4=%var5%
if,online
image,4,40,green circle.png,t
else
if,pagecached,%var5%
image,4,40,green circle.png,t
else
image,4,40,red circle.png,t
endif
endif
   

addvar,var5,1

RSS,title,15,50,215,12,%var5%,,,
button,15,50,210,12,6,4,100-highlight,4
button,15,50,210,12,-1,6,var4=%var5%
if,online
image,4,52,green circle.png,t
else
if,pagecached,%var5%
image,4,52,green circle.png,t
else
image,4,52,red circle.png,t
endif
endif


addvar,var5,1

RSS,title,15,62,215,12,%var5%,,,
button,15,62,210,12,6,4,100-highlight,4
button,15,62,210,12,-1,6,var4=%var5%
if,online
image,4,64,green circle.png,t
else
if,pagecached,%var5%
image,4,64,green circle.png,t
else
image,4,64,red circle.png,t
endif
endif

   
addvar,var5,1

RSS,title,15,74,215,12,%var5%,,,
button,15,74,210,12,6,4,100-highlight,4
button,15,74,210,12,-1,6,var4=%var5%
if,online
image,4,76,green circle.png,t
else
if,pagecached,%var5%
image,4,76,green circle.png,t
else
image,4,76,red circle.png,t
endif
endif
addvar,var5,-5

offsetadd,0,90
endregion,6,0

   //========================
   // REGION 6 - PAGE 100
   //   RSS Description
   //   Vars used: 4
   //========================
region,6,100,-1
jumpregion,19,0
//jumpregion,19,999
load,rss,%var2%

if,online
imagebutton,14,2,online.png,t,4,31,
imagebutton,212,2,link-online.png,t,-1,12,%var4%
else
imagebutton,14,2,offline.png,t,4,30,
if,pagecached,%var4%
imagebutton,212,2,link-offline.png,t,-1,12,%var4%
else
endif
endif


imagebutton,226,2,back.png,t,6,3,,4
changefont,Frutiger Linotype,11,b
RSS,title,21,2,210,12,%var4%,,,c
changefont,Frutiger Linotype,11,
RSS,description,5,12,230,80,%var4%,     ,,var20
calcvar,var20,/,%var20%,2
calcvar,var20,-,30,%var20%
if,var,var20,,<,12
storevar,var20=12
else
endif
RSS,description,5,%var20%,230,80,%var4%,     ,,
offsetadd,0,90
endregion,6,100
   
color,font,-1_4_-1      
   
endregion,4,0

///////////////////////////////////////////

If there's a bit or two missing, it's prolly been lost while I hacked out the tabulation. I wanted to make it easier for you to read though.
These are the line I changed where {} describes the changes:
RSS,description,5,12,230,{from 80 to 160},%var4%,     ,,var20
RSS,description,5,%var20%,230,{from 80 to 160},%var4%,     ,,

After clearing the buffer and reloading the plugin, my screen still looks the same above, still only 3 lines of the description are cached. Can you think of anything else I might need to change along with the description box height?

PS Thanks for you help and your contributions to the community, LordTwisted. Without you, my skin wouldn't have existed. :P JK, I plan to wholly acknowledge all those I used code from.

Cheers

PPS Ya, I just noticed the forum takes out the whitespace for me.

Yogiman

Are you sure there is more text in the rss description ? I looks like there is no more text. The code i use uses the whole rss area to show the text.

Could you post or pm me you skin i'll see if i can find the mistake.
Eat well, Stay fit, Die anyway...

Lordtwisted

Barbaros,

  Did you get it worked out yet?

Lordtwisted