To answer my own question above, it seems I get a behavior more the way (I think) it should be if I simplify the _href function in mdb_movie.inc.
This way each link generated is a proper link for that sort option, it doesn't make huge "other" groups. The only slight adverse effect I can spot is the "Other" group isn't highlighted in the side panels either, even if selected sort parameter places in that group (though I'm sure someone who actually knows how to code php could fix that)
/** -------------------------------------------------------------------------------------------
* Checks the dbfield to see if there is a category enabled. A valid HREF is returned.
* @access private
* ------------------------------------------------------------------------------------------*/
function _href($value, $dbfield) {
$href_changes = array();
$href_changes['NUM'] = 0;
# Check we need quotes
if (strpos($value, " ") !== FALSE) {
$value = '"'.$value.'"';
$href_changes['SEARCH'] = $value;
} else {
$href_changes[$dbfield] = $value;
}
$href = $this->mdb->get_link($href_changes);
return $href;
}
$db = new mysql_db("localhost", "pal...", "......");
$moviedb = new Moviedb($db, "pal...", "movies");
Maybe i do something else wrong...
Must i change somthing on index.php
I have only upload the file and change mdb_config.inc.
From your post it looks like you are saying that your username "pal..." is the same as the name of your database "pal...". Is this correct?
If version 2.2 could access the database then version 3.0 should also be able to as long as the detail in mdb_config.inc is entered correctly.
Are you using the same database and table you had for version 2.2 or have you set up a new one (with maybe different database or table name)?
It should just be a case of uploading to your server the zip file contents and editing the mdb_config.inc file. You shouldn't need to make any changes to other files (I didn't have to on local server or www server).
kazgor wrote:what hosting site are u both using.. i could probably knock something up for AWARDSPACE.com.. not sure about screenshots but a general overview.
I'm using 1and1. I had been using dvdprofiler and the phpdvdprofiler. Got that to work, but I just can't get this. When importing the database with dvdprofiler, I remember using a schema.sql. Maybe I'm just not importing correctly. Any help is really appreciated.
p.s. REALLY like your movie site. Any chance of doing one for me? Is there a feature for just a list and then jump to the page with the cover? Smack me if I ask too much.
would it be possible to replace country box on the left side
with a box of letters instead? - how?
how do i change where the boxes are located?
i would like to have it like this instead..
[Category]
[Letter] - (# | A-Z | Å | Ä | Ö)
[Year]
[Language]
thx..
Hi XYNCRO,
I'm not able to help, since Catergory|Letter is not available but am curious as to how you got it wokring using Category|Letter? Could you share this code with us?
Sorry, misread your message. You are asking how. My first read was how to change the sequence only.
I'd previously noticed that there was a "default_cover.jpg" file in the \templates\default\images directory, and had assumed (yeah I know ...) that the template would use this if a cover was not available. Having only just had this situation occur, I have however found this is not the case. Should it work like I was thinking? It's possible that I've broken it fiddling around trying to get my second online db up and running.
Thermal Ions wrote:I'd previously noticed that there was a "default_cover.jpg" file in the \templates\default\images directory, and had assumed (yeah I know ...) that the template would use this if a cover was not available. Having only just had this situation occur, I have however found this is not the case. Should it work like I was thinking? It's possible that I've broken it fiddling around trying to get my second online db up and running.
110mb is ok, except that the 50 simultaneous ftp connections gets very annoying at times.
I've ended up just saving a little sql script to run each time after uploading that updates the picturename field in the database to point to a copy of the default_cover.jpg I placed into the antexport directory
Thermal Ions wrote:110mb is ok, except that the 50 simultaneous ftp connections gets very annoying at times.
I've ended up just saving a little sql script to run each time after uploading that updates the picturename field in the database to point to a copy of the default_cover.jpg I placed into the antexport directory
Thermal Ions wrote:110mb is ok, except that the 50 simultaneous ftp connections gets very annoying at times.
I've ended up just saving a little sql script to run each time after uploading that updates the picturename field in the database to point to a copy of the default_cover.jpg I placed into the antexport directory
Thank you Kazgor for the new detailed template. I have used your upgrades but am having difficulty with the sub heading #1 (re Comments) as in 'IMDB TRIVIA FOR A SCANNER DARKLY (2006)'. I can't get the sub header to show up.
The other sub header #2 (Actors) 'Starring Roles' works ok, except mine are centered so I'm thinking something to do with css i must be missing to left justify and possibly to create sub header #1, Comments.
Can u point me in some direction. So close yet so far!
I went searching but couldn't actually find where the option is actually implemented in the code or template. Anyone else tried this option and finding the same (non-)effect. I guess it might me that it's there for future implementation or that I've misinterpreted what it's intended to do.
function empty_categories($categories) {
foreach ($categories as $value => $count ) {
if (($value != "_ALL") and ($count == 0) ) {
unset($categories[$value]);
}
}
return $categories;
}
that should do the trick, you can switch it on/off via empty_categoties flag... False means hide the zero cats, true=show... well thats how i read the comments to be.
Thanks very much kazgor Appreciate the quick response.
That works beautifully, and gives me a nice clean filtering effect on my TV Series database. I recently changed it to use the Source field to store the Series Name, with the Category field storing the Season Number or 'Movie' for movie spinoff (lifted idea from discussions here). So I now select the Series I'm interested in the top panel box and the second panel box is effectively filtered to show only the seasons available for that series.
This looks a lot cleaner than when I had series and season combined in the one field - the panel box was growing far too long and ugly.
BTW, did you end up looking further afield for free PHP5.x hosting sites (or only as far as 110mb)?
have to agree it does look much better hiding all the zero subcats
as for other free php5 hosts, check out 8888mb.com they more disk space & bandwidth + 3 databases. had problem trying to load MDB3 onto it though but i was having similar probs with 110mb at the time but never got round to looking at it further.. I think they also have a little 8888mb link at the bottom of your page.
Give it a go and if you get it working let me know