Shahiem Update: Made some progress with the poll results view. :-) I'm considering to release it early on a git repo (Not the final version, only for testing purposes)
Frink Shahiem Looks sweet! If you push the git repo out, I will for sure trial it. Looks like a fantabolous extension!
Shahiem Felli Voila (With a limit of 10 options) Have to fix two bugs ? before I push it to my git repo.
Shahiem Yeah, i did. Have some issues with packagist. I'll fix that tomorrow ? Edit: Fixed it already lol. You can now install the package with composer: composer require treefiction/polls Note: Don't use this in production! (only for test purposes)
Ralkage Loving the directory structures and clean code! https://github.com/Shahiem/flarum-poll Just how I like to see extensions written, would you say the same @luceos ? ? (HE ADDED RELATIONSHIPS TOO)
Shahiem Ralkage Haha, you really make my day with this comment. ? Thank you Todo list: - Edit poll - Add validation rules - Remove Poll - Expiry date for polls - Code cleanup - Mobile / Responsive design
Frink Shahiem OK, I installed it to my local dev server, but every time I tried to click on one of the options in the polls, it said "Oops, something went wrong. Reload the page and try again"
Felli Shahiem Can't wait till editing & removing is implemented, so far this is one of the best extensions that I've seen so far! http://prntscr.com/im3yh9
SolidOrphan Shahiem Thanks for the extension, it works great for me. Few suggestions : - be able to remove our vote - be able to edit our vote - be able to add a poll to an existing thread by editing the post - view the results but removing the right to vote by doing that - view the results without voting if I'm the admin But that's bonus of course, thanks again for your work !
Shahiem Frink Yes, I did. But I lost all my files ? So I have to start again from scratch. Frink That's weird. Could you enable the debug mode in config.php and tell me which error message you get
Frink Shahiem I believe debug mode is on, just checking again EDIT: It was off. Forgot to enable it on my dev server. The error message I got was GET http://flarum.dev/api/treefiction/polls/votes?poll_id=2&user_id=1 null
Frink Shahiem I'll do that now, should be live in about five minutes, will post admin login info when done
Frink @Shahiem I transferred it over to my site (https://zaptech.ca/flarum) but it isn't pulling FA icons and when I try to login it gives me a null message, so something must have gone wrong during the switchover. I changed the url in config.php and the database info, imported the old database, and it still isn't working. Any tips?
Felli Frink, To be honest, I myself wouldn't recommend uploading this to GitHub unless it's private repo... ?