BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Information
 Onex truncated

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
crazy Posted - 16 Apr 2010 : 15:09:53
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
9   L A T E S T    R E P L I E S    (Newest First)
crazy Posted - 05 May 2010 : 09:39:54
Closed created a new thread
crazy Posted - 03 May 2010 : 14:30:46
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
crazy Posted - 03 May 2010 : 04:23:15
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..
crazy Posted - 20 Apr 2010 : 04:03:13
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
crazy Posted - 20 Apr 2010 : 00:58:51
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......
crazy Posted - 19 Apr 2010 : 13:05:10
Thankyou I will let you know.
ternot Posted - 19 Apr 2010 : 12:45:08
yes, exactly... but I'm not sure if "B" or "b"
crazy Posted - 19 Apr 2010 : 09:11:30
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
ternot Posted - 19 Apr 2010 : 08:21:14
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

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.09 sec. Powered By: Snitz Forums 2000 Version 3.4.07