Description
With this mod, you will be able to click on a link in chat and be shown the title of the webpage. If it's a YouTube video, the title, length, uploader, rating, number of comments, and thumbnail will also be shown. If it's an image, there will be a button to show it on screen.
Images
How it Works
In order to get info about a webpage, I first have to connect to it. Afterwards, I read the header info to make sure it's an image or html file. If it's html, all that's left is to parse it for the title.
Nope, Gifs will not stay animated. It may be possible, but it would be too complex for me. There's also an issue with very large jpgs where it won't properly scale.
java.lang.ArrayIndexOutOfBoundsException: 0
at mnm.mods.linkinfo.GuiLinkInfo.obf(GuiLinkInfo.java:88)
at mnm.mods.linkinfo.GuiLinkInfo.obf(GuiLinkInfo.java:78)
at mnm.mods.linkinfo.GuiLinkInfo.(GuiLinkInfo.java:39)
at mnm.mods.linkinfo.LiteModLinkInfo.onRenderGui(LiteModLinkInfo.java:45)
at com.mumfrey.liteloader.client.ClientEvents.preRenderGUI(ClientEvents.java:552)
at com.mumfrey.liteloader.client.CallbackProxyClient.postRenderHUDandGUI(CallbackProxyClient.java:202)
at blt.b(EntityRenderer.java:1325)
at bao.ak(SourceFile:801)
at bao.f(SourceFile:728)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
It will only show the redirect if the website uses http redirect. Putting the redirect in HTML won't work. Most yourls shorteners should work. I know for a fact that tinyurl does.
As for the images, it's supposed to load the image as a Buffered Image, then use the render manager to load it when the link is clicked. The only thing clicking the button actually does is set a flag to show the image.
Two questions
1. Why didn't you just add these features to tabbychat? Copyright issues/Not your mod issues?
2. Is this compatible with Tabbychat? =D
Thanks!
1. I don't really think it fits in with tabbychat. I originally wanted to show the image image as hover text, but I ended up doing this because it was easier and and more informative about the links.
2. Yes. I would be very sad if it wasn't because I use both mods frequently on a daily basis.
Link Info 0.6 for 1.8
See basic info about links
Requires LiteLoader
LiteLoader 1.8
Description
With this mod, you will be able to click on a link in chat and be shown the title of the webpage. If it's a YouTube video, the title, length, uploader, rating, number of comments, and thumbnail will also be shown. If it's an image, there will be a button to show it on screen.
Images
How it Works
In order to get info about a webpage, I first have to connect to it. Afterwards, I read the header info to make sure it's an image or html file. If it's html, all that's left is to parse it for the title.
Download
Version 0.6 for 1.8 https://www.dropbox.com/s/2amnotw15502fne/LinkInfo-mc1.8-0.6.litemod?dl=0
Version 0.4 for 1.7.10 https://www.dropbox.com/s/58z8ic8bbm78m41/Link_Info-mc1.7.10-0.4.litemod
Version 0.3.1 for 1.7.10 https://www.dropbox.com/s/djsga5340dwyotg/Link_Info-mc1.7.10-0.3.1.litemod
Version 0.2 for 1.7.2_04 http://www.mediafire...0235pm7xttvhay6
Future Plans
Changelog
0.6
Added: imgur albums, deviantart, derpibooru, update checker if MnmUtils is installed
Fixes: html escape webpage titles
0.4
0.3.1
0.3
0.2
0.1
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
How does server voting look like?
It should be better since that's what links in minecraft are used for these days.
It should show the title of the page as long as it's not a redirect. I'm still working on 301 errors (Moved Permanently or redirects).
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
http://www.mediafire...0235pm7xttvhay6
Changelog:
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
i can finally be lazy
Lemme just say :
Thank you
EDIT : What about imgur GIFs?
Will they stay animated?
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
Is there a settings file?
https://www.dropbox.com/s/zqo84fnttazvr3l/Link_Info-mc1.7.10-0.3.litemod
Changelog
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
https://www.dropbox.com/s/djsga5340dwyotg/Link_Info-mc1.7.10-0.3.1.litemod
Changelog
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
also it doesn't download the image unless you click Show?
As for the images, it's supposed to load the image as a Buffered Image, then use the render manager to load it when the link is clicked. The only thing clicking the button actually does is set a flag to show the image.
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
1. Why didn't you just add these features to tabbychat? Copyright issues/Not your mod issues?
2. Is this compatible with Tabbychat? =D
Thanks!
2. Yes. I would be very sad if it wasn't because I use both mods frequently on a daily basis.
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
Mods I work on and maintain:
TabbyChat | Mine Little Pony
My Blog
I have a minecraft server that me and my friends play on, and we like to share links to YouTube videos and stuff.
This mod is exactly what I'm looking for.
AntraxCraft - The Most Elite Server Out There! - www.antraxcraft.org