1
vicisus_tech
xmovietimes multiple theaters

is there a way to add multiple movie theaters to xmovietimes? if anybody has done it, can you post code for it ?

2
cjs226
Re: xmovietimes multiple theaters
  • 2004/7/26 3:51

  • cjs226

  • Just popping in

  • Posts: 4

  • Since: 2003/10/4


Has anyone been able to get this to work?

cjs

3
jlm69
Re: xmovietimes multiple theaters
  • 2004/7/26 4:45

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


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.

4
yomamaii
Re: xmovietimes multiple theaters
  • 2004/11/29 4:09

  • yomamaii

  • Just popping in

  • Posts: 4

  • Since: 2004/8/15


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.






name;?> -- address;?> (map it)











for($i=0; $i {
?>

// prevent putting links on when no url exists
if($moviesT1[$i]->URL != '')
{
?>

}
else
{
?>

}
?>




}
?>
Title MPAA Rating Run Time Showings
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.

5
Twiztid
Re: xmovietimes multiple theaters
  • 2006/8/1 8:26

  • Twiztid

  • Just popping in

  • Posts: 49

  • Since: 2006/7/21


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!

6
pablo
Re: xmovietimes multiple theaters
  • 2006/8/15 18:42

  • pablo

  • Just popping in

  • Posts: 1

  • Since: 2006/8/15


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.

Login

Who's Online

308 user(s) are online (229 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits