by Riamus » Mon Sep 07, 2009 7:28 am
Kind of, yeah. Though you are using %temptxt and %temptxt1. You'll have to adjust that. It will work without fixing it, but not as well. Also, keep in mind that your $striphtml() part doesn't need the nick and Stats: inside of it and that it will only remove html tags... if the line has Stats:, Posts, Today, Total, etc. in it, you'll see those in your $striphtml(), so you're going to have Stats: doubled. You also don't need your IF line to be that long unless that's the only way to get it to match the right line. If it will match the right line with just: if (<span class="smallText"> $+ %site.nick *) { } , then that's probably the better way to have it. Also, make sure you use $+ to connect a variable with something else... you can't have class="smallText">%site.nick or it won't treat it as a variable. If there's a space in the source, then you can just put a space, but if they touch in the source, use $+ like I showed to connect them.
You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.