Pro Polls Documentation

Update Log


Welcome to the Update Guide. This guide is to help you update your system to the latest version. We know that a lot of our customers do their own custom updates to their systems and so having to overwrite their files all the time can sometimes cause them problems. This update guide is to show you which files need to be updated in order for your system to be fully updated.

Version 1.3 (Released 30/03/2017)

This update includes bug fixes and updates. The following changes/updates were made:

  • Update to the latest version of CodeIgniter 3.1.4
  • Added new theme: Dark Fire
  • Fixed issue with non-logged in users voting
  • Fixed issue with CSS display in Iframe Polls

In order to update the following files need to be updated/overwritten:

  • Controllers
  • application/controllers/Polls.php
  • Views
  • application/views/layout/layout.php
  • application/views/layout/titan_layout.php
  • application/views/layout/blue_light_layout.php
  • application/views/layout/dark_fire_layout.php
  • application/views/layout/sidebar_links.php
  • application/views/layout/mobile_links.php
  • application/views/polls/view_poll_ajax.php
  • Libraries
  • application/libraries/Settings.php
  • Languages
  • application/language/english/content_lang.php
  • Styles
  • styles/layouts/basic/main.css
  • styles/layouts/dark_fire/*
  • System
  • system/*

DATABASE UPDATE

This update contains a change to the database tables. In order to make the system work, you will need to execute the update.sql found in updates/version1.3/sql/update.sql.

Just import this file into your database manager (like phpMyAdmin) and it should update your database tables for you.

LANGUAGE UPDATE

For those who have up-to-date language files, you will need to add some new lines to your language files in order to translate the new content being added. Follow the simple edits below:

Modify file application/language/english/content_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

// Version 1.3
$lang['ctn_503'] = "Welcome";

Save the file.

CLEAN INSTALL

Remember, if you have trouble updating, you can always do a clean install. Just follow the guide in the Documentation Guide as you did before and you will have the latest version of the system ready.

Version 1.2 (Released 01/02/2017)

This update includes new features and bug fixes. The following changes/updates were made:

  • Upgraded to the latest version of CodeIgniter 3.1.3
  • Implemented User Roles
  • Can set default User Role in Admin Panel
  • Implemented new layout switcher in Admin Panel
  • Three new layouts: Basic, Light Blue and Titan
  • Change Logo type to text or image in Admin Panel
  • Restrict who can create polls with the new Poll Creator User Role
  • Can modify User Roles of each Member in the Manage Members area
  • Implemented Datatables for Members, Admin Members, Payment Logs and Premium Users.
  • Implemented Google ReCaptcha
  • Implemented Datatables for Your Polls, Archived Polls.
  • Implemented User Vote Restriction (force user to have an account in order to vote)
  • Admin and Admin Poll User Roles can modify any poll in the system.
  • Implemented Stripe Payment Gateway
  • Added Your Payments page so User can see any payments they have made.
  • Implemented 2Checkout Payment Gateway

In order to update, we recommend doing a clean install of the system files (overwrite all files). However, if you have made several changes to your system, the following files need to be updated/overwritten:

Files to be updated

  • Controllers
  • application/controllers/Admin.php
  • application/controllers/Register.php
  • application/controllers/Login.php
  • application/controllers/Members.php
  • application/controllers/Polls.php
  • application/controllers/Funds.php
  • application/controllers/IPN.php
  • Libraries
  • application/libraries/Settings.php
  • application/libraries/User.php
  • application/libraries/Common.php
  • application/libraries/Template.php
  • application/libraries/Datatables.php
  • Models
  • application/models/Admin_model.php
  • application/models/Install_model.php
  • application/models/User_model.php
  • application/models/Polls_model.php
  • application/models/IPN_model.php
  • Third Party
  • application/third_party/ReCaptcha/*
  • application/third_party/autoload.php
  • application/third_party/stripe/*
  • Views
  • application/views/*
  • Scripts
  • scripts/custom/polls.js
  • scripts/custom/auto-update.js
  • Styles
  • styles/*
  • System
  • system/*

DATABASE UPDATE

This update contains a change to the database tables. In order to make the system work, you will need to execute the update.sql found in updates/version1.2/sql/update.sql.

Just import this file into your database manager (like phpMyAdmin) and it should update your database tables for you.

LANGUAGE UPDATE

For those who have up-to-date language files, you will need to add some new lines to your language files in order to translate the new content being added. Follow the simple edits below:

Modify file application/language/english/content_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

// Version 1.2
$lang['ctn_446'] = "Search ...";
$lang['ctn_447'] = "Like";
$lang['ctn_448'] = "Exact";
$lang['ctn_449'] = "Online";
$lang['ctn_450'] = "Offline";
$lang['ctn_451'] = "Stripe Secret Key";
$lang['ctn_452'] = "Stripe Publish Key";
$lang['ctn_453'] = "2Checkout Account Number";
$lang['ctn_454'] = "2Checkout Secret Key";
$lang['ctn_455'] = "User Role";
$lang['ctn_456'] = "Poll Name";
$lang['ctn_457'] = "User";
$lang['ctn_458'] = "Logo Option";
$lang['ctn_459'] = "Site Name";
$lang['ctn_460'] = "Site Logo";
$lang['ctn_461'] = "Choose a logo option for your layout.";
$lang['ctn_462'] = "Layout Theme";
$lang['ctn_463'] = "Default User Role";
$lang['ctn_464'] = "This User Role is given to newly registered users.";
$lang['ctn_465'] = "Google ReCaptcha";
$lang['ctn_466'] = "Enable Google ReCaptcha on Registration Form.";
$lang['ctn_467'] = "Google ReCaptcha Secret";
$lang['ctn_468'] = "Google ReCaptcha Key";
$lang['ctn_469'] = "Add User Role";
$lang['ctn_470'] = "User Roles";
$lang['ctn_471'] = "User Roles allow you to create specific permissions for users. Each user can have one User Role which gives them access to various areas of the site. You can give a user a role via the Manage Members section.";
$lang['ctn_472'] = "Role Name";
$lang['ctn_473'] = "Permissions";
$lang['ctn_474'] = "Has complete control over every aspect of the site";
$lang['ctn_475'] = "Super Admin";
$lang['ctn_476'] = "Access to Admin Panel Global Settings and Social Media Settings";
$lang['ctn_477'] = "Admin Settings";
$lang['ctn_478'] = "Access to Admin Panel Manage Members, User Groups, IP Blocking and Email Settings.";
$lang['ctn_479'] = "Admin Members";
$lang['ctn_480'] = "Access to Admin Panel Payment Logs, Payment Settings and Premium Users.";
$lang['ctn_481'] = "Admin Payment";
$lang['ctn_482'] = "User cannot login to the site.";
$lang['ctn_483'] = "User can create Polls.";
$lang['ctn_484'] = "Poll Creator";
$lang['ctn_485'] = "Has access to the Admin Poll section. Can modify any Poll.";
$lang['ctn_486'] = "Admin Poll Manager";
$lang['ctn_487'] = "Edit User Role";
$lang['ctn_488'] = "Pay With Stripe";
$lang['ctn_489'] = "You can also buy funds with Stripe, which accepts any major credit/debit card. None of your information is stored on this site.";
$lang['ctn_490'] = "Credits";
$lang['ctn_491'] = "Buy";
$lang['ctn_492'] = "Your Payments";
$lang['ctn_493'] = "Processor";
$lang['ctn_494'] = "All Polls";
$lang['ctn_495'] = "Public Poll";
$lang['ctn_496'] = "Public";
$lang['ctn_497'] = "Private";
$lang['ctn_498'] = "If Set to private, this Poll will not appear in the All Polls list.";
$lang['ctn_499'] = "User Restricted";
$lang['ctn_500'] = "A user must be logged into their account in order to vote. Voting is restricted once per account. Overrides IP and Cookie restrictions.";
$lang['ctn_501'] = "Reset Expired";
$lang['ctn_502'] = "This poll's timer has already EXPIRED. You can remove the timer by checking this checkbox (or add more time to the poll by updating the days, hours and minutes fields above).";

Modify file application/language/english/error_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

// Version 1.2
$lang['error_82'] = "You have attempted to login too many times! Please wait 15 minutes before trying again.";
$lang['error_83'] = "You must activate your account before you can login.";
$lang['error_84'] = "Click here";
$lang['error_85'] = "to resend activation code to your email address.";
$lang['error_86'] = "Invalid Code!";
$lang['error_87'] = "You must wait 15 minutes before sending another email activation request.";
$lang['error_88'] = "Invalid User!";
$lang['error_89'] = "Role name cannot be empty!";
$lang['error_90'] = "Invalid User Role.";
$lang['error_91'] = "Only a Super Admin can change the User Role of another user!";
$lang['error_92'] = "Only a Super Admin can add other users with Admin-Related roles.";
$lang['error_93'] = "Payment already processed";
$lang['error_94'] = "You need to be logged in to vote on this poll!";
$lang['error_95'] = "You must choose at least one answer to vote on!";

Modify file application/language/english/success_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

// Version 1.2
$lang['success_41'] = "You have successfully registered an account! An email has been sent to your email address containing a link required to click to activate your account.";
$lang['success_42'] = "Thank you for activating your account! You can now login!";
$lang['success_43'] = "An email has been sent to the address for that account.";
$lang['success_44'] = "User Roll was added!";
$lang['success_45'] = "User Role was updated!";
$lang['success_46'] = "The User role was deleted!";
$lang['success_47'] = "Payment was completed and funds added!";
$lang['success_48'] = "Could not process payment due to error!";

Save the files

CLEAN INSTALL

Remember, if you have trouble updating, you can always do a clean install. Just follow the guide in the Documentation Guide as you did before and you will have the latest version of the system ready.

Version 1.1

This update includes new features and bug fixes. The following changes/updates were made:

  • Added missing hook for changing languages
  • Added an Install Notification for new installs
  • Added new option to enable Brute Force Login protection
  • Updated Layout
  • Fixed a bug for paypal payments
  • Option to enable Email Activation for newly registered members
  • Updated Documentation
  • Fixed a bug where when a poll expired and you didn't vote in it, the results would not display
  • Replaced the Country Tracking source with new one that works

In order to update, we recommend doing a clean install of the system files (overwrite all files). However, if you have made several changes to your system, the following files need to be updated/overwritten:

Files to be updated

  • application/config/hooks.php
  • application/controllers/Admin.php
  • application/controllers/Login.php
  • application/controllers/Register.php
  • application/controllers/Polls.php
  • application/models/Install_model.php
  • application/models/Login_model.php
  • application/models/User_model.php
  • application/models/Register_model.php
  • styles/login_layout.css
  • application/libraries/User.php
  • application/libraries/Settings.php
  • application/views/polls/edit_poll.php
  • application/views/polls/view_poll.php
  • application/views/polls/view_poll_ajax_refresh.php
  • application/views/polls/view_poll_ajax.php
  • application/views/login/index.php
  • application/views/layout/login_layout.php
  • application/views/layout/layout.php
  • application/views/admin/settings.php
  • application/views/admin/edit_member.php
  • application/languages/english/content_lang.php
  • application/languages/english/error_lang.php
  • application/languages/english/success_lang.php
  • images/social/*
  • images/favicon/*

DATABASE UPDATE

This update contains a change to the database tables. In order to make the system work, you will need to execute the update.sql found in updates/version1.1/sql/update.sql.

Just import this file into your database manager (like phpMyAdmin) and it should update your database tables for you.

LANGUAGE UPDATE

For those who have up-to-date language files, you will need to add some new lines to your language files in order to translate the new content being added. Follow the simple edits below:

Modify file application/language/english/content_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

$lang['ctn_436'] = "Welcome To";
$lang['ctn_437'] = "Email or Username";
$lang['ctn_438'] = "Register An Account";
$lang['ctn_439'] = "Activate User";
$lang['ctn_440'] = "No";
$lang['ctn_441'] = "Yes";
$lang['ctn_442'] = "Brute Force Login Protection";
$lang['ctn_443'] = "Prevents a user from being able to repeatedly guess a user's login credntials. After 5 attempts, it blocks them out for 15 minutes.";
$lang['ctn_444'] = "Email Account Activation";
$lang['ctn_445'] = "If this option is enabled, when a user registers an account they will need to activate their account by clicking an activate link in their email.";

Modify file application/language/english/error_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

$lang['error_82'] = "You have attempted to login too many times! Please wait 15 minutes before trying again.";
$lang['error_83'] = "You must activate your account before you can login.";
$lang['error_84'] = "Click here";
$lang['error_85'] = "to resend activation code to your email address.";
$lang['error_86'] = "Invalid Code!";
$lang['error_87'] = "You must wait 15 minutes before sending another email activation request.";
$lang['error_88'] = "Invalid User!";

Modify file application/language/english/success_lang.php (or replace english with the name of your language folder)

Add the following lines of code to the bottom of your language file

$lang['success_41'] = "You have successfully registered an account! An email has been sent to your email address containing a link required to click to activate your account.";
$lang['success_42'] = "Thank you for activating your account! You can now login!";
$lang['success_43'] = "An email has been sent to the address for that account.";

Save the files CLEAN INSTALL Remember, if you have trouble updating, you can always do a clean install. Just follow the guide in the Documentation Guide as you did before and you will have the latest version of the system ready.

Version 1.0

This is the first version. No update needed.

CLEAN INSTALL

Remember, if you have trouble updating, you can always do a clean install. Just follow the guide in the Documentation Guide as you did before and you will have the latest version of the system ready.