Home
Help
Sitemap
Login
Register
Elxis.org
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Bug reports and fixes
Elxis CMS Forum
>
Extensions
>
Modules
>
Simple poll module at Elxis 4.1
Pages: [
1
]
« previous
next »
Print
Author
Topic: Simple poll module at Elxis 4.1 (Read 301 times)
michalis1984
Full Member
Offline
Posts: 127
Simple poll module at Elxis 4.1
«
on:
May 08, 2013, 14:13:46 »
The identity setting has 10 different possible selections. Does this means that i can have "only" 10 different polls at my site?
Also, the possible answers to a question are 10. Is it easy to change it to 12?
Logged
datahell
Elxis Team
Hero Member
Offline
Posts: 7601
Re: Simple poll module at Elxis 4.1
«
Reply #1 on:
May 08, 2013, 18:01:20 »
This means that you have 10 polls per module instance. You can copy the module unlimited times for more polls.
To increase answers to 12 do the following.
Open file
modules/mod_simplepoll/mod_simplepoll.php
go to line
49
and change this:
for ($i=1; $i<11; $i++) {
to this:
for ($i=1; $i<13; $i++) {
go to line
141
and change this:
for ($i=1; $i<11; $i++) {
to this:
for ($i=1; $i<13; $i++) {
Open file
modules/mod_simplepoll/includes/ajax.php
go to line
39
and change this:
if (($id < 1) || ($id > 10)) {
to this:
if (($id < 1) || ($id > 12)) {
Open file
modules/mod_simplepoll/includes/simplepoll.js
go to line
52
and change this:
for (var i=1; i<11; i++) {
to this:
for (var i=1; i<13; i++) {
Open file
modules/mod_simplepoll/mod_simplepoll.xml
go to line
33
and add below this:
<param type="text" name="answer11" default="" dir="rtl" size="60" label="ANSWER" description="" />
<param type="text" name="answer12" default="" dir="rtl" size="60" label="ANSWER" description="" />
If you need more than 12 answers change the numbers accordingly.
Logged
Elxis Team
|
Is Open Source
|
IOS Reservations | IOS Eshop
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> News and announcements
-----------------------------
Support
-----------------------------
=> FAQs
=> General
=> Installation
=> Security
=> Administration
=> Database
=> Language
=> Elxis 4.x DEV
=> Elxis 2008 developers guide
=> Technical support
=> Public Speaking
-----------------------------
Extensions
-----------------------------
=> Components
=> Modules
=> Bots and plugins
=> Tools
=> Bridges
=> Templates
-----------------------------
Community
-----------------------------
=> Elxis Community
=> Elxis 2008.x Olympus (dev)
=> Build with Elxis...
-----------------------------
Ελληνικό Forum
-----------------------------
=> Γενικά Θέματα για το Elxis CMS
=> Εγκατάσταση
=> Διαχείριση
=> Γλώσσες - Πολυγλωσσία
=> Πρόσθετα
=> Ασφάλεια
=> Βάσεις Δεδομένων
=> Σχετικά με το Forum
=> Δημόσιο Βήμα
-----------------------------
International zone
-----------------------------
=> Dutch
=> Deutsch
=> Français
=> Italiano
=> Indonesian
=> فارسی - Persian
=> Русский
=> Srpski - Српски
=> Türkiye
Loading...