Thursday, 19 September 2013

drupal 7 content views

drupal 7 content views

I am building a user customizable game site in Drupal 7. I have done this
before using php/mysql but just learning drupal. I need to set this up so
an authenticated user can upload 2-8 prize images ,set odds for each prize
as an integer value, and select an animation template that will be used. I
have set up content types for game, prize, and animation template. Here is
the basic table structure needed:
game table gameId int auto userId int templateId int numberOfPrizes int
prizes table prizeId gameId int auto prizeImage image prizeOdds int
game Template(Animation) table templateId int auto filename string
How do I set this up so a user can upload images and set correclating odds
to each prize(image). Then on the play game page I will need to load
images based on gameId and roll the dice once to determine the prize
won(should be a winner every time)data based on gameId. There is a lot of
custom HTML5/Javascript in use for the game. I currently have a test game
play page set up that does everything except show the prize images and
know the winning prize: http://qrgames.co/animation-lobsters
All input is appreciated. BW

No comments:

Post a Comment