Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
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(); ... [b]mymovies.php[/b] [i]For ever theater that shows up in my area I added one of these code blocks:[/i] 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. " target="_new">name;?> -- address;?> (" target="_new">map it) Title MPAA Rating Run Time Showings " target="_new">title;?> title;?> rating;?> runTime;?> showings;?> 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. :-)[/quote]" />

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

Who's Online

201 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits