=== Foto Vote – Photo Contest & Voting Gallery ===
Tags: photo contest, voting, contest, photo gallery, competition
Requires at least: 6.2
Tested up to: 7.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Requires PHP: 7.4

Run photo contests and voting galleries: manage entries, limit how often visitors vote, prevent cheating and pick the winners.

== Description ==

**Foto Vote** is a photo contest and image voting gallery plugin for WordPress. Use it for a photography competition, a people's choice award, a design poll or a simple gallery where visitors vote for their favorites. You control the entries, the voting rules, the vote protection and the winners.

Create a contest, add the entries in the dashboard, place the voting gallery on a page with a shortcode and start voting.

= Popular use cases =

* **Photo and art contests:** photography, illustration, design or pet photo competitions with a leaderboard.
* **Holiday and seasonal contests:** Christmas and New Year, Halloween costume or decoration contests.
* **Kids photo contests:** baby, children's drawing or school photo competitions.
* **Car photo contests:** best car, tuning or car club photo competitions.
* **People's choice awards:** let your community vote for nominees, finalists or the best project of the year.
* **Voting galleries:** show portfolios, products or lookbooks and collect likes without a formal competition.
* **Club and company polls:** allow only logged-in WordPress users to vote.

= Voting and vote limits =

* **Like (+1) voting:** one click per vote.
* **Voting frequency:** allow one vote per photo, a set number of votes per day, or hourly voting windows (24h, 12h, 6h, 3h or 1h).
* **Total vote limit:** cap the total number of votes each visitor can cast in the contest.
* **Vote protection:** cookie and IP checks, with an option to allow only logged-in users to vote.

= Contest schedule, countdown and winners =

* **Start and end dates:** schedule when voting opens and closes.
* **Countdown timer:** show the time left on the gallery page, in the default design.
* **Manual control:** Start, Stop and Finish a contest from its Overview.
* **Two-step results:** after Stop, the contest shows the proposed winners, so you can review the votes before you Finish and publish the results.
* **Automatic winners:** the most voted entries or random winners.
* **Reopen voting:** reopen a finished contest when you need to; its winners are cleared.

= Shortcodes =

* `[fv id="1"]` — the contest voting gallery.
* `[fv_contests_list]` — a list of current and past contests.
* `[fv_leaders]` — a leaderboard of the most voted entries.
* `[fv_winners]` — the winners of a finished contest.
* `[fv_stats]` — contest statistics on the front end.

The contest's Embed tab lists the contest page and every shortcode with a copy button.

= Reporting and administration =

* **Photo reports:** visitors can report an inappropriate entry to the administrator (enable it in the settings).
* **Statistics and CSV export:** voting statistics, events log and export of contest data to CSV.
* **Email notifications and diagnostics:** admin emails, notification log and debug status.

= Customization and translations =

* **Gallery skins:** choose Pinterest, Modern, Modern Azure or New Year. New Year also supports single-entry display.
* **Countdown designs:** default and final.
* **Editable front-end texts:** change button labels and messages on the Strings translation page, without editing `.po` files.
* **Translations included:** German, French, Italian, Dutch, Polish, Portuguese (Brazil), Romanian, Russian and Slovak.

= WP Foto Vote Pro =

The separate [WP Foto Vote Pro](https://wp-vote.net/) plugin offers public photo uploads, moderation, star ratings, manual winners and extra skins.

== Installation ==

1. Install and activate the plugin from Plugins → Add New.
2. Open Photo contests, click Add new and create a contest.
3. Add entries on the contest's Entries tab and set the voting frequency and protection.
4. Place the contest shortcode, for example `[fv id="1"]`, on a page.
5. Start the contest from its Overview.

== Frequently Asked Questions ==

= Can I use it as a voting gallery without a strict contest? =

Yes. Add photos, enable like voting and keep voting open as long as you need. Picking winners is optional.

= How do I prevent cheating? =

Combine cookie and IP checks, allow only logged-in users to vote and set the voting frequency, for example one vote per photo, three votes per day or a total vote limit.

= Can visitors upload their own photos? =

Not in this plugin: the administrator adds entries in the dashboard.

= Can I charge for votes or entries? =

This plugin does not sell votes or entries.

= Can I change button texts without translation files? =

Yes. Edit public texts on the Strings translation page in the dashboard.

= Does deactivation delete my contests? =

No. Deactivation always keeps contests, entries, votes and photos. Deleting the plugin also keeps them unless you enable data removal in the settings.

== Screenshots ==

1. A voting gallery with sorting, category filter, search and a one-click Vote button.
2. A masonry gallery: hover an entry to zoom it, like it, share it or report it.
3. Lightbox with the entry description, share button and live vote count.
4. A finished contest with the three winners shown above the gallery.
5. Contests list with status, entries and vote totals.
6. Contest Overview: voting status, leaders, schedule and shortcode.
7. Voting rules: votes per period, voting type and vote protection.
8. Schedule: start and stop voting manually or on fixed dates.
9. Statistics: votes by day, top entries and integrity signals.
10. Entries management with categories, status and bulk actions.
11. Photo reports sent by visitors, with open and dismiss actions.
12. Global settings: photo reports, gallery display, privacy, sharing and more.
13. Email notifications for contest events.
14. Editable front-end texts on the Strings translation screen.

== External services ==

The following integrations can send data outside this WordPress installation.
A browser request also discloses its IP address and normal request headers to
the service. Configure these integrations and describe their use in your site's
privacy notice before enabling them. The plugin does not send contest records
to its developer.

= Country lookup for votes and reports =

External country lookup is disabled by default, including on existing sites.
Enable it explicitly in Settings > Privacy & GDPR to authorize the IP
transmission. Disabling it stops new GeoIP requests; local integrations and
previously cached country results can still be used.

When an eligible vote or photo report needs a country and no cached result is
available, the server can send the visitor IP to one of these providers. The
provider selector can choose a provider automatically and rotate after a
failure; IPinfo and BigDataCloud are used only when their API key is configured.
The server IP and a configured provider key are also visible to that provider.
The country result is cached.

* FreeIPAPI (request host: freeipapi.com): https://freeipapi.com/ ; terms: https://freeipapi.com/terms ; privacy: https://freeipapi.com/privacy
* IPWhois (request host: ipwhois.app): https://ipwhois.app/ ; terms: https://ipwhois.io/terms ; privacy: https://ipwhois.io/privacy
* IPinfo (request host: ipinfo.io): https://ipinfo.io/ ; terms: https://ipinfo.io/terms-of-service ; privacy: https://ipinfo.io/privacy-policy
* BigDataCloud (request host: api.bigdatacloud.net, data/ip-geolocation endpoint): https://www.bigdatacloud.com/ ; terms: https://www.bigdatacloud.com/terms-and-conditions ; privacy: https://www.bigdatacloud.com/privacy-and-cookie-policy

Each request goes to https://freeipapi.com/api/json/{IP}, https://ipwhois.app/json/{IP},
https://ipinfo.io/{IP}/json or https://api.bigdatacloud.net/data/ip-geolocation?ip={IP}
(IPinfo and BigDataCloud also carry the configured API key). Only the visitor IP and, for
keyed providers, the key are sent.

A site integration can supply a local result using the fotov/geoip/user_country
filter.

= Facebook JavaScript SDK and sharing =

When a Facebook App ID is configured in the settings, contest pages load
Facebook's JavaScript SDK from https://connect.facebook.net/ before any button
is clicked. The visitor's browser therefore sends its IP address and request
headers to Facebook on those pages. Clicking a Facebook share button sends the
shared page URL and title (and the entry image URL, where the share dialog
accepts it) to Facebook.
Terms: https://www.facebook.com/terms.php ; privacy: https://www.facebook.com/privacy/policy/

= Share buttons =

The share buttons are plain links or browser-side scripts; nothing is sent to a network until the
visitor clicks a button. A click opens that network's share page in a new window with the page URL,
the title and, for most networks, the entry image URL. The share pages used are:

* X (Twitter): https://twitter.com/share (host twitter.com) - Terms: https://x.com/en/tos ; privacy: https://x.com/en/privacy
* Facebook: https://www.facebook.com/sharer.php - Terms: https://www.facebook.com/terms.php ; privacy: https://www.facebook.com/privacy/policy/
* Pinterest: https://pinterest.com/pin/create/button/ - Terms: https://policy.pinterest.com/en/terms-of-service ; privacy: https://policy.pinterest.com/en/privacy-policy
* VK: https://vk.com/share.php - Terms: https://vk.com/terms ; privacy: https://vk.com/privacy
* Odnoklassniki (OK): https://connect.ok.ru/offer (host connect.ok.ru) - Terms: https://ok.ru/agreementpage?st.cmd=helpAgreementPage ; privacy: https://ok.ru/privacy
* WhatsApp opens the WhatsApp app or web client - Terms: https://www.whatsapp.com/legal/terms-of-service ; privacy: https://www.whatsapp.com/legal/privacy-policy

= Disqus comments =

When Disqus comments are configured and displayed, the browser loads the site's
configured Disqus embed. Disqus receives the discussion page URL/identifier,
browser request information and comments/login information submitted there.
Terms: https://help.disqus.com/en/articles/1717102-terms-of-service
Privacy: https://help.disqus.com/en/articles/1717103-disqus-privacy-policy

= Deactivation feedback (wp-vote.net) =

When you deactivate the plugin on the Plugins screen, an optional form asks why.
Nothing is sent unless you tick "Send this answer to the WP Foto Vote developer";
"Skip & deactivate" sends nothing. With the box ticked, the server sends once to
https://wp-vote.net/wp-json/fv-feedback/v1/deactivation : the chosen reason and your text, the email you typed (if
any), plugin version and edition, WordPress and PHP versions, and the admin
language. The site address and admin email are not sent. The answer is used only
to improve the plugin.
Terms: https://wp-vote.net/terms-and-conditions/ ; privacy: https://wp-vote.net/privacy-policy/

= Gravatar (author avatars) =

When a gallery skin shows the author of a photo uploaded by a registered user, the
avatar is rendered with WordPress' own get_avatar(). If the site uses Gravatar
(Settings > Discussion > Show Avatars), the visitor's browser loads the image from
https://gravatar.com/ ; WordPress sends a hash of the author's email address. Turning
avatars off in WordPress stops these requests.
Terms: https://wordpress.com/tos/ ; privacy: https://automattic.com/privacy/

= Email delivery =

Email delivery uses WordPress mail and any mail transport configured by the site;
recipients and message contents are sent to that transport.

== Source code and third-party libraries ==

All plugin code is original work by the plugin author and is shipped in human-readable form; every minified file of
the plugin's own code has its readable source next to it in the same folder (third-party minified files are listed
below with their public source). The build tool is Gulp, configured in the included `gulpfile.js`
(dependencies in `package.json`): run `npm install` and then `npx gulp` to regenerate
`assets/js/fv_main.min.js`, `fv_modal.min.js`, `fv_lib.min.js`, `assets/css/fv_main.min.css` and
`templates/timers/default/assets/fv-countdown-default.min.js` from their non-minified sources.

The lightbox (`assets/lightbox/fotov-lightbox.js`, `fotov-lightbox.css`, `fotov-simple.css`) and the admin scripts in
`admin/js/` are original code of this plugin, written by hand and shipped as is, with no build step; they are not
third-party libraries.

Bundled third-party libraries keep their upstream licence headers; the minified builds come from these public projects:

* jQuery Infinite Scroll Helper 1.2.4 (patched; readable source: `assets/vendor/jquery.infinite-scroll-helper.js`) - https://github.com/expandtheroom/jquery-infinite-scroll-helper
* jQuery DateTimePicker 2.5.21 (MIT; official npm build `jquery.datetimepicker.full.min.js`, unmodified, shipped as `admin/libs/datetimepicker/jquery.datetimepicker.min.js` next to the official readable `jquery.datetimepicker.js`; includes its date formatter and mousewheel parts) - https://github.com/xdan/datetimepicker
* Select2 4.1.0 (MIT; official npm build `select2.full.min.js`, unmodified, shipped as `admin/libs/select2/select2.min.js` next to the official readable `select2.full.js`) - https://github.com/select2/select2
* jQuery Wookmark 1.4.8 (MIT, readable upstream source in `templates/skins/pinterest/js/jquery.wookmark.js`) - https://github.com/GBKS/wookmark-jquery/blob/1.4.8/jquery.wookmark.js
* Spectrum Colorpicker 1.7.1 (MIT, TinyColor included) - https://github.com/bgrins/spectrum
* jQuery Growl 1.2.4 (MIT) - https://github.com/ksylvest/jquery-growl
* simple.js 0.1 (MIT, Diego Caponera) - the small MVC helper in `admin/js/vendor/simple.js`
* jQuery Unveil (MIT) - https://github.com/luis-almeida/unveil
* MurmurHash3.js r136 by Gary Court and Austin Appleby — MIT (bundled in assets/js/fv_lib.js, readable source) - https://github.com/garycourt/murmurhash-js
* Typicons (SIL Open Font License 1.1, licence in `assets/typoicons/LICENCE.md`) - https://github.com/stephenhutchings/typicons.font
* Plugin icon font `icomoon_fv` (`assets/icommon`), generated with the IcoMoon app from a plugin-specific glyph selection
* Bootstrap 3 grid rules (MIT, reformatted one rule per line in `assets/css/fv_grid.css` and `templates/skins/pinterest/public_item_tpl.css`) - https://github.com/twbs/bootstrap/blob/v3.4.1/less/grid.less
* Options Framework 1.8.4 (GPL-2.0+, adapted) - https://github.com/devinsays/options-framework-plugin

== Changelog ==

= 1.0.0 =
* First release on WordPress.org.

== Direct download build ==

This ZIP was downloaded from wp-vote.net before the plugin was listed on WordPress.org. When you activate it, it sends one request to https://maxim-kaminsky.com/shop/wp-json/abta/v1/install with your site URL, the plugin version, and the WordPress and PHP versions, so the developer can count installs. Nothing else is sent, and nothing is sent later. To skip it, add `define( 'FV_DISABLE_INSTALL_PING', true );` to wp-config.php before activating. The WordPress.org release does not contain this code, and updating from WordPress.org replaces this build.
