13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Which DVD Script?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Humpa DVD Script
View previous topic :: View next topic  
Author Message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Tue Dec 19, 2006 7:39 pm    Post subject: Which DVD Script? Reply with quote

Hey Humpa,

I figured I'd given you enough hassle this year with your marvellous MMS scripts so I should move on Razz

I'd like to put together a list of all the DVD's I own and am just wondering which of your scripts you suggest? Would the Showcasing script or the DVD for Nuke be best?

Cheers!
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 1:20 pm    Post subject: Reply with quote

I am not sure if they work ... amazon has changed some stuff

I'd use the standalone version though ... i'd like to get that working, since I have other people that want to use that as well
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Dec 20, 2006 6:54 pm    Post subject: Reply with quote

Hiya,

okey doke...I'll do just that. I'll post up if I hit any problems!
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Dec 20, 2006 8:03 pm    Post subject: Reply with quote

Didn't take me long did it?!

Ok, all installed, database setup etc. I do as the readme says - go to www.mysite.com/dvd/admin.php and the url changes to: http://www.mysite.com/dvd/adminlogin.php?initial=yes so I enter a new admin name and password, then the url flicks to: http://www.mysite.com/dvd/adminlogin.php but then when I try and use that username and password, it just keeps going back to the same page. I checked the database and no details are being filled out. I tried manually putting the details into the database, tried logging in again but still nothing. So I tried using this site: http://www.zappersoftware.com/Help/md5.php and copied/pasted my password in md5 hash as I'm sure when I was looking through the files, that's how they get created? Again, still nothing.

I know this is something you haven't looked at for a while, so no worries...If and when you should ever get the chance Cool

Cheers!
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Dec 20, 2006 8:24 pm    Post subject: Reply with quote

Ok,

after posting the above, I dug around just a little more and found that some of the code contained:
Code:

method=\"post\">\n"


I remembered I'd had a previous problem with POST and you helped me out in this thread. I added a .htaccess file with
Code:

php_flag register_globals on


refreshed my page and all works GREAT Very Happy
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 8:45 pm    Post subject: Reply with quote

hmmm ... I just downloaded it and installed and it works!

I put my associates id and dev_token and db info in the humpadvdconfig.php

It added my admin name/pass to the database and i logged in.

And I added a dvd:
www.humpa.com/humpa_dvd_test
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 8:50 pm    Post subject: Reply with quote

ahhh .... I see I'm late.

I keep forgetting about that register globals thing doh

I guess it works.

I edited my own personal copy that I've been using, but I thought I did that because it didn't work anymore because of something amazon changed.

But the only thing that doesn't work anymore is the cast list.
I've edited mine to get the cast list based on the differences in amazon - and I've also added a description field

And just so you know, the Producer field you see in admin is actually the director. I labled it wrong in the admin only, but never fixed it.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 8:51 pm    Post subject: Reply with quote

And on my own copy I also save the images locally - in the copy for download, it actually uses the image from amazon.com

If amazon ever changes the way they call or name the images, it would really suck ... lol ... so I changed that
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 9:01 pm    Post subject: Reply with quote

Here is the code for getting the cast list.
Replace the function get_cast_list1 with this (don't worry about get_cast_list, that is not used - only the get_cast_list1 is used ... don't ask me why, that's just how it is ... lol):
Code:
function get_cast_info1($asin, $dvdid) {
   global $humpadvd_module_name;
    include("humpadvdconfig.php");
   //$url_folder = "http://www.amazon.com/exec/obidos/tg/stores/detail/-/dvd/$asin/contents/ref=pm_dp_ln_d_7/104-0121880-1767960";
   $url_folder = "http://www.amazon.com/gp/product/cast-crew/$asin/ref=imdbdppd_castcrew_1/104-5434085-2702347?ie=UTF8";
      
   $buffer = file($url_folder);
   $num = count($buffer);
   $i=0;
   $everything = "";
   while($i <= $num) {
      $everything = "$everything$buffer[$i]";
      $i++;
   }
   //$test = eregi_replace("(.*)(Full Cast List)", "", $everything);
   //$test = eregi_replace("(.+)(Full Cast List)", "", $everything);
   //(Cast with Photos<\/b><br \/>)(\s)*(</td>)(\s)*(</tr>)
   //(</table>)(.*)(Full Cast List)
   //http://www.amazon.com/gp/product/cast-crew/$asin/ref=imdbdppd_castcrew_1/
   $thecast_with_photos = preg_replace('/(.*)(Cast with Photos<\/b><br \/>)(\s)*(<\/td>)(\s)*(<\/tr>)(.*)(<\/table>)(.*)(Full Cast List)(.*)/ims','<table>$7$8',$everything);
   $thecast = preg_replace('/(.*)(Full Cast List)(<\/b><br \/>)(\s)*(<\/td>)(\s)*(<\/tr>)(.*)(<\/td>)(\s)*(<td bgcolor="#666666">)(.*)/ims','<table>$8', $everything);
//   echo "\ntest is <br>$test\n";

   if($thecast == $everything) {
       echo "<br>No Cast INFO!<br>dvdid is $dvdid and asin is $asin<br>";
       echo "<br><a href=\"$url_folder\" target=\"_new\">Cast List</a><br>";
       //echo "and everything is $everything<br><hr>\n";
       $thecast = "";
       return $thecast;
    }else {
       if($thecast_with_photos != $everything) {
          $thecast_with_photos = eregi_replace("href=\"\./", "href=\"http://www.amazon.com/gp/product/cast-crew/$asin/ref=imdbdppd_castcrew_1/", $thecast_with_photos);
          $thecast = "$thecast_with_photos$thecast";
       }
       echo "<br><a href=\"$url_folder\" target=\"_new\">Cast List</a><br>";
       $thecast = eregi_replace("href=\"/gp", "href=\"http://www.amazon.com/gp", $thecast);
      $thecast = eregi_replace("<", "&lt;", $thecast);
      $thecast = eregi_replace("'", "\\'", $thecast);
   }
   return $thecast;
}
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Dec 20, 2006 9:58 pm    Post subject: Reply with quote

Why isn't the get_cast_list us...Heh heh Wink

Thanks a lot for taking the time to install it all and test it - I guess you must have *just* missed my post about the register-globals. I keep forgetting about that too and it was only by chance when I was looking through your code that I saw the "post" and it made something click in the back of my mind...

Just one last question for now - when I go to the main page of my dvd's, across the top are links for DVD Main / DVD Collections / Unworthy DVDs which try to open pages /dvd400; /collections and /unworthy - I guess this is something from your own copy and I can safely remove these links?
Gives me something to do over the holidays in between replacing batteries in the kids toys, the dog & cat eating all the food and the wife getting stressed with everything going on Laughing

I do already have some DVD s/w running locally at home. You may/may not have heard of it. It's called DVD Profiler and it's pretty cool...But I wanted something running online that I could play around with and your script is perfect for just that.

All in all another great script from the HOH (House of Humpa!)
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 10:24 pm    Post subject: Reply with quote

HOH Laughing

Yeah, I noticed those bogus links up top. They are leftovers from my original script - just remove them. I originally installed 3 copies, and those were the links to the other 2.

I have never heard of dvd proiler, I have never heard of any other dvd organizer type of script - and I never looked for one either.
I saw the pretty dvd thumbnails at amazon one day, and they just caught my eye. I just had to have one of them pretty little thumbnails for each one of my dvd's. Very Happy
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Wed Dec 20, 2006 10:27 pm    Post subject: Reply with quote

hmmm ... that dvd profiler looks pretty cool.

My buddy at work wanted my dvd script, but I think I'll tell him to check out dvd profiler instead. That's probably much easier.
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Wed Dec 20, 2006 10:34 pm    Post subject: Reply with quote

Heh,

it is pretty neat. I've had it for years now. I used to have a barcode scanner that you could just whip across the barcode of the dvd and it would add to the database from there. Now I enter the UPC number as a friend kept on at me so much that I gave him the scanner!

As you've probably seen, you can run custom reports on it as well - there's one I did here.

Tis worth a download/trial if nothing else.

Doesn't deter me from cracking on with your script tho!
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Thu Dec 21, 2006 1:02 am    Post subject: Reply with quote

Hi,

I changed the get_cast_info1 as you suggested and added another dvd. It works sweeeeeeeet! Very Happy
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Thu Dec 21, 2006 1:13 am    Post subject: Reply with quote

It seems that only about 80% of the dvd's will have the cast list though. Or maybe it is just that 20% of the dvd's I have are pathetic enough that amazon doesn't bother with cast lists for them. Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Humpa DVD Script All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum