It is currently March 29th, 2024, 5:12 am

Web Parser exploration

Get help with creating, editing & fixing problems with skins
sea1monkey2
Posts: 28
Joined: April 21st, 2010, 4:03 am

Web Parser exploration

Post by sea1monkey2 »

so i am making an rss feeder, and it has tabs, and i have been trying to considerably down the code to make it easier to add more tabs at will

So here is my first attempt at making slim code system

Code: Select all

[MeasureRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#FeedURL#
RegExp="#RegExp#"
UpdateRate=900
Substitute=#Substitute#
DynamicVariables=1

[MeasureRSSItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS]
Substitute=#Substitute#
StringIndex=1
i have the variables being changed by clicking the tabs, which has worked in the past on this skin for changing tabs and such, but it seems that the webparser does not like to work that way

then i made a second attempt

Code: Select all

[MeasureRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=(Random URL Here)
RegExp="(Random Regular Expresson Here)"
UpdateRate=900
Substitute=#Substitute#
DynamicVariables=1

[MeasureRSS2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=(Random URL Here)
RegExp="(Random Regular Expresson Here)"
UpdateRate=900
Substitute=#Substitute#
DynamicVariables=1

[MeasureRSSItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS#Feed#]
Substitute=#Substitute#
StringIndex=1
on this attempt, i moved the variables to the string measures, but those measure also do not wish to be changed by variables

any ideas?
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Web Parser exploration

Post by JpsCrazy »

Dynamic Variables do not work with plugins.
sea1monkey2
Posts: 28
Joined: April 21st, 2010, 4:03 am

Re: Web Parser exploration

Post by sea1monkey2 »

is there a cheap workaround, or would i have to write out all of the string measures for each tab?
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Web Parser exploration

Post by JpsCrazy »

As far as I know, you'll have to write it all out.

May I recommend copy and paste and change what you need each time?
sea1monkey2
Posts: 28
Joined: April 21st, 2010, 4:03 am

Re: Web Parser exploration

Post by sea1monkey2 »

its alright, i already have it written out in another instance of the feed reader, im just trying to make it lighter, thanks