Tordex Community
TLB forum monitor - Printable Version

+- Tordex Community (http://forum.tordex.com)
+-- Forum: True Launch Bar plugins (http://forum.tordex.com/forum-4.html)
+--- Forum: Plugin features and improvements (http://forum.tordex.com/forum-15.html)
+--- Thread: TLB forum monitor (/thread-621.html)



- shapeshifter - 02-19-2003

I've written a provider file/ skin for weather monitor 1.2 that will allow it to monitor the TLB forums and change displays when there are new posts. Right now I'm just testing to see if it works (I'm impatient and didn't want to wait for somebody else to post Wink )
If it works, I'll post the zip here.


- shapeshifter - 02-19-2003

Well.. it doesn't seem to work. I link to http://www.tsoftcentral.com/cgi-bin/ikonboard/ikonboard.cgi and have it set up so that if it finds a blue button (on.gif or on-cat.gif) on that page, meaning there are new posts, it sets the condition to Sun, whose icon on the plugin is a blue button. I have set up the provider file to use cookies, but it never seems to use the current page, i.e. all topics always have the white iB button according to the plugin, but when I visit the page, there are blue buttons. Here's the provider file code:
Code:
[options]
name = True Launch Bar Forums
starturl=http://www.tsoftcentral.com/cgi-bin/ikonboard/ikonboard.cgi
SendCookies = 1

[Conditions]
find0 = "entry -->"
find1 = "<td bgcolor="#E9E9E9" align="center" width="5%"><img src="http://www.tsoftcentral.com/iB_html/non-cgi/Skin/Default/images/on"
delim = "gif"

[Sun]
.
-cat.
and the skin.ini file:
Code:
[options]
name=True Launch Bar Forums
author=shapeshifter
email=shapeATcomcastDOTnet
url=www.truelaunchbar.com/shapeshifter
version = 2

[general]
Background=bg.png
iconPos = 3 3

[default icons]
Sun=on.png

The bg.png is a white button, on.png is a blue button. Essentially, I'm trying to set it up so that it parses the web page until it finds the first instance of on.gif (but not the "key" at the bottom of the page). If it finds one, it turns the button blue, if it doesn't find any, it stays white. If I change the Find1 line in the provider file to look for ".../off", it turns the button blue, so I'm pretty sure everything is set up correctly, it's just not finding any blue buttons on the page, even if there have been new topics. I wonder if it just won't work because the cookies that tell which topics have been read are browser specific?

So, any ideas why its not working and/or how to fix it?


- Yuri Kobets - 02-19-2003

try to remove quotes from find1:
Code:
...
find1 = <td bgcolor="#E9E9E9" align="center" width="5%"><img src="http://www.tsoftcentral.com/iB_html/non-cgi/Skin/Default/images/on
...

this must works Smile
BTW great idea and TLB Forum monitor Wink


- shapeshifter - 02-19-2003

Unfortunately, that doesn't work either Sad

It's like it can see the page fine, but it just sees all the iB buttons as off, regardless of if there are new posts or not.

Like I said, I can change it so that it looks for off.gif graphics, and everything functions fine that way, but that's not very helpful to anyone.


- Yuri Kobets - 02-19-2003

hmm... now I see Sad this is the bug of the Weather Monitor. It does not send cookies. OK in the next version I'll fix this bug.