Later, TCL script is getting this data via internet.diabolic //user name
3 //user ID
13 May 2002 //joined date
1414 //posts
Clan Members //group name
http://myaddress.com/ipb/index.php?showuser=3 //link to profile
<speechles> !forum b
<sp33chy> Forum-Name-Here for b-real (Wiek nieznany lat/P³eæ nie zosta³a ustawiona) in Pocz±tkuj±cy | Do³±czy³: pi±, 24 lut 06 | Czas lokalny: pi±, 19 cze 2009 - 07:07 | Ostatnio widziany: czwartek, 16 kwiecieñ 2009 - 22:14 | Po³o¿enie nieznane | 1 postów (0 postów na dzieñ) | Wy¶wietleñ profilu: 37 @ http://www.invisionboard.pl/index.php?showuser=1125
<speechles> !forum msb
<sp33chy> Forum-Name-Here for Msb (22 lat/Mê¿czyzna) in #emerge system user | Do³±czy³: czw, 01 wrz 05 | Czas lokalny: pi±, 19 cze 2009 - 07:06 | Ostatnio widziany: Wczoraj | Jelenia Góra | 3 831 postów (2,76 postów na dzieñ) | Wy¶wietleñ profilu: 6 683 @ http://www.invisionboard.pl/index.php?showuser=1
Code: Select all
# set this to the command character you want to use for the binds
variable command_char "!"
# set these to your preferred binds ("one two three etc")
variable binds "forum f"
# if you want to allow users to search via /msg, enable this
variable private_messages 1
# Enter the EXACT URL of the forum search page leaving the name field empty
variable forumsearch "http://www.invisionboard.pl/index.php?act=members&name_box=begins&name="
# Enter the EXACT URL of the forum showuser page again, leaving field empty
variable forumuser "http://www.invisionboard.pl/index.php?showuser="
# Enter the name of your forum below
variable myforum "Forum-Name-Here"
# Set your output here you have a few variables to use
# %forum_name% = not read from page, this is display only
# %forum_url% = the url to the member page
# The rest are read from the page....
# %forum_nick% %forum_age% %forum_gender% %forum_member%
# %forum_date% %forum_time% %forum_seen% %forum_location%
# %forum_posts% %forum_profile%
variable output "\002%forum_name%\002 for %forum_nick% \(%forum_age%/%forum_gender%) in %forum_member% | %forum_date% | %forum_time% | %forum_seen% | %forum_location% | %forum_posts% | %forum_profile% @ %forum_url%"
# would you like to render output in charset detected?
# 0 is no, 1 and up is yes
variable renderchar 0
# would you like to force charset encoding? to enable this
# the option above MUST be zero to 0
variable mycharset "iso8859-2"
# ** this is not an optional setting, if a string is too long to send, it won't be sent! **
# It should be set to the max amount of characters that will be received in a public
# message by your IRC server. If you find you aren't receiving results, try lowering this.
variable split_length 440
# number of minute(s) to ignore flooders, 0 to disable flood protection
variable ignore 1
# how many requests in how many seconds is considered flooding?
# by default, this allows 3 queries in 10 seconds, the 4th being ignored
# and ignoring the flooder for 'variable ignore' minutes
variable flood 4:10
What version of ipb? Better yet send me the name of the site/url of the forum you'd like it to work with via private message through this forum. I can fix the regular expressions (regexps) which do the scraping/parsing and get them working for your site as well. The script itself is merely proof of concept that a php/tcl handshake isn't entirely necessary to get the information you desire. It can be done in pure tcl if "guest" access to the search/user php pages are allowed.ipbegg wrote:21:17:00 <me> !f Pensive
21:17:02 <BOT> Cannot complete your search request, "Pensive" not found.
dcc:
[21:23] Tcl error [incith::forum::private_message]: can't read "forum_nick": no such variable
What seems to be the problem?
Code: Select all
<@mlody> !u v Z
<~Nekomimi> Cannot complete your search request, "v Z" not found.
Code: Select all
<tomek> !u v z
<~Nekomimi> Ookamireunion for v Z (Wiek Nieznany lat/Miejsce zamieszkania nieznane) in Newbie | Dołączył: 09.3.09 | Lokalny Czas: 04.7.2009, 00:06 | Ostatnio Widziany: Dziś, 23:00 | Płeć Nie Ustawiona | 5 wypowiedzi (0.04 na dzień) | Wyświetleń Profilu: 13 @ http://forum.ookamireunion.pl/index.php?showuser=43
Change:Anahel wrote:is it possibe to change the script to work with Upercase characters? becasue :
but:Code: Select all
<@mlody> !u v Z <~Nekomimi> Cannot complete your search request, "v Z" not found.
Code: Select all
<tomek> !u v z <~Nekomimi> Ookamireunion for v Z (Wiek Nieznany lat/Miejsce zamieszkania nieznane) in Newbie | Dołączył: 09.3.09 | Lokalny Czas: 04.7.2009, 00:06 | Ostatnio Widziany: Dziś, 23:00 | Płeć Nie Ustawiona | 5 wypowiedzi (0.04 na dzień) | Wyświetleń Profilu: 13 @ http://forum.ookamireunion.pl/index.php?showuser=43
Code: Select all
# fetch the html
set html [fetch_html $input 1]}
Code: Select all
# fetch the html
set html [fetch_html [string tolower $input] 1]