It is currently May 28th, 2024, 6:20 pm

How to change links as RSS feed changes?

Get help with creating, editing & fixing problems with skins
User avatar
ScoobSTi
Posts: 127
Joined: September 12th, 2012, 10:49 pm

How to change links as RSS feed changes?

Post by ScoobSTi »

I'm creating a skin that reads a website's RSS feed and I need some help.

Currently, I've got a working skin that displays the top 10 most recent news stories which include the writer's name, the title of the article, and the article's header image. All that's left are dynamic links that link to the displayed story and also change when everything else changes. It's like a slideshow that changes stories every 20 seconds. I have the links in my RegExp and can be read by StringIndex numbers, but I need help with the LeftMouseUpAction entries.

Code: Select all

[Link1]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=4


[Link2]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=9


[Link3]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=14


[Link4]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=19


[Link5]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=24


[Link6]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=29


[Link7]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=34


[Link8]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=39


[Link9]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=44


[Link10]
Measure=Plugin
Plugin=WebParser.dll
Url=[News]
StringIndex=49


[cCounterLink]
Measure=Calc
Formula=cCounterLink%10+1
UpdateDivider=#UPDATETIME#


[PICTURE]
Meter=Image
ImageName=%[cCounterImage]
MeasureName=IMG1
MeasureName2=IMG2
MeasureName3=IMG3
MeasureName4=IMG4
MeasureName5=IMG5
MeasureName6=IMG6
MeasureName7=IMG7
MeasureName8=IMG8
MeasureName9=IMG9
MeasureName10=IMG10
MeasureName11=Link1
MeasureName12=Link2
MeasureName13=Link3
MeasureName14=Link4
MeasureName15=Link5
MeasureName16=Link6
MeasureName17=Link7
MeasureName18=Link8
MeasureName19=Link9
MeasureName20=Link10
X=0r
Y=0r
W=490
H=175
LeftMouseUpAction=["%[cCounterLink]"]
DynamicVariables=1
PreserveAspectRatio=2
I don't know if this is enough to base a conclusion off of, so if you need more just say so. :)
Image