Making Photos Private

Background

In all versions of Family Connections prior to 3.0, the photos in the Photo Gallery are viewable to users outside of your website, without being logged in. A non-authorized user would have to guess the location of these photos, but they still could see them, if they guessed correctly.

Fix

To fix this, FCMS 3.0 added a way to hide the photos from outside users.

The example below assumes that your current website directory is something like:

/some_username/www/index.php
/some_username/www/inc/config_inc.php
/some_username/www/uploads/
/some_username/www/uploads/avatar/
/some_username/www/uploads/documents/
/some_username/www/uploads/photos/
/some_username/www/uploads/upimages/
  1. Edit the inc/config_inc.php file on your server. Add the following line just below the MySQL database information, but above the ?>:

    define('UPLOADS', '/some_username/uploads/');

  2. Move the uploads directoy to the path you specified in step 1.

The end result should look something like this:

/some_username/uploads/
/some_username/uploads/avatar/
/some_username/uploads/documents/
/some_username/uploads/photos/
/some_username/uploads/upimages/
/some_username/www/index.php
/some_username/www/inc/config_inc.php