Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Modules
»
Simple poll module at Elxis 4.1
« previous
next »
Print
Pages: [
1
]
Author
Topic: Simple poll module at Elxis 4.1 (Read 7547 times)
michalis1984
Sr. Member
Posts: 334
Simple poll module at Elxis 4.1
«
on:
May 08, 2013, 15: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
Posts: 10356
Re: Simple poll module at Elxis 4.1
«
Reply #1 on:
May 08, 2013, 19: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 Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Modules
»
Simple poll module at Elxis 4.1