Photo Contest Facebook App
PHP Script for organizing photo competition
- Created: 05/06/2013
- latest Update: 10/29/2014
- By: Zbynek Hovorka
- Email: info@proeshopy.cz
Thank you for purchasing my product!
Features
- The application complies with all Facebook terms and conditions.
- App is ready for mobile devices
- Color settings available
- It is possible to determine how many photos may be inserted by one user.
- Full editing is possible via the Admin Control Panel
- It is not necessary to be logged on to Facebook in order to access the Admin Control Panel
- Visitor behaviour can be tracked using Google Analytics.
- The winner is displayed automatically on the home page after the end of the contest.
- Each competitor has statistics of his/her photographs in the contest.
- Each user and competitor can vote only once for a single photo.
- Voting after the end of the contest is disabled.
- Every photo can be commented on using Facebook Comments.
- Every photo can be promoted using the Post to Wall or Invite Friends buttons.
- Spam protection: it is impossible to place the HTML, PHP and Javascript code in the legend.
- A setting is available for presentation of the photos in a gallery.
- Sorting of the photos can be set both in the gallery and in the Admin Control Panel: the most recent/oldest, most/least voted for.
- Only .jpg, jpeg, png and gif files may be uploaded for contests.
- Full support for the following browsers: IE8, IE9, IE10, Chrome, Safari, Opera, Firefox
- Fields are available for Privacy Policy, Terms and Conditions and Faq with a WYSIWYG editor
- A separate language file is available. The application can be translated into any language using a text editor.
Server Requirements
- Web hosting
- PHP 5.3+
- mySQL 5.x+
- 100MB+ Disk Space
- You need secure url https://. Installed SSL certificate on your domain.
- Facebook account
Installation - Version 3.0
- Unpack archive and upload content of folder PhotoContest3.0) to your webserver.
- Create MYSQL database and import photocontest(3.0).sql
- Set CHMOD 777 to folder libs/upload/upload
- Set CHMOD 777 to folder admin/upload
- Set CHMOD 777 to all files in admin/upload
- Set CHMOD 777 to libs/config.ini file
- Go to Facebook Developers and Create APP*
- Set Facebook app**
- Go to https://URL-YOUR-INSTALED-APP/install/ and fill the install form.
- Go to Admin control panel (URL-YOUR-FACEBOOK-APP/admin/) log in and change settings.
- Rename or delete install folder




Fan Gate (Like Gate)
- If you wanna turn on/off Fan Gate, go to admin/Additional options.
- Fangate works only if you have user_likes permissions from Facebook. HOW TO GET PERMISSIONS
How to change Language
- In the unpacked directory find folder "Language Files"
- Choose your language and find language.php
- Upload this file to server and overwrite the original file /language/language.php
- If you dont find your language just edit, with text editor, original language.php file.
- Some language files are translated only 80%
Update version 2.2 to version 2.3
- Save your libs/config.ini and your language file (in language/folder) to your desktop.
- Rewrite new files in your root from folder PhotoContest(2.3)
- Overwrite your new config.ini file with the old one (libs/config.ini)
- Overwrite your new language.php file with the old one (language/language.php)
- Go to https://YOUR-ROOT.URL/install/ and click on "Save" even if you don´t make any changes.
- Rename or delete install folder
- Done
Update version 2.1 to version 2.3
- Save your libs/config.ini and your language file (in language/folder) to your desktop.
- Go to your Mysql Database and run Update SQL file (SQL/update-2.1-to2.2.sql)
- Rewrite new files in your root from folder PhotoContest(2.3)
- Overwrite your new config.ini file with the old one (libs/config.ini)
- Overwrite your new language.php file with the old one (language/language.php)
- Open language.php file in text editor and add bootom new phrase : define('_SHOWWINNER', 'Show Winner on the Front page');
- Save language.php
- Go to https://YOUR-ROOT.URL/install/ and click on "Save" even if you don´t make any changes.
- Rename or delete install folder
- Done
Update version 2.3 to version 2.4
- Save your libs/config.ini and your language file (in language/folder) to your desktop.
- Go to your Mysql Database and import Update SQL file (SQL/update-2.3-to2.4.sql)
- Rewrite new files in your root from folder PhotoContest(2.4)
- Overwrite your new config.ini file with the old one (libs/config.ini)
- Overwrite your new language.php file with the old one (language/language.php)
- Is necessary open and copy new translations from new language file to old one. All new translations you can find on bottom
- Save language.php
- Rename or delete install folder
- Done
Update version 2.4 to version 2.5
- Save your libs/config.ini and your language file (in language/folder) to your desktop.
- Rewrite new files in your root from folder PhotoContest(2.5)
- Overwrite your new config.ini file with the old one (libs/config.ini)
- Overwrite your new language.php file with the old one (language/language.php)
- Go to https://YOUR-ROOT.URL/install/ . Check all fields and click on "Save" even if you don´t make any changes.
- Rename or delete install folder
- Done
Update version 2.5 to version 3.0
- Due to large changes between version 2.5 and 3.0 is update not possible. The whole system was rebuild becouse of new integration FanGate.
- So finish your current contest with old version and start new one with version 3.0
- If you use your own old language file do not forget add latest lines from original language.php. Open original language.php and find line // VERSION 3.0 and copy all lines bellow