Poll feature

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/27/2007 8:44:30 AM
Gravatar
Total Posts 68

Poll feature

Hi,

A poll feature (where you could vote and see results etc.) would be really nice to have in mojoPortal. I'm thinking of doing this myself. But how would I go about? Is it good to add the code to mojoPortal.Business, Web and Data projects or is it better to create seperate projects for the feature? The poll business objects need to store and retrieve data from a database.

I would like to have polls seperate from the module as admins should be able to view all the polls from the same place. In the modules you can change poll, and have the same poll on different places on the site (in different modules?).

Other tips and tricks would be helpful. I will of course contribute the result when its finished.

Christian

6/28/2007 7:30:50 AM
Gravatar
Total Posts 18439

Re: Poll feature

Hi Christian,

It would be great if you would like to implement this feature and contribute to mojoPortal.

If you are willing to implement all 4 data layers it can be internal and the code can be added to mojoPortal.Web, mojoPortal.Business, and mojoPortal.Data (4 versions).

If you're not sure about implementing all the data layers then I would recommend implement this feature as external projects and when you are finished maybe I will implement any remaining data layers that you don't tackle.

The WebStore.sln has an example of a complex feature implemented as separate projects. The most important trick is using post build events to copy the needed files from the external projects to the correct places beneath the web project. I usually make the UI(web application project) handle the post build copying.

If you have more specific questions as you get into it I'll try to help.

Joe

8/2/2007 8:10:27 AM
Gravatar
Total Posts 68

Re: Poll feature

I have sent you some files to your e-mail.

Christian

8/2/2007 1:48:50 PM
Gravatar
Total Posts 18439

Re: Poll feature

Thanks Christian! I will have a look at this soon.

Joe

8/9/2007 1:34:05 PM
Gravatar
Total Posts 18439

Re: Poll feature

Hi Christian,

Sorry for the delay in looking at this, I promise to get to it in the next 2-3 days, maybe even later today I will start. My brain was too deep involved in the new setup syetem to let myself get sidtracked right away or I would have made mistakes, but its at a point now where I should be able to shift my brain to a new subject and start playing with the new poll feature. In fact I will try to plug it in using the new setup feature.

I will either post here again or contact you by email with feedback soon, looking forward to this feature!

Cheers,

Joe

8/9/2007 5:05:13 PM
Gravatar
Total Posts 18439

Re: Poll feature

Hi Christian,

Your new poll feature is great! Very nice work! I've committed it to my sandbox and am doing the merge to trunk now, should be in there in a few hours.

I integrated it into the new setup process so I did not have to manually install it. You will see a new folder in the Poll.UI project named Setup. I put files in there to make it plug in to the new setup and added another xcopy for it into the post build event. Doing this actually helped me find a few things that needed improving in the setup.

The only thing I noticed that confused me was I created a new poll but it didn't appear on the page until I voted once. Not sure if that was something I did wrong. I still haven't tried all the options so I'll keep playing with it and see what else it does. I wonder if the list box for poll options needs to be that tall on the page or do you envision having polls with  a lot of options?

I will try to get to the other data layers sometime soon.

Again, very nice work!

Cheers,

Joe

8/14/2007 5:45:54 AM
Gravatar
Total Posts 68

Re: Poll feature

Great work on the setup process.

The reason for that the poll is not shown on the page directly is because you can create as many polls as you want to, and then a content admin or other users with edit permissions could select from a list of active polls. You can have the same poll at different locations on the site if you want to. It could be implemented to add the new poll on the page directly if a module id is sent in the query string or something to the New poll page and if going directly from the Choose poll page. I will think on that some more.

It shouldn't have to do with anything with voting once, I mean, how could you vote the first time if it didn't appear anywhere? :)

What list of options do you mean? It's one option per row, right?

Christian

8/14/2007 6:50:26 AM
Gravatar
Total Posts 18439

Re: Poll feature

Hi Christian,

I may have been confused on the voting once thing.

I just mean the height of the listbox on the page where you add options to a poll. Its tall enough to hold about 20 options. If we make it not so tall maybe we can reduce vertical scrolling to get to the buttons at the bottom. Just a layout idea.

Cheers,

Joe

8/14/2007 6:57:43 AM
Gravatar
Total Posts 68

Re: Poll feature

Hi Joe,

I see, yes, that would probobly be a good idea to make that list less tall. Maybe so it could hold 10 options or something.

Christian

8/15/2007 5:14:20 AM
Gravatar
Total Posts 68

Re: Poll feature

I sent you a patch that makes the list less tall and a language fix.

Christian

You must sign in to post in the forums. This thread is closed to new posts.