Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2013-07-13 07:37:54
- Sheridon
- New Member
- Registered: 2013-07-13
- Posts: 1
Re: geo_vote
Hi Geoff,
thx for the plugin, just the thing I needed!
While testing it, I found a few small errors:
Sometimes, the html code <span class=”$xyz”> instead of <span class=“xyz”> is put out. Its just a small error in handling the strings… The occurences of that are found in the following lines (hope I catched them all):
633, 657 and 699.
If you want, I can send you the corrected code. I already did it and it works fine for me… Now all css classes are the right ones :)
edit:
Another two issues:
1.) The vote_title_class is sometimes a <div> and sometimes a <span>. That caused some problems with my css, so I changed that in my code to always being <span>. Lines: 633 and 657. Is there any reason for the usage of divs there or should that be changed?
2.) In some countries a ‘,’ is used as a decimal divider instead of ‘.’ . This causes something like <div style=“width:20,57”>, which does not work. Fixed this, by simply rounding to zero decimal places instead of two. Should be precise enough… Line: 684
Last edited by Sheridon (2013-07-14 11:20:48)
Offline
#14 2013-11-25 04:47:39
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: geo_vote
I face with a problem of UTF-8 charectors as well, when i write RTL languages (UTF-8) , that will change to ???????
I changed all tables Collation to UTF-8_General_ci also, but still not solved that problem,
if you found some free time, please have a look.
Offline
Re: geo_vote
Geoff, are you still among us?
I’m about to use your plugin and I will probably add fixes and improvements. I was wondering if I can publicly release them or if you prefer to receive a copy and then publish it yourself.
Offline
Re: geo_vote
I’m with you in spirit xxx to all txpers.
I haven’t been designing sites lately.
Please feel free to tear it to pieces.
I’m not sure it’s great coding.
I remember some strange logic and case statements.
Also a hack that sets a ten minute expiry on the poll form?
That was put in as a security issue but I remember not being completely comfortable with the code but it worked.
To be honest the cookie and ip methods are so easily circumvented, logged in voting is the only meaningful way.
Which makes it so much easier to implement.
Please release it as your own plugin.
Good luck …
This is a great CMS good to see it still moving forward.
Last edited by geoff777 (2015-11-19 01:15:43)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: geo_vote
Thank you, Geoff.
I’ll do my best to be up to it.
Offline
Re: geo_vote
Hi,
is there only this plugin for make a voting?
If yes: Could make the “Title” for the vote longer, instead 64 signs I wish to shown the question longer than 64 signs on my website.
My try to make it longer inside plugin:
$sql[] = "CREATE TABLE IF NOT EXISTS `".PFX.GEO_VOTE_META."` (
`vote_id` int(4) NOT NULL auto_increment PRIMARY KEY,
`vote_title` varchar(264) NULL default '', //varchar(64) NULL default '',
doesnt work. Any ideas?
Best regards
Lythande
Offline
#19 2018-03-01 11:06:54
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: geo_vote
lythande wrote #309527:
My try to make it longer inside plugin […] doesnt work. Any ideas?
Hi lythande, have you tried that after installing the plugin? That wouldn’t work, the table creation process is finished, then. Either edit it in ied_plugin_composer, save as a plugin file, de-install (maybe you have to delete the geo_vote tables), then re-install your version or, probably better, edit that table’s meta data immediately in the DB.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: geo_vote
uli wrote #309541:
… or, probably better, edit that table’s meta data immediately in the DB.
that was a better idea and it works! I have in the line write “ Varchar 364”, but then changing the MySQL it into a “text” – this works good too! Much thanks!
But why is the Kollation from the geo_vote_.. in “latin1_swedish_ci” and not in “utf8_general_ci”? I have only installed German as Language and all other databases for the one website have “utf8_general_ci”.
Last edited by lythande (2018-03-02 00:19:40)
Offline
#21 2018-03-02 10:54:11
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: geo_vote
lythande wrote #309565:
But why is the Kollation from the geo_vote_.. in “latin1_swedish_ci” and not in “utf8_general_ci”?
Just speculating and voilà.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: geo_vote
Much thanks, uli.
Now I have tried to install this plugin in textpattern 4.6.2 and get an Error, the Script for install the Plugin (after upload the plugin I activated it and then go to “Expansions – Vote”) would not answer… Is the Plugin for textpatter 4.6.2?
Is there an another Plugin, that would works too?
Last edited by lythande (2018-03-08 11:57:56)
Offline
#23 2018-03-08 14:55:32
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: geo_vote
I’ve quickly installed the plugin from the topmost post here in my local 4.6.2 and can’t replicate your error. I can open the Vote panel and have the usual green message “Tables installed” at the bottom of the page.
Try to visit that page with all plugins other than geo_vote de-activated. If there’s a change in behaviour, re-activate plugins. If all goes well everything might be functional, then. In case not: De-activate plugins again and re-activate one by one in order to find the culprit. Good luck!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: geo_vote
I tried it and got still an 500-Error. Tomorrow I look in the MySQL-Database…
Last edited by lythande (2018-03-08 23:08:57)
Offline