-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to include QR Code when printing vote keys #37
base: master
Are you sure you want to change the base?
Conversation
I'll check this out over the weekend. |
Okay I checked this out; takes ages to generate the votekey page (I'm running it on a Raspberry Pi) and I think it's because it's all tables? Wouldn't it be easier to have an Another thing is that I think we had a misunderstanding; I meant that the QR should be a substitution token like (If you don't wanna deal with these that's fine by me, I can go and do these adjustments myself.) |
Can do the table to image option, but the votekey-thingey you have to elaborate some more... ;) |
?> | ||
<span class="qrcode"> | ||
<?php echo qrcodevotekeys_generate_html($votekey); ?> | ||
<?php echo qrcodevotekeys_generate_html($args['votekey']); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hook is sending votekey in an args array
I have added ability to change how the QR code is generated, I also found a bug, see above |
Yeah, what I meant was rather than having the Basically something like:
... and then add a hook to the admin to notify the user of more {%...%} tokens. That way the user can shuffle the {%VOTEKEY%} and e.g. {%QRIMG%} tags around, add custom text, custom markup, formatting, and so on. Does that make sense? |
Yes, now i understand, but if a user then has set the votekey format ( |
Or do you mean that you have to add |
The latter; meaning that if the user wants their QR code on the votekey, they can change it to something like |
Only minor changes made to the core, everything else in a plugin