Jump to content

PHP Image (caps) Gallery

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
After a year of changes to this code and finally asking John for the final missing piece (a sorting algorithm that works), I got a screen caps gallery running that is completely dynamic.

My original intention was for this to replace the code at Home Kim Possible Screen Caps which is not as dynamic as it could be.

This gallery is currently only used at High School Musical 3 Caps with no plans of being used elsewhere in the near future. I thought I'd share this code to anyone else who can benefit or modify it to make it better. If you use this, I ask that you at least give a link back to codecall or famousphil! Thanks!

You can get the latest code at: http://dev.matthouse.us/caps/caps.zip.

Please note that the attached version is 1.01 and includes version checking, you can check Matthouse Computer Repair and Website Hosting :: Developer's Corner for the latest version number because I will not be updating this archived version.

Attached Files


Edited by morefood2001, 01 March 2009 - 08:55 AM.


#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Can you attach the zip to your post, that way in 5 years when restructure your directories and that URL is no longer valid, people can still download it.

#3
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
You can do it, but I plan on updating it in the future, so that version may become outdated :)

#4
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
Then delete it and re-attach the new version :) Make sure you tell the users ;)

Doesn't work for me. This is from the caps1gallery folder;
Warning: scandir(hsm3t) [function.scandir]: failed to open dir: No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26

Warning: scandir() [function.scandir]: (errno 0): No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 27

Warning: scandir(hsm3) [function.scandir]: failed to open dir: No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26

Warning: scandir() [function.scandir]: (errno 0): No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 27

jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!


#5
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts

Brandon W said:

Then delete it and re-attach the new version :) Make sure you tell the users ;)

Nah :) I will just keep the version updated on the dev site.

Quote

Doesn't work for me. This is from the caps1gallery folder;

Warning: scandir(hsm3t) [function.scandir]: failed to open dir: No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26


Warning: scandir() [function.scandir]: (errno 0): No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26


Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 27


Warning: scandir(hsm3) [function.scandir]: failed to open dir: No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26


Warning: scandir() [function.scandir]: (errno 0): No error in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 26


Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\caps\caps1Gallery\imageStruct.php on line 27


Did you look at the error? In order for this to work, you need 2 sets of caps in 2 folders. In this case, its defined as hsm3 and hsm3t. The full sized caps go into hsm3 and the thumbs go into hsm3t.

The reason why I don't have PHP generate the thumbs is because of the server load that php would then use, so its best to have them similarly named. However I will write some documentation on it. :)

#6
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts

John said:

Can you attach the zip to your post, that way in 5 years when restructure your directories and that URL is no longer valid, people can still download it.

Sorry about the double post. I guess I sort of agree with this since on other forums I get angry quite often from changed structures. However dev.matthouse.us has been around for 2 years now and I don't want to change it since all of my personal code is hidden there :P

Anyways, my anger is what caused me to include version checking and archive a copy here :)

#7
Brandon W

Brandon W

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,828 posts
LOL. OK thanks mate, I will do that tonight. I will steal your pictures :)
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation

Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!