Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Lightbox questions, concerns, help wanted :)

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #187091
    TC
    Participant

    Hi.

    I have an image gallery I’m working on which shows thumbnails that the user selects to perform some action upon. One of those actions will be to view the selected images larger.
    I was thinking of using a lightbox for this but since I’m new to javascript I’m not sure if a lightbox can handle what I want.
    I want to a lightbox that has buttons which perform various functions like save the image, delete the image, email the image, etc.

    Question 1:
    Is it (easily) possible to make a lightbox with buttons on the bottom that perform actions when the user clicks them?
    For example, during the lightbox if the user comes across images they like he/she may want to save it by clicking a save button.
    Same for delete, etc. I’d like them to be able to do these things in the lightbox.

    Question 2:
    I know there’s a lot of lightboxes for free on the net which is cool but so far I have not found one that meets my needs and many seem to have a license that would require me to show the source code.
    Are they talking about all of my project’s source code or just their lightbox source code?
    I may want to sell this gallery to try to make some money and I don’t want to have to show my source code.

    Question 3: If I cannot find a lightbox for free or for sale that meets my needs where can I learn about making one that meets my needs myself (see below)?
    Can anyone point out any great tutorials that show how to add buttons to the lightbox?

    Question 4:
    Is it possible to pass image names / values to the lightbox or do they just read a directory and whatever images in the directory are shown in the lightbox. In mine I’d need to only show the selected images the user wants so I’d have to have a way to pass the image names to the lightbox I figure.
    Does the lightbox appear in an iframe or new page?

    Question 5: Is there a difference between a javascript lightbox and a jquery lightbox?
    I need the most compatible because I’ll probably try to sell this gallery to others so compatibility is important.

    Question 6: If I cannot find a good free or paid lightbox which can do what I want and if I cannot figure it out what do you think a fair price is to pay for a custom lightbox that fits my needs?
    $30.00? $35.00?
    I think I’ve seen others for that price online (besides all the free ones).

    Thank you for answering any / all questions :)

    Lightbox needs:

    *User selects desired images from the thumbnail gallery then clicks a ‘view’ button to make them appear in a lightbox. I need to know how to pass the list of image names which the user has selected to the lightbox.

    The lightbox should have buttons which can be clicked to do things such as save, delete, email, etc. for the current image. I can handle the functionality of the buttons if the lightbox is like a normal page. I just don’t yet know if a lightbox can have buttons on it and if so how do I do this?

    Hopefully you gurus will have some great advice for me. In the meantime I will continue my search on the net looking for lightboxes and tutorials.

    Maybe a lightbox isn’t the way to go for me?
    Maybe sending the selected images to a custom php page gallery is better?

    Thanks.

    #187124
    __
    Participant

    Is it (easily) possible to make a lightbox with buttons on the bottom that perform actions when the user clicks them?

    Not much more difficult than anywhere else. You make some buttons, attach some event handlers that do {whatever} when they are clicked on. Since you want to operate on the currently displayed picture, a lot will depend on how the slideshow organizes things.

    I know there’s a lot of lightboxes for free … many seem to have a license that would require me to show the source code. Are they talking about all of my project’s source code or just their lightbox source code?

    The license should say. Some simply require credit and that you make their code available to others; some can only be used in projects that are also open-source. Similarly, some may have restrictions based on personal vs. commercial projects, etc..

    …I don’t want to have to show my source code.

    Keep your previous question in mind: javascript simply cannot be used unless you send the source code to the user. You either show your source code, or keep it locked up on your hard drive and never use it. There is no middle ground.

    If I cannot find a lightbox for free or for sale that meets my needs where can I learn about making one that meets my needs myself?

    Just my first impression, and I may be wrong, but seems to me you have a lot you would need to learn about JS before you could produce something with capabilities matching or rivalling existing lightbox scripts. It’s not something you can learn over the course of a few weeks and one tutorial.

    If you want to learn javascript, that’s great! Keep in mind that a lightbox will not be the first thing you produce. It’ll take time to get to that point, and there’s a lot to learn on the way.

    Can anyone point out any great tutorials that show how to add buttons to the lightbox?
    Is it possible to pass image names / values to the lightbox?
    Does the lightbox appear in an iframe or new page?

    As with question #1, these things will depend almost entirely on the particular lightbox script you choose and how it is designed/ implemented.

    Is there a difference between a javascript lightbox and a jquery lightbox?

    jQuery and JavaScript are not different languages. jQuery is a javascript code library. jQuery is javascript.

    As for compatibility, jQuery does cover a lot of cross-browser stuff for you, but the code you end up with will be a lot heavier as a result. This is a judgement call based on your specific needs and circumstances.

    what do you think a fair price is to pay for a custom lightbox that fits my needs? $30.00? $35.00?

    Absolutely not. The scripts you’ve seen for sale for similar prices are not “custom lightboxes.” They were developed once, requiring dozens (or even hundreds) of man-hours of work, and are being sold en masse to make up for that outlay.

    If you want someone to actually build you a custom solution, just based on your brief description here, you should not expect to spend less than $500 or so for something decent.

    Maybe a lightbox isn’t the way to go for me?
    Maybe sending the selected images to a custom php page gallery is better?

    Do you know how to write PHP? The tasks you’re describing could be broken down into smaller, isolated functionality using PHP, which would make it a bit simpler to code (though that would also make it a bit more “clunky” feeling to use).

    There are additional security concerns with PHP (since you’re operating on your server). Also consider that, if you want to sell this, a PHP solution will be more difficult for an end-user to set up.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.