Hi everyone,
I need some help with my skin.
With the arrival of a new game server, we need to be able to read the rss feed
of a section dedicated to help requests from it...
The windows of my skin for sections 1 to 4 work well, but not for the 5th that I just created.
(This is because there are only two subjects created and not ten in the section ?)
Clicking on the rows should also open my browser on the server section...
My skin :
https://www.aht.li/3132006/RSS_NH_102.rar
The section :
https://board.fr.nostale.gameforge.com/index.php/Board/541-Serveur-5/
The rss flux :
https://board.fr.nostale.gameforge.com/index.php/BoardFeed/541/
The FeedBurner link :
http://feeds.feedburner.com/NH-Serveur5-NostaleFr
Thanks in advance to anyone who would help me.
Océbé, Nostale-Helper.
It is currently April 26th, 2024, 7:20 pm
[Solved] Need help with our rss reader
-
- Posts: 2
- Joined: October 18th, 2017, 6:32 pm
[Solved] Need help with our rss reader
Last edited by Océbé on October 18th, 2017, 10:08 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Need help with our rss reader
The only issue of the 5th skin is that it has too many #storysect# variables in the RegExp option of the [RSS] measure. The appropriate RSS feed doesn't has so many articles, but just two.
Remove those variables, leaving just two of them:RegExp=(?siU)#storysect##storysect# and the skin will start to work.
As an alternative solution, you could use Lookahead Assertion in your RegExp. In a such case, the measure will return as many titles and link as many there are.
Remove those variables, leaving just two of them:RegExp=(?siU)#storysect##storysect# and the skin will start to work.
As an alternative solution, you could use Lookahead Assertion in your RegExp. In a such case, the measure will return as many titles and link as many there are.
-
- Posts: 2
- Joined: October 18th, 2017, 6:32 pm
Re: Need help with our rss reader
Thank you, I learned something today.
We will wait until there have been enough requests for the skin to work.
I wish you an excellent night. My greetings to FreeRaider also.
Océbé.
We will wait until there have been enough requests for the skin to work.
I wish you an excellent night. My greetings to FreeRaider also.
Océbé.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: [Solved] Need help with our rss reader
As I said, you can use the Lookahead Assertion, to make the code to return the appropriate strings when they are there, or empty ones, if they are not.
For this, replace the storysect variable within the [Variables] section with the following one: storysect=[color=#FF0000](?(?=.*[/color]<item[color=#FF0000]).*[/color]>.*<title>(.*)</title>.*<link>(.*)</link>.*</item>[color=#FF0000])[/color] (with red you can see the added characters).
Now you can use this variable as many times as you wish in the RegExp option of the [RSS] measure: RegExp=(?siU)<item>.*<title>(.*)</title>.*<link>(.*)</link>.*</item>.*#storysect##storysect##storysect##storysect##storysect##storysect##storysect##storysect##storysect#. Where there are strings to be returned, they will be returned, the rest of the measures returning empty strings.
This is a very good practice to avoid continuous rewriting of the RegExp. Simply those measures which don1t have what to return, will return empty strings.
For this, replace the storysect variable within the [Variables] section with the following one: storysect=[color=#FF0000](?(?=.*[/color]<item[color=#FF0000]).*[/color]>.*<title>(.*)</title>.*<link>(.*)</link>.*</item>[color=#FF0000])[/color] (with red you can see the added characters).
Now you can use this variable as many times as you wish in the RegExp option of the [RSS] measure: RegExp=(?siU)<item>.*<title>(.*)</title>.*<link>(.*)</link>.*</item>.*#storysect##storysect##storysect##storysect##storysect##storysect##storysect##storysect##storysect#. Where there are strings to be returned, they will be returned, the rest of the measures returning empty strings.
This is a very good practice to avoid continuous rewriting of the RegExp. Simply those measures which don1t have what to return, will return empty strings.