• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 20:06
CET 02:06
KST 10:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket12Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays A cwal.gg Extension - Easily keep track of anyone soO on: FanTaSy's Potential Return to StarCraft [ASL20] Ask the mapmakers — Drop your questions FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread EVE Corporation Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread The Games Industry And ATVI US Politics Mega-thread Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1577 users

[PHP] Chat log link filter

Blogs > quirinus
Post a Reply
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
Last Edited: 2013-06-08 07:53:03
June 08 2013 07:29 GMT
#1
This PHP script allows you to load a file and it reads line by line to filters out links. I decided to post it here just in case someone needs something like this.

This was something I wanted to make for a long time, but didn't have the time and motivation to do it until now.
I made this specifically to log links from RollPlay live chat so I can watch it in peace instead of having to click every link to see it before it's lost (there's a lot of hilarious pictures). I'm archiving the pictures and links for the nostalgia value and to help people who can't watch live to have some taste of the gems and atmosphere from the chat.
If anyone wants to help log itmejp's channel during RollPlay that would be awesome in case I get disconnected or unable to do it. (Later we could even get complete VODs+chat with that; yes, I know someone else is doing it already - the more the merrier.)

I probably won't be updating this script for a while, if ever.



Features:
  • It will show the time when the link first appeared; next to it is the number of times it was written in chat.
  • It allows you to copy all the links at once (without timestamps) and you can click on them to check them.
  • For longer chat sessions, I suggest turning on Show sessions when loading a log file so you can see when disconnects happen.
  • If there's some timezone/time mismatch, you can manually write your timezone.

Screenshot:

[image loading]


Code:

Pastebin raw text link

It's very ineffective, not optimized, very badly structured and not commented, but it does what I need it to, without any problem.



Settings:

Note that this script was written mostly with mIRC in mind. I assume other IRC programs behave similarly, so you can use them as well if they can format log files similarly. The .log file text formatting I used was:
+ Show Spoiler +
It assumes that the message format is: [time] <nickname> Message
Message time stamps should be Fri, 07 Jun 2013 13:45:54 +0200, but I think others would work as well, especially if sessions are formatted in the same way.
Session start should be indicated by Session Start: in the line, followed by a time stamp like above.
Session end should use Session Close:, followed by a time stamp as well.


mIRC settings that will allow you to log and filter the chat links:
+ Show Spoiler +
Tools -> Options -> IRC -> Logging -> [checked] Timestamp logs: [ddd, dd mmm yyyy HH:nn:ss zz]

Tools -> Options -> Connect -> Nickname -> your_twitch_account_name (case sensitive)
Tools -> Options -> Connect -> Alternative-> your_twitch_account_name
Tools -> Options -> Connect -> Servers -> Add:
Description: Twitch.tv
IRC Server: your_account_name.jtvirc.com
Port: 6667
Group: Twitch.tv
Password: your_account_password

Then select it on the list and click the Select button.
Click Connect. (in the future, you can connect by clicking the thunderbolt button on the top left)

Once connected type /j channel_name to join a channel and stay in to keep logging it.

If you can't connect to the server (happens often), just keep trying, or add another server:
Description: Twitch.tv IP
IRC Server: 199.9.250.229
Port: 6667
Group: Twitch.tv
Password: your_account_password

And follow the same steps.

My log file folder is in: C:\Users\My_Name\AppData\Roaming\mIRC
You can find yours by going to: Tools -> Options -> IRC -> Logging -> Logs and buffer saves folder button.

  • If you're renaming the file, don't forget to change the name in the line $self_path = "links.php"; at the start as well.
  • If you want, you can choose a default timezone by un-commenting the line that contains $timezone_override and writing your timezone instead of Europe/Zagreb. (You can see the timezones list here.)



I suggest clearing the log every time you have a new link-recording-session so things don't get mixed up or just manually copy the sessions you need to a new file/folder - it's not necessary, but it will probably help you a lot with big logs.

Have fun!

All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
Last Edited: 2013-06-11 07:04:48
June 08 2013 07:33 GMT
#2
I'm not sure if this is supposed to be posted in blogs or normal forum, so I decided to post it here as it's less obtrusive and belongs to a small niche.

edit: eh seems TL removes backslashes, I guess I'll link the code from somewhere else, brb.
edit2: fixed a few mistakes, should work as intended now
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
Please log in or register to reply.
Live Events Refresh
Next event in 6h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 213
StarCraft: Brood War
Leta 27
Dota 2
NeuroSwarm105
Super Smash Bros
C9.Mang0201
Other Games
summit1g15233
Grubby5250
fl0m966
WinterStarcraft243
ViBE149
Trikslyr66
ToD10
Organizations
Other Games
gamesdonequick627
BasetradeTV21
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Hupsaiya 81
• davetesta30
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• mYiSmile149
• Azhi_Dahaki14
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22472
League of Legends
• Doublelift4951
Other Games
• Scarra1135
• imaqtpie1094
Upcoming Events
RSL Revival
6h 24m
Classic vs MaxPax
SHIN vs Reynor
herO vs Maru
WardiTV Korean Royale
10h 54m
SC Evo League
11h 24m
IPSL
15h 54m
Julia vs Artosis
JDConan vs DragOn
OSC
15h 54m
BSL 21
18h 54m
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
1d 6h
Wardi Open
1d 12h
IPSL
1d 18h
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
1d 18h
StRyKeR vs Artosis
OyAji vs KameZerg
[ Show More ]
OSC
1d 21h
OSC
2 days
Monday Night Weeklies
2 days
OSC
2 days
Wardi Open
3 days
Replay Cast
4 days
Wardi Open
4 days
Tenacious Turtle Tussle
4 days
The PondCast
5 days
Replay Cast
5 days
LAN Event
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.