| Re: xmovietimes multiple theaters |
| by pablo on 2006/8/15 18:42:21 the hack won't work for me either. probably because of the latest update after yahoo changed their system slightly. -- it's the "&sim#T1");" part that is causing the hack to longer work, is my guess. how to fix it i dunno. |
| Re: xmovietimes multiple theaters |
| by Twiztid on 2006/8/1 8:26:18 Has anyone been successful with this? When I made the changes to "common.php", I get a blank screen when I try to access the module. I am able to create the tables etc.. but can't seem to get this to work. If you have it working, could you PLEASE post or e-mail your: configure.php mymovies.php functions.php to soorez @ hotmail.com or post them here. THANK YOU VERY MUCH! |
| Re: xmovietimes multiple theaters |
| by yomamaii on 2004/11/29 4:09:09 Okay guys don't laugh to hard when you see this. Here are the changes to add multiple theaters:functions.php Added this function: function setTableID($tableID) { $this->tableID = $tableID; } common.php For ever theater that shows up in my area I added one of these code blocks: // not changed $a = new YahooMovieTimeRipper("http://movies.yahoo.com/showtimes/showtimes.html?z=23228&sim#T1"); // end not changed // changed // get the date, movie, and theater info $datesT1 = $a->getDateInfo(); $moviesT1 = $a->getMovieInfo(); $theatersT1 = $a->getTheaterInfo(); $a->setTableID("T2"); $datesT2 = $a->getDateInfo(); $moviesT2 = $a->getMovieInfo(); $theatersT2 = $a->getTheaterInfo(); $a->setTableID("T3"); $datesT3 = $a->getDateInfo(); $moviesT3 = $a->getMovieInfo(); $theatersT3 = $a->getTheaterInfo(); ... mymovies.php For ever theater that shows up in my area I added one of these code blocks: Make sure you match the variable names up for each table that represents the theater. So if you want to display the nineth theater you need to make sure that all the variables have T9 on the end. Which should match the code(variables) that you added in the common.php file. <table border="1"> <tr> <td colspan="6"> <a href="<?php echo $theatersT1->infoURL;?>" target="_new"><?php echo $theatersT1->name;?></a> -- <?php echo $theatersT1->address;?> (<a href="<?php echo $theatersT1->mapItURL;?>" target="_new">map it</a>) </td> </tr> </table> <table width="100%" border="1" colspan="6"> <tr> <td>Title</td> <td>MPAA Rating</td> <td>Run Time</td> <td>Showings</td> </tr> <?php for($i=0; $i<sizeof($moviesT1); $i++) { ?> <tr> <?php // prevent putting links on when no url exists if($moviesT1[$i]->URL != '') { ?> <td><a href="<?php echo $moviesT1[$i]->URL;?>" target="_new"><?php echo $moviesT1[$i]->title;?></a></td> <?php } else { ?> <td><?php echo $moviesT1[$i]->title;?></td> <?php } ?> <td><?php echo $moviesT1[$i]->rating;?></td> <td><?php echo $moviesT1[$i]->runTime;?></td> <td><?php echo $moviesT1[$i]->showings;?></td> </tr> <?php } ?> </table> Please if you can optimize this code in anyway I would appreciate it. This is my first time using php so all I can say is it works. Ugliest hack ever, but it works.
|
| Re: xmovietimes multiple theaters |
| by jlm69 on 2004/7/26 4:45:42 It is set for only one theater. I will be looking to see how to do 2 theaters sometime over the week, if I get it I will post in this thread. |
| Re: xmovietimes multiple theaters |
| by cjs226 on 2004/7/26 3:51:27 Has anyone been able to get this to work? cjs |