The Last Homely House

General => The Golden Hall => Topic started by: Kralik on June 06, 2008, 10:29:01 PM

Title: Autolink Revamp!
Post by: Kralik on June 06, 2008, 10:29:01 PM
It's amazing, if I may say so myself! The product of 3-4 hours work.

Hover over a link to see the image of the card. Images will not load until you need them. This should work in all themes. If you have any issues or it doesn't work as expected, please let me know! Also, make sure you are using a modern browser with JavaScript enabled.

A couple of thoughts:
1) If the image loads off-screen, wiggle the mouse a little after it finishes loading.
(EDIT: seems to work also if you move the mouse once it starts loading).
(EDIT2: From my testing, IE7 moves the image automatically, while Firefox displays it faster).
2) I will be replacing the full-sized images with smaller images soon. This should cut back on load times.

Also, with the backend code I have introduced a new BBC tag. It is !called [card]. Use it to surround any words you want to have them link and popup an image of a LotR card. You need to know the five character ID for the card, usually the set and card numbers. In the DB it's the xxxxx from LOTRxxxxx.html. Example:

Code: [Select]
You think it's bad in California? There are [card=01343]worse places to live![/card]

Displays as:
You think it's bad in California? There are worse places to live!

I may be able to add a button for it later if people want it. Enjoy!  :mrgreen:
Title: Re: Autolink Revamp!
Post by: MR. Lurtzy on June 06, 2008, 10:35:22 PM
Thanks, that's awesome! Have some :gp:
Title: Re: Autolink Revamp!
Post by: Elessar's Socks on June 06, 2008, 11:37:01 PM
You think it's bad in California? There are worse places to live!
The lighting is dramatic, but it might get noisy living so close to frat row...


(Another well-deserved gold piece. ;))
Title: Re: Autolink Revamp!
Post by: SomeRandomDude on June 07, 2008, 06:45:00 AM
Hm...California or Balin's Tomb? Tough choice... ???

:gp:

Matter of fact, use your admin power to give yourself 5 more gold so I don't have to keep clicking it. ;)
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 07:42:55 AM
Thanks NB! I'll take :gp: when I can get it, but I won't cheat. ;)

Morning updates and fixes:

Enjoy!
Title: Re: Autolink Revamp!
Post by: AgentDrake on June 07, 2008, 07:43:54 AM
Sweet!

Kralik, we love you! Where in sam-hill did this guy come from, anyway? He just randomly shows up at CC one day, and practically becomes the god of LotR TCG! :P
another well-earned :gp: yet again.

I'll get back to searching the DB, but I'm going to need reminded where to look. I sorta lost track after CC blew to pieces....
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 07:47:31 AM
Where to look? Click on any card link! :)

Here's the way I look at TLHH:

Kralik is the tech administrator -- fixes bugs, edits source code, adds features, etc.
Dain is the social administrator -- manages forums, adds smileys, chooses mods, etc.
Title: Re: Autolink Revamp!
Post by: AgentDrake on June 07, 2008, 07:52:39 AM
Not quite what I meant.... lol
I forgot what had and hadn't been proofread already, back during the last days of CC.
Title: Re: Autolink Revamp!
Post by: SomeRandomDude on June 07, 2008, 07:53:58 AM
That seems great.

Oh, BTW, is there any way that we can set it up so that we get the whole image? Like, maybe a forum layout setting where we can look at the entire full-size image as opposed to the miniature version? b/c I have a pretty fast connection and the loading time for these are exactly 0.01 nanoseconds. (j/k, but they're pretty fast).
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 08:05:38 AM
It would be nice to keep the bandwidth low, but it's doable.
Title: Re: Autolink Revamp!
Post by: DáinIronfoot on June 07, 2008, 08:06:49 AM
Quote from: AgentDrake
Kralik, we love you! Where in sam-hill did this guy come from, anyway? He just randomly shows up at CC one day, and practically becomes the god of LotR TCG! :P

I know! He's like the Gandalf of CC history. Kralik, The Grey Pilgrim. That really should be your subtitle, my friend. ;)
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 12:43:47 PM
Just for you, NB! Medium-sized will be default, but...

Profile-->Look and Layout Preferences-->Use full-size card images with [card] tag. EDIT: See below.

On a related note, if AutoLink really bugs anyone and they'd rather not see it, I could probably put in an option to either enable/disable it. But only if it's worth the time. ;)
Title: Re: Autolink Revamp!
Post by: Shieldmaiden on June 07, 2008, 01:20:21 PM
I'm really silly :clown: because I just noticed that the autolink works when you hover over the card title.  This feature is simply awesome.  Thanks so much for doing that Kralik, have a  :gp: for more of your hard work.  You're amazing!
Title: Re: Autolink Revamp!
Post by: CarpeGuitarrem on June 07, 2008, 07:07:00 PM
So cool...so cool...so cool.... :gp:
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 08:30:11 PM
Hopefully some of you who may have noticed that it stopped working are checking back now... and others who don't know what I'm talking about will find out soon!

I decided that I want this feature disabled for guests. Therefore, the default setting is OFF. You will be able to choose from Small, Medium, and Large (Full-Sized) in your Profile options. Medium is not there yet, but I will be adding it very soon. In the meantime, go to your Profile-->Look and Layout Preferences. At the bottom of the screen you will see "Image preview for [card] tags:" Select your preferred option. :)
Title: Re: Autolink Revamp!
Post by: Kralik on June 07, 2008, 10:17:49 PM
...And there you have it! Choose from OFF, Small, Medium, or Large. Medium is my choice.
Title: Re: Autolink Revamp!
Post by: TheJord on June 08, 2008, 04:37:15 PM
Randomly Deathly Roar isnt linking