It is currently April 19th, 2024, 10:14 pm

Smiley in chat skin

Get help with installing and using Rainmeter.
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Smiley in chat skin

Post by Uragan66 »

Good day to all!
Sorry for my bad English.
I request assistance in this question:
Did chat with Forum skins, but there is a problem in it, instead of emoticons displays links to them.
Tried generally remove links by replacing but smileys can be different and it is impossible to write them all.
Tell me please, how can I remove smilies or replace with subtitute "sm"?
You do not have the required permissions to view the files attached to this post.
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Re: Smiley in chat skin

Post by Uragan66 »

I'm sorry, maybe I've explained it wrong.
I need to make the substitution:

Code: Select all

Substitute=<img src="http://alsiti.net/Smileys/default/"any content" class="smiley" /> ':"Sm"
that is between

Code: Select all

http://alsiti.net/Smileys/default/
and that

Code: Select all

 class="smiley" />
can be any content

Can I make the substitution and how can I write this regular expression?
Thank you for answering.
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Smiley in chat skin

Post by balala »

It's very hard for me to follow the text written with the cyrillic letters and that probably would be the main reason you didn't get any reply until now. Due to this fact, I'm not sure this would be entire solution of your problem, but you have to know that the RegExpSubstitute option can't be used into the [Rainmeter] section of your skin, as you did. That option belongs to measures, so it must be used into a measure. So remove it from the [Rainmeter] section and add one next to each Substitute option, into the appropriate measures ([Measure1B], [Measure2B], [Measure3B], [Measure4B] and finally [Measure5B]).
You also could try to replace the Substitute variable ([Variables] section), with the following one: Substitute='" alt=".*" title=".*"':"".
Please let me know if any of these ideas, helped.
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Re: Smiley in chat skin

Post by Uragan66 »

balala, Thank you very much for the help!
But options offered by you not helped
write code:

Code: Select all

[Variables]
Item=style=.*>(.*)</a>(.*)<br />.*</li>.*
UpdateRate=300
ClipString=1
Substitute="<strong>":"","</strong>":"","&nbsp;":"",'" alt=".*" title=".*"':""

[image1]
Meter=Image
Solidcolor=0,0,0,200
X=0
Y=0
W=350
H=100

[style]
FontFace=Trebuchet MS
FontSize=8
StringStyle=BOLD
FontColor=250,250,250,200
AntiAlias=1
ClipString=1

[Meter]
Meter=String
X=10
Y=5
W=335
H=12
MeterStyle=style
Text="Чат в беседке"

[Measure]
Measure=Plugin
Plugin=WebParser.dll
Url=http://alsiti.net/index.php
RegExp="(?siU).*</h3>.*<ul class=.*>.*#Item##Item##Item##Item##Item#</ul>
DecodeCharacterReference=1
UpdateRate=#UpdateRate#

[Measure1A]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=1
UpdateRate=#UpdateRate#

[Measure1B]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=2
UpdateRate=#UpdateRate#
Substitute=#Substitute#
RegExpSubstitute=1

[Measure2A]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=3
UpdateRate=#UpdateRate#

[Measure2B]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=4
UpdateRate=#UpdateRate#
Substitute=#Substitute#
RegExpSubstitute=1

[Measure3A]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=5
UpdateRate=#UpdateRate#

[Measure3B]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=6
UpdateRate=#UpdateRate#
Substitute=#Substitute#
RegExpSubstitute=1

[Measure4A]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=7
UpdateRate=#UpdateRate#

[Measure4B]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=8
UpdateRate=#UpdateRate#
Substitute=#Substitute#
RegExpSubstitute=1

[Measure5A]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=9
UpdateRate=#UpdateRate#

[Measure5B]
Measure=Plugin
Plugin=WebParser
URL=[Measure]
StringIndex=10
UpdateRate=#UpdateRate#
Substitute=#Substitute#
RegExpSubstitute=1

[Meter1]
Meter=String
MeasureName=Measure1A
MeasureName2=Measure1B
X=10
Y=25
W=335
H=12
MeterStyle=style
Text="%1 %2"

[Meter2]
Meter=String
MeasureName=Measure2A
MeasureName2=Measure2B
X=r
Y=15r
W=335
H=12
MeterStyle=style
Text="%1 %2"

[Meter3]
Meter=String
MeasureName=Measure3A
MeasureName2=Measure3B
X=r
Y=15r
W=335
H=12
MeterStyle=style
Text="%1 %2"

[Meter4]
Meter=String
MeasureName=Measure4A
MeasureName2=Measure4B
X=r
Y=15r
W=335
H=12
MeterStyle=style
Text="%1 %2"

[Meter5]
Meter=String
MeasureName=Measure5A
MeasureName2=Measure5B
X=r
Y=15r
W=335
H=12
MeterStyle=style
Text="%1 %2"
but the links are displayed in the skin
Image

This is a problem not only of the skin should make several skins with the latest messaging forums, but can't remove links with quotes, pictures, smiley faces.
These links are always in different places messages
I don't know how to remove them from the output webparser

Maybe you can solve the LUA script, but unfortunately I do not know him
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Smiley in chat skin

Post by balala »

Let's see if I understood exactly what you want to achieve. If I'm not wrong, you'd like to have in the shown string, instead of the appropriate links of the smileys, the images themselves. Am I right?
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Re: Smiley in chat skin

Post by Uragan66 »

Thank you for your help!
Sorry for my bad English.
I would love to have these link for a quote, images, smilies were replaced with ""
That is:

Code: Select all

substitute = "link": ""
In RegExp, they cannot be deleted because they are always in messages elsewhere in the HTML
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Smiley in chat skin

Post by balala »

Try to add to the Substitute variable (within the [Variables] section), any of the following expressions: '<.*"http://.*>':"" or '<img src="http://alsiti.net/Smileys/default/.*/>':"". Be careful to not remove the existing substitutions, just add just ONE of the above (try both, to see which one is better for you).
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Re: Smiley in chat skin

Post by Uragan66 »

balala, Super ! Thank you very much for your help!
All turned out, emoticons have disappeared.
Image

I think of this example and other links can be clean up of the code?
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Smiley in chat skin

Post by balala »

Uragan66 wrote:balala, Super ! Thank you very much for your help!
All turned out, emoticons have disappeared.
Image

I think of this example and other links can be clean up of the code?
Glad to help.
But finally which substituting expression did you use?
Uragan66
Posts: 8
Joined: December 11th, 2016, 6:17 pm

Re: Smiley in chat skin

Post by Uragan66 »

balala wrote:Glad to help.
But finally which substituting expression did you use?
:thumbup: Works with :

Code: Select all

'<.*"http://.*>':"",'<img src="http://alsiti.net/Smileys/default/.*/>':""
with :

Code: Select all

'<.*"http://.*>':""
do not want to work

:bow: