Poll

Post Reply
User avatar
stani
Master Bludit
Posts: 116
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 5 times
Been thanked: 3 times

The Bludit plugin I’m missing is a poll plugin....
Last edited by stani on Sun Aug 02, 2026 4:12 pm, edited 1 time in total.
User avatar
Edi
Site Admin
Posts: 3135
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 81 times
Been thanked: 122 times
Contact:

Have you tried to do it with an AI?
clickwork.ch, digitale Projekte
Bludit-Tipps, Erklärungen und Anleitungen
User avatar
stani
Master Bludit
Posts: 116
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 5 times
Been thanked: 3 times

I asked AI, it wouldn't be easy, and I wouldn't want to disrupt the overall system. I'm a layman.
lastpictures
Sr. Bludit
Posts: 46
Joined: Mon May 01, 2023 9:18 am
Has thanked: 4 times
Been thanked: 9 times

I can offer you a simple poll plugin. I use it myself regularly. It can easily be customized - especially the language, since it was originally written for German users.

Download: https://lastpictures.de/download/b3cfed ... 9bd603f44a
User avatar
stani
Master Bludit
Posts: 116
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 5 times
Been thanked: 3 times

lastpictures: many thanks! :)

It works great, I immediately had it translated (via Gemini) into my language.
It's just a pity that it's one poll for the entire website.
It would definitely be better if it was extra for each page (something like {{poll1}} , {{poll2}}, {{poll3}}, etc.).
But maybe you can work on that (using Claude.ai)... ;)
lastpictures
Sr. Bludit
Posts: 46
Joined: Mon May 01, 2023 9:18 am
Has thanked: 4 times
Been thanked: 9 times

Thanks :)

I’ve tweaked the plugin a bit to improve the code. I’ll see what can be done regarding multiple simultaneous polls.

The download link remains the same.

What is the website where you are using the plugin?
User avatar
stani
Master Bludit
Posts: 116
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 5 times
Been thanked: 3 times

lastpictures wrote: Sun Aug 02, 2026 9:08 pm What is the website where you are using the plugin?
Just for testing so far...
lastpictures
Sr. Bludit
Posts: 46
Joined: Mon May 01, 2023 9:18 am
Has thanked: 4 times
Been thanked: 9 times

I have updated the plugin again. It is now possible to create multiple polls and embed them on a page using shortcodes. You will need to download the latest version and, if necessary, re-translate it.
User avatar
stani
Master Bludit
Posts: 116
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 5 times
Been thanked: 3 times

excellent, many thanks!

Just some observations:

on my website the "vote" button is empty, only when the mouse is hovered over it does the content appear.

It would probably be a good idea to replace this part of the code:

Code: Select all

.bludit-poll__btn{
 margin-top:10px;
 padding:8px 16px;
 border-radius:6px;
 border:none;
 font-weight:500;
 cursor:pointer;
 display:inline-block;
 transition:background-color .2s ease
}
.bludit-poll__btn:hover{
 background-color:#0056b3 !important;
 color:#ffffff !important
}
With this:

Code: Select all

.bludit-poll__btn{
    margin-top:10px;
    padding:8px 16px;
    border-radius:6px;
    border:none;
    background-color:#007bff !important; /* Pridaná viditelná modrá barva pozadí */
    color:#ffffff !important;            /* Přidaný viditelný bílý text */
    font-weight:500;
    cursor:pointer;
    display:inline-block;
    transition:background-color .2s ease
}
.bludit-poll__btn:hover{
    background-color:#0056b3 !important; /* Ztmavnutí při najetí myší */
    color:#ffffff !important
}
Another thing: if the "Poll" plugin is deactivated and then reactivated, all running polls are deleted, only the default one that is present in the installation remains.

Last thing: what is the "Export" button for and the subsequent *json file?….
lastpictures
Sr. Bludit
Posts: 46
Joined: Mon May 01, 2023 9:18 am
Has thanked: 4 times
Been thanked: 9 times

You can customize the plugin to your liking. I tested it with two themes and it didn't cause any problems.

Yes, the data is deleted. However, this is also the case with other plugins. If that is to be avoided, the plugin would need to be modified so that the data is retained upon deactivation.

The export button allows data to be exported to a .json file for further processing if needed.
Post Reply