Click Here

Forums: User to User Help: Hints & Tips: Linking to other TV.com guides in submissions: how to create hyperlinks

 
  • Avatar of more_ncis_now

    more_ncis_now

    [1]Mar 29, 2009
    • member since: 01/29/06
    • level: 58
    • rank: Dead Parrot
    • posts: 10,652
    As the site is now encouraging the use of hyperlinks in submissions (trivia items, quotes, notes, biographies) to other TV.com guides, this thread is a "how to" for any users who are unsure how to create a link using xHTML.

    There are two types of hyperlink that can be created using xHTML - those which open in the same page when clicked & those which open up a new page/tab when clicked.

    Please note, in both of these examples you must include the full URL - starting with "http://www." otherwise the link will not work.

    Creating a link which opens in the same window:

    I will use NCIS as an example. If I wanted to link to the NCIS summary page like this - NCIS - I would use the following code:

    Code:
    <a href="http://www.tv.com/NCIS/show/16772/summary.html">NCIS</a>


    The code for the link will always be the same. The only things you will need to change within the link are the URL (between the quotes) and the word that you want to link to (in my example, NCIS).

    Creating a link which opens in a new window:

    The code is almost the same, except there is one small addition before the first closing 'pointy bracket': target="blank"

    Code:
    <a href="http://www.tv.com/NCIS/show/16772/summary.html" target="blank">NCIS</a>


    This will give you a url that when clicked will open up in a new tab or page (depending on your browser's settings): NCIS.

    How your blurb will look with this URL code included:

    So, now you know the codes, but how will it look in the submission that you are making? Here is an example of a trivia item, again using NCIS as an example, which shows you how the blurb will look within the submission form:

    Code:
    On the set of <a href="http://www.tv.com/NCIS/show/16772/summary.html" target="blank">NCIS</a>, Mark uses a 1972 Airstream trailer that he restored himself as a "Dressing Room". The trailer has avocado green benchtops.


    On the page, this would look like this:

    "On the set of NCIS, Mark uses a 1972 Airstream trailer that he restored himself as a "Dressing Room". The trailer has avocado green benchtops."

    (Please note that this example uses no other formatting around the link - please refer to any staff posted guidelines for information regarding whether show names should still be italicized when they are hyperlinked - thanks)
    Edited on 03/29/2009 3:03am
    You must be registered and logged in to post a message.
  • Avatar of pikastatic100

    pikastatic100

    [2]Mar 29, 2009
    • member since: 09/12/08
    • level: 48
    • rank: Conehead
    • posts: 7,112
    Thanks for the "how to" on this, more_ncis_now. I was a little confused on the whole linking thing in submissions, but this pretty much cleared it up for me.
    You must be registered and logged in to post a message.
  • Avatar of atc4gvn

    atc4gvn

    [3]Mar 15, 2010
    • member since: 01/29/10
    • level: 20
    • rank: Cow Bell
    • posts: 383

    Awesome explanation! I'm gonna go try it! I was looking in this Forum thread specifically for this info, and here it is, exactly what I needed! AND it worked! I'm SO excited! I can't get most of my technical junk connected to my profile or signature to work, but THIS WORKED! You rock!

    Edited on 03/15/2010 12:50am
    Edited 2 total times.
    You must be registered and logged in to post a message.