×
Kunena 5.1.13 Released (Yesterday)

The Kunena team has announce the arrival of Kunena 5.1.13 [K 5.1.13] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Loved Hack poll v0.3.2.2 for Kunena 1.5.12 and 1.0.11

More
10 years 2 months ago - 9 years 3 weeks ago #1 by xillibit
Hello,

I have created a hack for add poll in kunena it's now functionnal but only on Kunena 1.0.11 and 1.5.12, for previous versions check in the thread,you make poll but with infinite options , but you can make suggestions and report bug or feature request for this hack.

Voting poll options



Add a new poll when you create a new thread :



Kunena 1.5.12 :

Download Hack poll


Changelog, an extended changelog is present in the archive :

v0.3.2.2
-Missing part of code in kunena.php to leverage polls

v0.3.2.1
-Forgot to put right to load the poll class

v0.3.2
-Change in backend to avoid the assertion failed error
-add the five popular polls into stats

v0.3.1
-Fix bug when an user vote on option where it exists already a vote
-fix undefined variable into pollbox when you allow multiples votes for the same user

v0.3.0
-Backport of the polls from kunena 1.6.0DEV to 1.5.8, this means some adaptations on the code
-Rewrite of the hack
-Use now a class nammed kunena.poll.class.php
-you can set a time for the live of the poll, this is optional
-little change on the database model
-you can't submit your post if you haven't filled the polltitle and the options, this shows an alert
-use the class for the polls instead some code
-when you delete a thread, if a poll exist there is delete too

v0.2.0
-Rewrite of the hack
-Use of a new database model
-Show in statiscs the five popular polls
-For prevent spam the users need to wait some time before vote a new time
-Add in the poll results the list of users which are voted for this poll

I don't provide support by PM, because this can be useful for someone else.
Last edit: 9 years 3 weeks ago by xillibit.
The following user(s) said Thank You: wfedin, lmt-net, lotar

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #2 by Matias
Did you mean that you will get the whole page instead of the info you were requesting? If so:

Look at kunena.php and search for "getpreview". Something similar would do it.

Regarding bugs:
- Did you look at the html if you have hidden <input name="id"> in there?
- To show polls only once (per page), just move it to view.php
- Useless html: see above.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #3 by xillibit
Hi,

Did you mean that you will get the whole page instead of the info you were requesting?


yes is that.

- Did you look at the html if you have hidden <input name="id"> in there?

I haven't think to do like this.

- To show polls only once (per page), just move it to view.php

The logic poll for displayed it is in view.php, but on all the posts of the thread the poll is displayed like this and I want that is displayed only on the first post of the thread :

Now fixed

Do you have an idea for the wrong id when an want to save this post in edit mode ?

I don't provide support by PM, because this can be useful for someone else.
Last edit: 10 years 2 months ago by xillibit.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #4 by Matias
Ah, you have put poll into the message. I would have put it before first message with a short text. That way you would also see poll (and/or results) from the last page.

Easiest way to show this only in the first message, is to check ($fmessage->parent == 0) before adding the poll html.

As for id: please look at your form (html) that it contains the right id.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #5 by xillibit
Now this hack is functionnal on Kunena 1.0.9.

What do you do to display message like this :


I don't provide support by PM, because this can be useful for someone else.
Last edit: 10 years 2 months ago by xillibit.
The following user(s) said Thank You: 1master1

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #6 by johnnydement
Kudos for you xilli! this was requested lots :)
The following user(s) said Thank You: lotar

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #7 by xillibit
Thanks

New version 0.1.1 with some improvements, read the first post

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #8 by grumblemarc
Is the poll in every message like that screenshot? If it is that makes it totally unuable.

We love stars on the Joomla Extension Directory . :-)

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #9 by xillibit
Now, I have fixed this bug, it was before the v0.1

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #10 by paspoes
xillibit wrote:

Now, I have fixed this bug, it was before the v0.1


i am using your hack, but i get a error after trying to publish.

error:

An unknown SQL error occured and your message was not posted. If the problem persists, please contact the administrator.
Last edit: 10 years 2 months ago by paspoes.
The following user(s) said Thank You: 1master1

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.203 seconds