LotR TCG Wiki → Card Sets:  All 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 → Forums:  TLHH CC

Author Topic: Autolink Revamp!  (Read 5705 times)

0 Members and 1 Guest are viewing this topic.

June 06, 2008, 10:29:01 PM
Read 5705 times

Kralik

  • Guest
Autolink Revamp!
« 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:
« Last Edit: June 07, 2008, 11:02:56 PM by Kralik »

June 06, 2008, 10:35:22 PM
Reply #1

MR. Lurtzy

  • *****
  • Information Offline
  • King
  • Posts: 2745
  • Wouldn't it be nice if we were Hodor?
    • My website
Re: Autolink Revamp!
« Reply #1 on: June 06, 2008, 10:35:22 PM »
Thanks, that's awesome! Have some :gp:

June 06, 2008, 11:37:01 PM
Reply #2

Elessar's Socks

  • *****
  • Information Offline
  • Knight
  • Posts: 1353
  • "I see...I look foul and feel foul. Is that it?"
Re: Autolink Revamp!
« Reply #2 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. ;))

June 07, 2008, 06:45:00 AM
Reply #3

SomeRandomDude

  • ********
  • Information Offline
  • Maia
  • Posts: 7004
  • Most Likely To Usurp Kralik and Dáin
    • My Wordpress
Re: Autolink Revamp!
« Reply #3 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. ;)
NB- 4 year veteran of CC/TLHH

"It was like:
Kralik: "What hath God wrought"
NB: "I dunno, but I'm in ur house eating ur food.""
-Elessar's Socks

Trade List- ft. Aragorn, Defender of Rohan

June 07, 2008, 07:42:55 AM
Reply #4

Kralik

  • Guest
Re: Autolink Revamp!
« Reply #4 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:
  • Finished uploading smaller pics which are now used for the image popup. They are fairly small on large resolutions, but I think they are big enough that you can read the text. Lore might be a little hard to make out, but you can always click to see the full size. Incidentally, are people going to find errors in the DB anymore? :-\
  • I had inadvertently broken links to the actual html pages in the DB. Fixed.
  • Added Autolink to PM's and post previews.

Enjoy!

June 07, 2008, 07:43:54 AM
Reply #5

AgentDrake

  • *****
  • Information Offline
  • Ranger
  • Posts: 959
  • Why me? No, seriously. WHY ME?!?
Re: Autolink Revamp!
« Reply #5 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....
Forget it. I'm not arguing with the computer anymore to try to get the sig I want....

June 07, 2008, 07:47:31 AM
Reply #6

Kralik

  • Guest
Re: Autolink Revamp!
« Reply #6 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.
« Last Edit: June 07, 2008, 01:21:44 PM by Kralik »

June 07, 2008, 07:52:39 AM
Reply #7

AgentDrake

  • *****
  • Information Offline
  • Ranger
  • Posts: 959
  • Why me? No, seriously. WHY ME?!?
Re: Autolink Revamp!
« Reply #7 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.
Forget it. I'm not arguing with the computer anymore to try to get the sig I want....

June 07, 2008, 07:53:58 AM
Reply #8

SomeRandomDude

  • ********
  • Information Offline
  • Maia
  • Posts: 7004
  • Most Likely To Usurp Kralik and Dáin
    • My Wordpress
Re: Autolink Revamp!
« Reply #8 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).
NB- 4 year veteran of CC/TLHH

"It was like:
Kralik: "What hath God wrought"
NB: "I dunno, but I'm in ur house eating ur food.""
-Elessar's Socks

Trade List- ft. Aragorn, Defender of Rohan

June 07, 2008, 08:05:38 AM
Reply #9

Kralik

  • Guest
Re: Autolink Revamp!
« Reply #9 on: June 07, 2008, 08:05:38 AM »
It would be nice to keep the bandwidth low, but it's doable.

June 07, 2008, 08:06:49 AM
Reply #10

DáinIronfoot

  • Bearded Axeman
  • ********
  • Information Offline
  • Maia
  • Posts: 6162
  • Never tickle a Dwarf!
Re: Autolink Revamp!
« Reply #10 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. ;)
Best regards,
Dáin


Check out Lasting Alliances and The Road Ahead, my two completed DC sets, and also The Way Into Mordor (in progress), all part of my 5-set Wars of the Ring DC "block".

June 07, 2008, 12:43:47 PM
Reply #11

Kralik

  • Guest
Re: Autolink Revamp!
« Reply #11 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. ;)
« Last Edit: June 07, 2008, 08:26:22 PM by Kralik »

June 07, 2008, 01:20:21 PM
Reply #12

Shieldmaiden

  • ****
  • Information Offline
  • Bowman
  • Posts: 474
Re: Autolink Revamp!
« Reply #12 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!

June 07, 2008, 07:07:00 PM
Reply #13

CarpeGuitarrem

  • ******
  • Information Offline
  • Lord
  • Posts: 3467
Re: Autolink Revamp!
« Reply #13 on: June 07, 2008, 07:07:00 PM »
So cool...so cool...so cool.... :gp:

June 07, 2008, 08:30:11 PM
Reply #14

Kralik

  • Guest
Re: Autolink Revamp!
« Reply #14 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. :)