Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Poll Plugin

(Page 1 of 2)
> >
Quote Reply
Poll Plugin
Hi Yogi,



I just wanted to let you know that this has been a very stable and useful plugin. Thanks for writing it.

Do you think that an Image version could be done where an image would be uploaded for each answer and a person vote on the image?



Thanks again!Cool
Quote Reply
Re: [Teambldr] Poll Plugin In reply to
Thanks for the flowers.

Image upload, and voting for images is the next major thing I want to do. In principle, the upload facility is there, it just needs to be adapted to the poll.

What would you do about image size? Should there be restrictions on how big an image can be (height, width, but also file size)? What should be done if somebody tries to upload an image that does not meet the criteria?

My proposal:

- admin can set maximal width/height/filesize
- images that do not meet the criteria are rejected.
- if the image has got an acceptable filesize but is wide/high, it will be rescaled.

Tell me what you think about this.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Yogi,
I think as you say that there needs to be a similar system to the attachments filtering that exists in the forum admin panel.
Maybe the ability to not allow guests to post images even if they are within the right size, width length limits like in the forum with attachments.
Would it be possible to only allow certain groups to post images and hence not others ?
I suppose the basic, time, place, photographer and comments will be available for the poster to provide a minimum of details so as not to have people asking basic questions like where did you take the picture from.

Good luck with the coding, from what's been posted it sounds like nicely organised quality code Wink

John
Significant Media
Quote Reply
Re: [Jag] Poll Plugin In reply to
Thanks for the feedback.

1. There could be a global option for who can use images with their polls. This could be overwritten to allow certain groups to use images and other groups not. Basically the same principle for permissions as there is now, I would just have to introduce a new "level", "Write/Upload Images with polls".

2. As the system is now, users cannot store information that comes with an attachement. I am not planning on changing this (it would mean implementing a new file upload system, and I don't think it's worth the effort). You can always post details of the images in the corresponding post (that comes with a poll).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Sounds perfect!Cool
Quote Reply
Re: [yogi] Poll Plugin In reply to
Just another comment...

I installed the poll plugin today and it is really cool. Nice work Yogi.
Quote Reply
Re: [Paul] Poll Plugin In reply to
Thanks Paul Smile

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
This is a very good plugin! Thanks yogi.

I have a suggestion.

It would be nice if the little white note graphic were to look different (I could color one in) if the thread had a poll in it. This would allow easy identification of the threads with polls by the admin and browser.

Perhaps it is just an 'if' tag needed with a little sub added to the plugin module. No big deal, but I think it would be nice.

My poll on phpBB is signigied by the word [poll] when I am browsing using it, and it helps people find the polls easier.

Smile


http://www.iuni.com/...tware/web/index.html
Links Plugins
Quote Reply
Re: [Ian] Poll Plugin In reply to
Hi Ian

you can for example use

<%if post_is_poll%><b>Poll: </b><%endif%>

just before <%post_subject%> on forum_view.html to make polls stand out more (so that it looks exactly like phpbb). With the graphic too, you could just make your own graphic for polls (poll with replies, polls which are hot) and put it into <%if post_is_poll%> .... <%endif%> tags.

I hope that helps. If you come up with some nice graphics, let me know.

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Aug 20, 2002, 1:37 PM
Quote Reply
Re: [yogi] Poll Plugin In reply to
Thanks yogi :)

I'll pass on the graphics too... as I am going to make some just for this Cool


http://www.iuni.com/...tware/web/index.html
Links Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
There are a few instaces of <%post_subject%> in this template, which all need prefexing with this mod (for anyone else reading).


http://www.iuni.com/...tware/web/index.html
Links Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Hi Yogi,
Is it possible to let only moderators create polls and only in the discussion groups that they have moderator rights ?

John
Significant Media
Quote Reply
Re: [Jag] Poll Plugin In reply to
Thats exactly what I want to do too :)
Quote Reply
Re: [Paul] Poll Plugin In reply to
Couldn't you just put <%if user_is_moderator%> (or whatever the variable's called) around the new poll button?


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] Poll Plugin In reply to
All that would do is hide the button.
Quote Reply
Re: [Paul] Poll Plugin In reply to
And then they couldn't create a poll. Not the most secure, but still effective.


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] Poll Plugin In reply to
Yeah so I'd just type the URL into my browser and create it :)
Quote Reply
Re: [Jag] Poll Plugin In reply to
Of course this is possible!

In the plugin options, set "poll_write_permissions" and "poll_edit_permissions" to 6.

For the record: those options, and the "poll_vote_permission" option can take the following values
* banned = -1
* none = 0
* view forum = 1
* view list of posts = 2
* read posts = 3
* reply to posts = 4
* post messages = 5
* moderators = 6
anything more than 6 is for administrators only.

I hope this helps.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Post deleted by Paul In reply to
Quote Reply
Re: [Paul] Poll Plugin In reply to
Paul?

Plugin Options: look under "Plugins -> Installed Plugins -> Poll Plugin ->Edit

There you can set default options, the Poll Groups are just to finetune the default settings.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
Yeah it was a dumb question so I deleted it but I guess you were replying when I did.

Go easy on me, I climbed out of bed five minutes ago Cool
Quote Reply
Re: [Paul] Poll Plugin In reply to
OK, you're forgiven...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Poll Plugin In reply to
You forgive easy.

That looks good Ivan, thanksSmile


http://www.iuni.com/...tware/web/index.html
Links Plugins
Quote Reply
Re: [Ian] Poll Plugin In reply to
Yogi, I sent you an email at the info@yoursite. I was trying to d/l the poll plugin and got a server error. Is there anywhere else I can d/l this plugin?

Thanks,

MrKIA
Quote Reply
Re: Poll Plugin - Poll Groups In reply to
Trying to figure out the PollGroups....

I have a forum (ID#1) open (any access) to 3 User groups (ID#1,2,3)

I want group 1 to be able to vote in this forum, but not the others.

I assigned PollGroup 1 w/ ForumID=1, GroupID=1, PollPermission=Vote;
2 w/ ForumID=1, GroupID=2, PP=None;
3 w/ ForumID=1, GroupID=3, PP=None;

Is his how this is supposed to work?

Dave
> >