Login Register






Script Requests filter_list
Author
Message
Script Requests #1
I am building a collection of scripts and classes in HTML5, PHP, and jQuery to have them readily available for my freelance development jobs. I don't really have any priorities for any script.

Please give me some feedback as to what you would like to see and I will write it up, comment it, and explain how it works.

Reply

RE: Script Requests #2
(06-30-2011, 12:30 AM)Floydfrass Wrote: I would like a script that would create a photo Gallery

I can't sleep... as usual. So I will get started working on it right now.

Update [20110630]:
I'm going to break it down into the abstract object classes. Then I will extend each class twice once for file support and once for PDO support.

From there I will make a simple templating interface in case you don't currently have one implemented. That will include the AJAX calls and jQuery stuff.

Update [20110630]:
ImageObject.class.php:
Spoiler:
PHP Code:
<?php /** * @package ImageGallery * @author slbmeh <slbmeh@odesk.com> * @license http://www.opensource.org/licenses/BSD-3-Clause BSD-3-Clause License */ /** * @abstract */ abstract class ImageObject { /** * @var string holds the file contents. */ protected $_imageData; /** * @var string holds the filename. */ protected $_fileName; /** * Getters and setters. */ /** * Getter for $_imageData * @return string contains a string of the file contents */ protected function getImage() { return $this->_imageData; } /** * Getter for $_fileName * @return string contains a string of the file name */ protected function getFileName() { return $this->_fileName; } /** * Setter for $_imageData * @param string $data a string containing file contents */ protected function setImage($data) { // Type hint to ensure we are being sent a string. $data = (string) $data; $this->_imageData = $data; } /** * Setter for $_fileName * @param string $filename a string containing the filename. */ protected function setFileName($filename) { // Type hint to ensure we are being sent a string. $filename = (string) $filename; $this->_fileName = $filename; } } ?>



Update [20110806]:
I had a few things I needed to take care of and will resume development as free time comes around.

Reply

RE: Script Requests #3
Thanks for this service. Smile
I just need help with resizing online image files. I want to make something like recent images list in my image-upload site.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Script Requests #4
(06-30-2011, 07:44 AM)Coder-san Wrote: Thanks for this service. Smile
I just need help with resizing online image files. I want to make something like recent images list in my image-upload site.

Like thumbnails? What do you have in mind? Is there a specific use case, or would it be fine to rip the thumbnail functionality from the class I'm writing right now?

Reply

RE: Script Requests #5
Yes thumbnails, something like [link=http://imgur.com/]imgur[/link]
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Script Requests #6
Alright, I plan on my gallery class doing that but using ajax to pull it up in a thickbox once the thumbnail is clicked. Although my intention is to put in basic functionality of things to make it complete such as templating and db it is going to be written so that it can easily be replaced for complete site integration.

Reply

RE: Script Requests #7
EDIT: nevermind. I made it.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Script Requests #8
Here that is using Image Magick instead of gd:
PHP Code:
<?php /** * Resize an image with Image Magick. The TRUE param in the image * manipulation call is a flag for `best fit` which maintains aspect * ratio for the new image by default. * @param string $iImg contains the location to the image file. * @param int $dW contains the desired destination width. * @param int $dH contains the desired destination height. * @return Imagick returns an Imagick object which is basically the modified raw image. */ function resize($simg, $dw, $dh) { $img = new Imagick($simg); $img->thumbnailImage($dw, $dh, TRUE); return $img; } ?>

Reply

RE: Script Requests #9
Can you make a comment/feedback script ?

Reply

RE: Script Requests #10
(06-13-2016, 03:08 PM)cold Wrote:
(06-13-2016, 01:15 PM)toolx.sx Wrote: Can you make a comment/feedback script ?

Thread is from 2011, chances are OP is gone. Gravedigging is against the rules.
absord ...lol

Reply