Jump to content

Chad

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Chad

  1. RT @ibogost: I understand almost nothing about the world. And yet everyone else seems so certain that they grasp so much.

  2. RT @iamdevloper: Hipster (adjective): term used by people in their 40s to describe technology made by people in their 20s.

  3. I am getting a preview of just how quiet and lonely this place will be next fall as Rachael took our surrogate catchildren to the vet.

  4. "Hi, I'm from the internet and your chosen brand of consumer electronics is inferior and you are literally Hitler for preferring it."

  5. wtf, apple.

  6. Nested for loops: the ol' money maker.

  7. Toothpaste For Dinner - 3,500+ comics by Drew - Updates daily at midnight http://t.co/SwY5kvqc

  8. Hello again, ProcessWire forums. I have run into another snag in our small shockwave/flash project that uses ProcessWire for its login and game progress tracking system. The developer of one of the games (no longer with us) has all of the resources linked dynamically within his project using an xml file to catalog where the files are (external flash movies, etc). When I try to put this into processwire, requests to these resources fail with a 404. (it sees the xml file, but fails when it tries to load the next .swf file) Is there a way to point a particular url to a specific file tree outside of processwire's hierarchy? Example of what I'd like to happen: /main.domain.com/the_games: loads a regular processwire template with the log-in information, etc. /main.domain.com/the_games/game1 redirects to a specific area in the server's file heirarchy outside of /site/ (ex. instead of $config->urls->templates->whtever.php, go directly to /games/game1/index.html on the file server ) with full access to the media and flash files using relative urls. I'm guessing that what I will need to do is remap this subdirectory in the .htaccess file, but I'm not sure how exactly to go about doing that or how to do this in a way that does not break ProcessWire. Any advice? If there is another solution that allows pages to see media in relative urls, that would be helpful too.
  9. IT ALL BEGAN WITH A STRANGE EMAIL | Valve http://t.co/ELJ7oDnr (via Instapaper)

  10. Thanks interrobang, that will be very useful and I will pass your code snippet along to the actionscript developers. Soma's example is very useful too and has given me ideas for how I could build an ajax-driven webapp with ProcessWire and jQuery.
  11. Soma, I will try a few of these strategies out tomorrow morning. Seeing your examples gave me a much better idea of how to make user-facing web applications with Processwire. Thanks!
  12. Just to clarify further, I'm a PHP novice and was in need of help with not only knowing which Processwire commands to input to toggle these states, but how to create the form in such a way that it will actually *trigger* those commands.
  13. Hello, Processwire forums. I am trying to build a login and progress-tracking system for a series of 3 shockwave/flash training games that will be embedded in a page. There are 3 games, and we just need to know which ones the user has completed. What would be the best way to store this information in processwire and how would we modify it? We were thinking that we could use http post from within the games at certain points to mark progress at certain points in the game, but as a first milestone, I'm trying to get this working with basic html forms first but am running into problems. My initial thought was to make a special class of users called "gamePlayers" and to have 3 checkbox fields in the user pages that represent which of the 3 games have been played to completion. I was able to create a template page that reads this game-state information from a checkbox field using "$user->game1completed", but I'm not really sure how to use Processwire's API to modify and overwrite this information. I have used Renobird's login scripts from elsewhere in the forums to successfully login and logout users and to read whether the users have the checkbox toggled. I have tried a few approaches so far that have not yet yeilded good results. I tried making php script (to control the check-box toggling) in the same directory and ran into 403 permission problems. When I created a new template using that form-handling php script, I couldn't get the information to save. When I put a php script into the root of the site, I can run the php script on the post request, but I can't access or modify Processwire data. Could someone please give me some advice for how to proceed? More specifically, am I going about this in a crazy way? Is there a way I could do this all in one page? Thanks!
×
×
  • Create New...