• Welcome to TodayPlus Boards v2.
 

RSS- More lines.

Started by Yogiman, January 05, 2004, 09:39:32 AM

Previous topic - Next topic

Yogiman

Is it possible to have the RSS section display more then 3 lines. I would like to adjust my skin so rss can display 6 lines... so this region would be twice the size of a normal region.
Eat well, Stay fit, Die anyway...

MadTxn

You kind of answered your own question...  You can make your RSS section as large as you want it



You just need to adjust your defregion and offsetadd commands and play around with the layout.

Yogiman

Anychance somebody can help me with this ? I've got the RSS section with 6 lines, but my scrollbar doesn't work the way it should. I think have to change the vars, but i dont know how :(

//=================================================
// 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,99,6
   offset,offset_-1,offset_-1
   updateregions,5,6
//   image,0,0,dotted_line.png,tr

   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,region,19,1
imagebutton,15,2,online.png,t,19,4,0,4
else
imagebutton,15,2,offline.png,t,19,4,1,4
endif



      if,online
         imagebutton,2,2,online.png,t,4,31,
      else
         imagebutton,2,2,offline.png,t,4,30,
      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%

         
      updateregions,7

      offsetadd,0,2

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

      button,226,23,11,3,4,6,var5=1
      button,226,26,11,3,4,6,var5=4
      button,226,29,11,3,4,6,var5=7
      button,226,32,11,3,4,6,var5=10
      button,226,35,11,3,4,6,var5=13
      
      button,226,23,11,3,4,6,var6=23
      button,226,26,11,3,4,6,var6=25
      button,226,29,11,3,4,6,var6=27
      button,226,32,11,3,4,6,var6=29
      button,226,35,11,3,4,6,var6=31
      
      imagebutton,226,12,up_arrow.png,t,4,13,var5_-3
      button,226,12,11,11,-1,13,var6_-2      
      imagebutton,226,71,down_arrow.png,t,4,13,var5_3
      button,226,71,11,11,-1,13,var6_2
      
      if,var,var5,,>,15
         storevar,var5=13
         storevar,var6=31
      else
      endif
      
      if,var,var5,,<,1
         storevar,var5=1
         storevar,var6=23
      else
      endif
      
      image,226,%var6%,scroll.png,t

      offsetadd,0,-2

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

      RSS,title,20,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,20,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,20,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,-2


   


      offsetadd,0,99
      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,2,2,online.png,t,4,31,
         imagebutton,212,2,link-online.png,t,-1,12,%var4%
      else
         imagebutton,2,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,15,2,210,12,%var4%,,,c
      changefont,Frutiger Linotype,11,
      RSS,description,5,12,230,36,%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,56
      endregion,6,100
      
   color,font,-1_4_-1      
      
   endregion,4,0
Eat well, Stay fit, Die anyway...