Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/08/2017 in all areas

  1. Quotes & stories are just text, so that can be handled with a simple form. The user inputs text and submits the form, your code saves it - probably in a database - and you're done. Images might be an a URL to an existing image ( e.g. Photobucket ) or an actual image you allow them to upload via a form. Either way, the end result is almost the same - a URL to an image - one being your-site.com/images/img-name.jpg and the other external-site.com/their-url-system/img.jpg So you'd handle them differently but end up with a URL of some sort, that can be stored in the database. The uploaded image would have to be stored on your server. For displaying the results you might want something like Javascript Masonry - check that out, it's quite fun Security... All text would have to be checked / cleaned to stop code injection, cross site scripting and all the nastiness that people WILL try ! If the site's meant to be "family safe" then removing swear words etc too. Uploaded images would need to be coded so they can't upload huge pics; either flat out refuse them or shrink them down once uploaded. "Family safe" pretty much goes out the window with images, unless you're going to get real people to moderate each and every one. I believe there /might/ be some issues with external images and security, but I haven't researched it. E.g. I post an external URL to an image like site.com/image.svg and that might not be an .svg at all, or maybe one crafted with malicious intent.
    1 point
  2. A couple of things that help me out. CTRL-S is your friend. Quickly saves the page you are editing. Sublime also has a plugin called "View In Browser." A right click on the document or hot-key combo saves your file and opens it in a browser of your choice. You probably know this, but I will mention this as well. In the tab where the document name is, there is either a little circle or x to the right of the name. A quick glance tells you the status. x=saved, circle=there are unsaved edits on the page. These save a bit of time as well not having to go to the mouse so much.
    1 point
×
×
  • Create New...