These import and display in PK's db fine, but not sure off hand whether it supports other configurations.Bryce Dallas Howard (as Ivy Walker), Joaquin Phoenix (as Lucius Hunt)
Cheers.......Thermal
Thermal's Movie & TV Series db
These import and display in PK's db fine, but not sure off hand whether it supports other configurations.Bryce Dallas Howard (as Ivy Walker), Joaquin Phoenix (as Lucius Hunt)
very easy you should add the code target='_blank'recep34 wrote:İwant to learn something,when you click on the imdb ratings ,i mean stars.The imdb page opens in the same window.İs it possible to make these pages open in a external window?And how can i do this.
http://recepyavuz.re.funpic.org/index.php
Code: Select all
<div class='imdb'><a class='rating_$MOVIE[RATING]' href='$MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>
Code: Select all
<div class='imdb'><a class='rating_$MOVIE[RATING]' href='$MOVIE[URL]' target='_blank'><span>$MOVIE[RATING]</span></a></div>
I've give an example of doing an RSS feed on page 8 (i think) have look here --> viewtopic.php?p=22851#22851Murnau_Vs_Buñuel wrote:is possible how feature request a rss and sitemap that work with this template MySql?
thanks great kazgor, i know your rss example thanks to http://www.feed43.com/kazgor wrote:I've give an example of doing an RSS feed on page 8 (i think) have look here --> viewtopic.php?p=22851#22851Murnau_Vs_Buñuel wrote:is possible how feature request a rss and sitemap that work with this template MySql?
sorry not been able to answer other questions in here.. been very busy lately
Can you tell us how yuou did it?kazgor wrote: I've finally figured out how to add top 5 random films onto the main details page :-) seems to work much better that my attempt in Version 2,
ps
--
Kazgors V3 catalogue
Well you know im not that mean so just got to tidy a few bits in the code and i'll upload the full copy. as i've made changes to MD3.php, mdb_movie.inc & created my own template from the default.J.P. wrote:Can you tell us how yuou did it?kazgor wrote: I've finally figured out how to add top 5 random films onto the main details page :-) seems to work much better that my attempt in Version 2,
ps
--
Kazgors V3 catalogue
Code: Select all
/** -------------------------------------------------------------------------------------------
* Returns an array of 5 random films from the whole catalogue.
* @access private
* ------------------------------------------------------------------------------------------*/
function _random_films() {
$tpls = array();
$ii=0;
$movieinfo="";
$max_films = $this->num_movies(false);
while ($ii < 5 ) {
srand((double)microtime()*1000000);
$rndfilm = rand(1,$max_films);
$query = "SELECT ORIGINALTITLE, PICTURENAME FROM ".$this->mysql_table;
$query .= " WHERE NUM=".$rndfilm;
$res = $this->db->query($query);
$movieinfo = $res->fetch_assoc();
$HREF = $this->HTTPPATH;
if (strpos($HREF, "?") > 0) {
$HREF .= "&num=".$rndfilm;
} else {
$HREF .= "?num=".$rndfilm;
}
$tpl = new Template($this);
$tpl->add_var("\$RNDFILM[HREF]", $HREF);
$tpl->add_var("\$RNDFILM[PICTURENAME]", $movieinfo['PICTURENAME']);
$tpl->add_var("\$RNDFILM[ORIGINALTITLE]", $movieinfo['ORIGINALTITLE']);
array_push($tpls, $tpl);
$ii++;
}
return $tpls;
}
Code: Select all
# Add the Movies Subtemplate
$tpl->add_subtpl("MOVIES", $this->_movie_templates());
$tpl->add_subtpl("PANELS", $this->_panel_templates());
$tpl->add_subtpl("VIEWS", $this->_view_templates());
$tpl->add_subtpl("BREADCRUMBS", $this->_breadcrumb_templates());
$tpl->add_subtpl("SORTS", $this->_sort_templates());
$tpl->add_subtpl("NPPS", $this->_npp_templates());
# Add all the Language Variables
foreach($this->lang as $word => $translation) {
$tpl->add_var("\$LANG[$word]", $translation);
}
return $tpl;
}
Code: Select all
# Add the Movies Subtemplate
$tpl->add_subtpl("MOVIES", $this->_movie_templates());
$tpl->add_subtpl("PANELS", $this->_panel_templates());
$tpl->add_subtpl("VIEWS", $this->_view_templates());
$tpl->add_subtpl("BREADCRUMBS", $this->_breadcrumb_templates());
$tpl->add_subtpl("SORTS", $this->_sort_templates());
$tpl->add_subtpl("NPPS", $this->_npp_templates());
$tpl->add_subtpl("RNDFILMS", $this->_random_films());
# Add all the Language Variables
foreach($this->lang as $word => $translation) {
$tpl->add_var("\$LANG[$word]", $translation);
}
return $tpl;
}
Code: Select all
# --- RAMDOM MOVIES COVERS --------------------
<div class="movies IMGVIEW curvy2 num_$SHOWING_TOTAL">
<div class="bl"><div class="br"><div class="tl"><div class="tr">
<div class="header">Random films</div>
<div class="TABLErnd">
{RNDFILMS}
<div class="covers">
<a class='cover' href='$RNDFILM[HREF]'>
<img src='$TEMPLATEDIR/images/resize.php?img=$UNIXDIR$COVERSDIR$RNDFILM[PICTURENAME]&w=75' alt='$RNDFILM[ORIGINALTITLE]' title='$RNDFILM[ORIGINALTITLE]' />
</a> </div>
{/RNDFILMS}</div>
<div class='footer'></div>
</div></div></div></div>
<div class="iefix"> </div>
</div>
Code: Select all
#mdb .IMGVIEW .TABLE { width:100%;}
#mdb .IMGVIEW .TABLErnd { margin: 0; width:100%; padding:0px; background-color: #B8AD91;}
#mdb .IMGVIEW .header { color: #ddd; font-weight: bold; text-align: center;}
#mdb .IMGVIEW .covers { float: left; }
ok this is the official last release.bbdoc wrote:OK, thanks... I'll check this evening...kazgor wrote:I can upload a copy but only later when i get home from work.