History: Profile_Voting_System_voting_page
Source of version: 6 (current)
Copy to clipboard
{GROUP(groups="Registered")} {TABS(name="votingsystem" tabs="New Vote|Results|Extra Info on the Voting System" toggle="y" inside_pretty="n")} {TRACKER(trackerId="$profileobject:Voting_System$", action="Cast my vote", showtitle="n", showdesc="n", colwidth="15%", ignoreRequestItemId="y")}^ !! Thanks for casting your vote! [tiki-index.php?page={{page}}|New Vote?] ^ {TRACKER} {JQ()} $("select[name=ins_$profileobject:voting_usuario$]").parents("tr:first").hide(); $("label[for='ins_$profileobject:voting_voto$']").parents("tr:first").hide(); {JQ} ///// {TRACKERSTAT(trackerId="$profileobject:Voting_System$", fields="$profileobject:voting_presidente$:$profileobject:voting_vicepresidente$:$profileobject:voting_secretariado$:$profileobject:voting_tesorerA$:$profileobject:voting_vocalA_1$:$profileobject:voting_vocalA_2$:$profileobject:voting_vocalA_3$:$profileobject:voting_vocalA_4$", show_percent="y", show_bar="y", status="op", show_link="n")}{TRACKERSTAT} ///// {REMARKSBOX(type="information" title="Information about this Voting System for the admin" close="y")} Voting_System is one simple yet very powerful use of [https://doc.tiki.org/Trackers|Trackers] in Tiki. This profile will enable the tracker feature and create a basic wiki page to act as a custom reduced interface to vote in the system, while hiding some fields to the end user, that are needed to ensure that the user is recognized as a member of the only group that can vote ("Group1"), and that only one vote per user is allowed. Two users are created for demo purposes: user1, which belongs to group1, and user2, which belongs to group2. Therefore, only user1 can vote, beyond the admin, that can also vote since no permissions are checked against user admin, who has the ability to create and fine tune the system. You can easily enhance the system as admin by: # enabling users to get notified by email of changes to their items. This way, a user casting a vote will receive also a notification email with a copy of the choices made in that vote casted (also if only voting once and no furher change is made to that vote). + You can do so by means of: ## go to list your [tiki-list_trackers.php|trackers], and choose to list the tracker fields for the tracker of the voting system ## edit the field "__User selector: Username__" ## at the option "__Options for User Selector__", choose "Email Notification: __No__". And click at the __OK__ button below to save your changes. + ~hs~ # Set some period for the voting. No votes will be allowed before and after these dates you chose. + You can do so by means of: ## go to list your [tiki-list_trackers.php|trackers] and edit the tracker for the voting system ## go to the "__Permissions__" section in that popup window, below at the "__Creation date constraint__", and click at the "__After__" and "__Before__" checkboxes. ## Choose your preferred date and time for each parameter, and click at the __OK__ button below to save your changes. {REMARKSBOX} {TABS} {ELSE} Log in as registered user so that we can check that you belong to the members list enabled to participate in this voting, and therefore, let you vote normally. You can see the results here in real time along the voting period, since this is a "demo" configuration profile for Tiki. In a real voting scenario, you can hide the results from users, and only display them once the voting is over. {module module="login_box" mode="module" register="n" forgot="y" remember="n"} {GROUP} ~tc~ (alias(Votacion)) (alias(Voting_System)) (alias(Vote)) ~/tc~