BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Information
 Onex truncated
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

crazy
Starting Member

Australia
36 Posts

Posted - 16 Apr 2010 :  15:09:53  Show Profile  Visit crazy's Homepage  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Ternot, or any one else that may have an idea.
As you know I had major problems getting this up and running but have now ben able to get it all working. However it now seems that my server has a limitation of 2000 files per server.
Well covers has 3700 and actors has over 7000.
I am thnking splitting the directories is the obvious go, but how would I amend the code to reflect this .php and code is definately not my forte.
This is the area I thnk that would need changing for Actors:
// if an actor picture can be found, display it...
if (is_file ("photos/" . cleanstring($roles["ActorName"]) . ".png")) {
$roles["ActorPicture"] = cleanstring($roles["ActorName"]) . ".png";
} else { // otherwise show a placeholder
$roles["ActorPicture"] = "noactor.png";
}
$roles["ActorLink"] = "?criteria1=actor&value1=" . $roles["ActorName"];
if ($ShowOnlyActorsWithPicture == 1 && $roles["ActorPicture"] == "noactor.png") {
} else {
$i++;
$actorsinrow++;
include($_SESSION["templatefolder"] . "/" . $template . ".tpl");
}
if ($i >= $ActorLimit && $ActorLimit != 0) {
break;
}
if (($actorsinrow == $ActorsPerLine)) {
echo $Seperator;
$actorsinrow = 0;
Not sure yet about movie covers

Edited by - crazy on 17 Apr 2010 08:53:04

ternot
Junior Member

126 Posts

Posted - 19 Apr 2010 :  08:21:14  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Crazy,

I haven't tested it, bt maybe you could try this:


// if an actor picture can be found, display it...
$cleanedActorName = ""
$cleanedActorName = cleanstring($roles["ActorName"]);
if (is_file ("photos/" . $cleanedActorName . ".png")) {
$roles["ActorPicture"] = $cleanedActorName . ".png";
elseif (is_file ("photos/" . substring($cleanedActorName,0,1) . "/" . $cleanedActorName . ".png")) {
$roles["ActorPicture"] = substring($cleanedActorName,0,1) . "/" . $cleanedActorName . ".png";
} else { // otherwise show a placeholder
$roles["ActorPicture"] = "noactor.png";
}
$roles["ActorLink"] = "?criteria1=actor&value1=" . $roles["ActorName"];
if ($ShowOnlyActorsWithPicture == 1 && $roles["ActorPicture"] == "noactor.png") {
} else {
$i++;
$actorsinrow++;
include($_SESSION["templatefolder"] . "/" . $template . ".tpl");
}
if ($i >= $ActorLimit && $ActorLimit != 0) {
break;
}
if (($actorsinrow == $ActorsPerLine)) {
echo $Seperator;
$actorsinrow = 0;


This searches also in a subfolder for the actor pictures named like the fist lette of the actor name, e.g. "B" for "Bruce Willis"...

As I do not have the foll code here, I'm not sure about case-sensitivity...

Best regards
ternot
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 19 Apr 2010 :  09:11:30  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Cheers Ternot, will give that a go.
Am i to presume (I know very little code)the following:
if (is_file ("photos/" . $cleanedActorName . ".png")) and elseif (is_file ("photos/" . substring
That is obviously the area we are telling it to look, the sub folders how would you thnk they should be named A B C D etc
Sorry if I missed something
Go to Top of Page

ternot
Junior Member

126 Posts

Posted - 19 Apr 2010 :  12:45:08  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
yes, exactly... but I'm not sure if "B" or "b"

Edited by - ternot on 19 Apr 2010 12:45:22
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 19 Apr 2010 :  13:05:10  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thankyou I will let you know.
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 20 Apr 2010 :  00:58:51  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ternot that adjustment is causing a Parse error: syntax error, unexpected T_VARIABLE Beginnng on the second line here $cleanedActorName = ""
From what i understand it means something isnt closed off correctly. I tried closing the line with ; and the error then moved down......
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 20 Apr 2010 :  04:03:13  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ternot there were one or two errors below works.
// if an actor picture can be found, display it...
$cleanedActorName = "";
$cleanedActorName = cleanstring($roles["ActorName"]);
if (is_file ("photos/" . $cleanedActorName . ".png")) {
$roles["ActorPicture"] = $cleanedActorName . ".png";
}elseif (is_file ("photos/" . substr($cleanedActorName,0,1) . "/" . $cleanedActorName . ".png")) {
$roles["ActorPicture"] = substr($cleanedActorName,0,1) . "/" . $cleanedActorName . ".png";
} else { // otherwise show a placeholder
$roles["ActorPicture"] = "noactor.png";
}
$roles["ActorLink"] = "?criteria1=actor&value1=" . $roles["ActorName"];
if ($ShowOnlyActorsWithPicture == 1 && $roles["ActorPicture"] == "noactor.png") {
} else {
$i++;
$actorsinrow++;
include($_SESSION["templatefolder"] . "/" . $template . ".tpl");
}
if ($i >= $ActorLimit && $ActorLimit != 0) {
break;
}
if (($actorsinrow == $ActorsPerLine)) {
echo $Seperator;
$actorsinrow = 0;
Now for some reason not all actors pictures show as it alwasy defaults to noactor.png I amn thinking it is with my database. I will keep playing around

Edited by - crazy on 20 Apr 2010 10:19:27
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 03 May 2010 :  04:23:15  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
TERNOT...Well I have been able to get things up and running however the Trucated error is still causing issues. I have the actors photos working but the covers are also truncated. Many providers limit the file to 2000 entries.
Maybe there shoud be a rewrite to accomodate this as few providers will remove that limitation. Any help on the covers problem. I so wish to have your app running..
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 03 May 2010 :  14:30:46  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Disregard previous topics. The 2000 truncated limti is only whilst viewing via ftp. All files are in the orginal places.
Ternot..once the image tool has changed the pictures, that is the Actor pictures how should the be..An example 1..Bruce Willis.png 2..bruce willis.png 3..1001-bruce-willis.png or 4..bruce-willis_1001.png.
I ask this because no matter what I do actor pictures do not show. When you hover over one you get the following: http://....index.php?criteria1=actor&value1=Bruce Willis
If you right click on the placeholder and go properties you get: http://www.crazyc.net/movies/photos/noactor.png.
Rather bemused..............ANY further help my friend
Go to Top of Page

crazy
Starting Member

Australia
36 Posts

Posted - 05 May 2010 :  09:39:54  Show Profile  Visit crazy's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Closed created a new thread
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.13 sec. Powered By: Snitz Forums 2000 Version 3.4.07