Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25
  1. #1
    Junior Member nmaster64's Avatar
    Join Date
    Aug 2006
    Location
    NCSU
    Posts
    19
    Member #
    13814
    Ok, I need to design a gallery website for an artist, and it needs to be INSANELY simple to use. I'm talking about adding pictures (and preferably auto-watermarking) needs to be like hitting a button or two. And of course it needs to be customizable to the point I can integrate it well...

    I tried to do this site before using Wordpress and Gallery2, but that's just too complicated...she doesn't need a blog anyway. Just a homepage (preferably easily editable without dealing with ftp'ing files or html editing) and a gallery page for her to upload to easily, with full-size pics being watermarked. It's gonna have to create thumbnails automatically too I guess...

    So, I guess what I'm asking is how should approach this? Are there any super easy gallery programs for this situation? Basically, she needs to be able to logon and see A) a text editor for editing the home page and B) a simple upload form for the gallery.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    I would say PHP with a text (flat-file) database ... no MySQL in your case.

    But, you didn't mention how many photos and do you need to have text
    associated with each photo (like title, desc, caption, etc).

    I'm guessing she'll be adding requirements that will not make it "insanely simple".

    And as soon as you get something in place, she'll say, "oh, you can do that?",
    "in that case, can you do this and this and this ...."?

    So, let us know ...
    Is it just photos?
    How are your PHP skills?
    Can you use Perl (cgi) , with Imagemagick?

    I mention Perl/Imagemagick because I like the photo resize/resample
    quality much better than PHP GD. I wouldn't worry about watermarking,
    because the full-size photo can be reduced in size too, making it hard to
    use for any other purpose.


  4. #3
    Junior Member nmaster64's Avatar
    Join Date
    Aug 2006
    Location
    NCSU
    Posts
    19
    Member #
    13814
    Well...I would say captions would be nice, but aren't necessary if they're going to complicate things. And I'm on quite a tight deadline, and I don't mind having to go back later and do some painful code upgrades.

    Hmmm...my PHP skills...argh...I'm busted. I don't know as much as I'd like to, and it pains me to admit it as long as I've been in web design. I do a lot of work in PHP, but I can't say I've coded my own stuff from scratch...

    Imagemagick is installed on my servers...

    Here's a pic of a similar site design to what I'd like to do, at least in regards to the main page. And then the gallery page is a simple collection of thumbnails you click and they get bigger. I guess if watermarks are too hard just keep them from being TOO big. It's as much a portfolio as it is a commissions site.

    Feel free to have a look at the server's php_info...

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    Well, things can get more intense.

    What happens when they want to delete a photo, or worse yet, they want
    to move them around, re-arrange them?

    See, this may not be insanely simple, as re-arranging involves either changing the
    filenames, as they get sorted in the directory by default, or creating a database,
    either flat-file or MySQL to store by sequencial numbers, for sorting and re-ordering.

    This can all be done, but with some scripting skills.

    Here's my recommendation for you.

    Since you're on a tight schedule, sub-contract out the PHP/Perl scripting and work
    on the design and layout. Let your sub-contract programmer handle all of the
    scripting for you.

    The scripting will involve:
    1) PHP Sessions w/login so the site owner can upload/delete/edit/sort photos.
    2) The necessary upload scripts, text edit scripts.
    3) The Imagemagick (or PHP GD library) resize scripting w/watermarking /thumbnails.
    4) The PHP scripting to generate the gallery from either a directory or database.

    I don't have time right now to do it, but I would charge about $300.00
    for the scripting part ... you would do all of the design, CSS and graphics.

    Perhaps there are others out there that can help you out.


  6. #5
    Junior Member nmaster64's Avatar
    Join Date
    Aug 2006
    Location
    NCSU
    Posts
    19
    Member #
    13814
    My credit card bill is telling me no. I'm quite in the hole and I should mention I'm not getting paid to make this site.

    Ok, so I don't have a prayer of coding this in a week. I know there has to be a ton of premade galleries written, there has to be one I can use...

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    Well, tell the artist that it's a no-go.

    He/she should hire someone (and pay them) to have a website.

    I certainly wouldn't do it for free, because it's not "insanely simple".

    If you do websites for people, you should always charge. Your knowledge,
    effort, and time are always worth something.

    Sorry I can't help you more, but I don't do coding for free, for anyone.

    You can find a free gallery script to use, but you'll have to install it and
    customize it ... I'm sure the artist (your client) will not like the way it looks ..
    and it won't solve their problem of updating text on their page(s).


    .


  8. #7
    Junior Member nmaster64's Avatar
    Join Date
    Aug 2006
    Location
    NCSU
    Posts
    19
    Member #
    13814
    ::sigh:: It's a very complicated situation I'd rather not explain...let's just pretend I'm being compensated...but I can't spend any more money to make the site...

    Please. Just, if you or anybody knows of any gallery programs with a really simple backend...I'd appreciate it...I'm hunting for myself, but if anyone knows of a good one please throw a link my way...

    Or even, outside of a gallery altogether. A simple way to allow her to edit text on the homepage and nothing more. Like, I create the site in HTML and then use a database for the homepage text, editable via a simple PHP script. If someone can point me in a direction of how to go about that, that'd really help.

  9. #8
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    Homepage text edit:

    1) Change the filename from "index.html" to "index.php" (extension = .php)

    2) Where you want the text to appear, enter this line:
    <?php include("p1_1.txt");?>

    3) Now, using Notepad, create a text file with a paragraph of text.
    save that text file as: "p1_1.txt"

    4) Upload that into the same directory as "index.php"

    5) Change the file permissions (CHMOD) of "p1_1.txt" to CHMOD=777.

    6) Now, whatever is contained in that text file automatically shows up
    on the main page. So you just need to edit that text file.

    When you get this far, let us know. I don't want get too far ahead of you.


  10. #9
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    To edit that text file, you'll need a form.

    So copy the code below and save it as a file called: "edit.php"

    PHP Code:
    <html>
    <head><title>Edit the Text</title>
    </head>
    <body>
    <?php

    $page
    ="p1_1.txt";

    $filename="./".$page;
    if(
    file_exists($filename)){
    $fz=filesize($filename);
    }
    if((
    file_exists($filename))&&($fz)){
    $lines = array();
    $fp fopen($filename"r");
    $array3 explode("\n"fread($fpfilesize($filename)));
    fclose ($fp);
    $text="No text yet";
    $count_array=count($array3);
    for (
    $i=0;$i<$count_array;$i++) {
    list (
    $fdesc) = split ('\|'$array3[$i]);
    if(
    $fdesc){$text=$fdesc;}
    }
    #for loop
    }#if file exists

    $newdesc str_replace("<br>""\n"$text);
    $newdesc =str_replace("<""["$newdesc);
    $newdesc =str_replace(">""]"$newdesc);

    echo
    "
    <form action='save_text.php' method='post'>
    <input type='hidden' name='page' value='
    $page'>
    Page Text: <br />
    <textarea name='desc' rows=30 cols=80>
    $newdesc</textarea><br /> 
    <input type='submit' name='submit' value='Save Text'>
    </form><br /><br />
    "
    ;
    ?>

    </body>
    </html>


  11. #10
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,755
    Member #
    5580
    Liked
    720 times
    Finally, you'll need the script to save the changes.
    Copy the script below and name it: "save_text.php"

    PHP Code:
    <?php

    $page
    =$_REQUEST['page'];
    if(!
    $page){header ("location: index.php");}

    $descdescSafe($_REQUEST['desc']);

    $myFile "./$page";
    $fh fopen($myFile'w+') or die("can't open file");
    fwrite($fh"$desc\n");
    fclose($fh);

    $location="index.php";
    header ("location: $location");

    function 
    descSafe($strText) {

    // This part removes bad characters and any PHP scripting.
    // 
    // The user can use HTML commands by using square brackets
    // For example, they can type [b]This is bold[/b] ... and
    // it will convert automatically to actual HTML brackets.
    //
        //returns safe code
        
    $tmpString strip_tags($strText);
        
    $tmpString stripslashes($tmpString);    

        
    //convert all types of single quotes
        
    $tmpString str_replace(chr(145), chr(39), $tmpString);
        
    $tmpString str_replace(chr(146), chr(39), $tmpString);
        
    $tmpString str_replace("'""'"$tmpString);
        
        
    //convert all types of double quotes
        
    $tmpString str_replace(chr(147), chr(34), $tmpString);
        
    $tmpString str_replace(chr(148), chr(34), $tmpString);
        
    $tmpString str_replace("|"" "$tmpString);
        
        
    //replace carriage returns & line feeds
        
    $tmpString str_replace(chr(10), ""$tmpString);
        
    $tmpString str_replace(chr(13), "<br>"$tmpString);

    $tmpString str_replace("[""<"$tmpString);
    $tmpString str_replace("]"">"$tmpString);

    $tmpString str_replace("<?"""$tmpString);
    $tmpString str_replace("?>"""$tmpString);

        return 
    $tmpString;
    }
    ?>

    EDIT: corrected error, should be OK now.

    .



Page 1 of 3 1 2 3 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com