WEB Question about "tags" as oppose to a search box

Discussion in 'OT Technology' started by Ebtek, May 2, 2008.

  1. Ebtek

    Ebtek Afraid of 138

    Joined:
    Mar 19, 2000
    Messages:
    152,914
    Likes Received:
    1,090
    sites like stage6 (RIP :wtc: ) relied mostly on tags as oppose to search functions, although it did exist, it wasnt very accurate.

    the tags were displayed like:


    tag tag tag tag tag
    tag tag tag tag tag
    tag tag tag tag tag




    was this some sort of a random size thing, or was the size of the font relative to the number of results under that tag? how popular the tag was? etc

    if the size is related to the number of results under the tag, would it be difficult to code? (im wondering if i should get my guy to code it)
     
  2. pkr

    pkr Guest

    size relevant to the amount of searches which is the same thing as popularity.
     
  3. TurkeyChicken

    TurkeyChicken New Member

    Joined:
    Jun 26, 2003
    Messages:
    42,913
    Likes Received:
    0
    Location:
    Albuquerque, NM
    i've built a few of those.

    1) Just store all tags or searches in a table in a database
    2) run a query to get the tag name and count sorted by tag ascending
    3) store info in array
    4) get the max and min count for all the tags
    5) create ratio that makes the highest count for a tag X font size (1.5em) and the minimum or 0 count the lowest font size (0.7em)
    6) use ratio to calculate tag size for each other tag depending on its count
     
  4. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,489
    Likes Received:
    70
    Location:
    Sparkopolis
    the bigger the text, the more results there are for that word
     
  5. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    Called a tag cloud.

    its a web 2.0 thing
     
  6. Ebtek

    Ebtek Afraid of 138

    Joined:
    Mar 19, 2000
    Messages:
    152,914
    Likes Received:
    1,090
    :cool: ill refer to it as that and they'll know i know what im talking about
     

Share This Page