Creating an Video game inventory script

Discussion in 'Programming' started by macstux, Jun 9, 2014.

  1. #1
    I have a video game website for psvita and i am trying to have a psvita game page inventory
    A-Z so that when people want to look through the games they can click on the letter and find the game and click it... how would i go about programming something like that?
    Or if anyone knows where i can find a script already made. (besides overpriced game inventory software) id rather program it myself... so how would i go about starting this little project.
     
    macstux, Jun 9, 2014 IP
  2. macstux

    macstux Well-Known Member

    Messages:
    340
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    155
    #2
    http://www.metacritic.com/browse/games/title/vita is an example of what im looking for
     
    macstux, Jun 10, 2014 IP
  3. Alterview

    Alterview Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #3
    If you are using WordPress, you could take a look at custom post types. It's very easy to make custom stuff with it.
     
    Alterview, Jun 10, 2014 IP
  4. macstux

    macstux Well-Known Member

    Messages:
    340
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    155
    #4
    I am using wordpress but I'm a little confused on getting start creating the inventory, after i create the post how do i add it to the page?
     
    macstux, Jun 11, 2014 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    You need a custom template, and a separate page using that template - within the template, you pick posts matching the set criteria, and display only those - adding to that, you can sort the games on other criteria, as you stated, for instance starting letter in the name. It's not difficult, but it demands at least some familiarity with Wordpress' internal functions, and PHP in general.
    What you can do, for instance, is create a category, say "game_name" and then tag each game you enter with a separate tag for each letter: "game_a", "game_b" etc. and then sort based on that.
    http://wordpress.org/support/topic/sort-archives-alphabetically-grouped-by-starting-letter
    http://wordpress.stackexchange.com/questions/28653/displaying-a-custom-post-type-alphabetically
    a couple examples
     
    PoPSiCLe, Jun 11, 2014 IP