UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » [MOD] poll system

[MOD] poll system

Moderators: Gaia.

Page: 1 2 >

Author Post
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Hello everyone,

because I'm new to this board let me introduce myself first ;) Im currently using UseBB to host three boards on my homepages and one board for friends of mine. It is really a great piece of software and I want to say thank you for giving this to the community :) Keep on the good work !

Lately I needed a pollsystem and so I tried to integrate one into UseBB. It is a quick but hopefully not too dirty work. Perhaps someone can cross-check the changes I have made, because changing foreign PHP-code can often have unplanned results. Any hints, bugreports and suggestions are greatly appreciated.

I have uploaded the files to the UseBB Sourceforge site. A detailed description is included...

@Dietrich: Perhaps you can make use of this concept for your development of version 1 or 2 of your great software.

Bye

Pizza
_______________
Talking is silver, writing is gold...
Developer
Registered: Apr 2004
Posts: 2178
Location: Belgium
Thanks for contributing, I will test it when I have the time.

As for 2.0, polls are becoming a part of the distribution.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Moderator
Registered: Oct 2005
Posts: 424
Location: canada
Nice, also feel free to upload it to UseBB Zone's modification database.

( If you want me to stop mentioning this on just about every modification/theme that i see people add here, just tell me Dietrich :P )
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Upload completed ;)
_______________
Talking is silver, writing is gold...
Moderator
Registered: Oct 2005
Posts: 424
Location: canada
Thanks, i've validated it, so it is also now available to download from there :).
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
That's fine :)
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
@Dietrich: Some tags in my form were not xhtml-compliant. From one moment to the other opening a message with a poll produces an xml-error-message. Do you have an idea why this message doesn't come while I was testing the mod ?

For example I have used 'selected' instead of 'selected="selected"' or '<input type="hidden">' instead of '<input type="hidden" />'.

I have corrected the errors and updated the file on Sourceforge.

@Gaia: How can I update the file in UseBB zone ? Or can you take the version from Sourceforge and put it on your site ?
_______________
Talking is silver, writing is gold...
« Last edit by Pizzamampf on Sun Jul 16, 2006 12:10 pm. »
Developer
Registered: Apr 2004
Posts: 2178
Location: Belgium
Maybe you had XHTML headers disabled in the ACP?

Just to note, we expect users to write XHTML compliant mods as UseBB's default template is XHTML 1.0 Strict. Without an XHTML header you won't see an error but it still isn't valid.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
I cannot remember that I have changed this option, but it must be something like this.
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
The pollsystem now uses the language-support.
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Damn, Dietrich. You are to fast for me ;)

Updatet to 1.0.1.
_______________
Talking is silver, writing is gold...
Member
Registered: Aug 2006
Posts: 5
SQL query: 

- TABLE usebb_polls : d int( 11 ) NOT NULL AUTO_INCREMENT , ostid int( 11 ) NOT NULL , emberid int( 11 ) NOT NULL , nswer int( 11 ) NOT NULL , en int( 11 ) NOT NULL , PRIMARY KEY ( d ) , KEY ostid( ostid ) , KEY emberid(
emberid
), KEY en( en )

MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '- table usebb_polls:
d int(11) NOT NULL auto_increment,
ostid int(11) ' at line 1

Hi!
I was wondering if someone can give me better code or help me out with this one here ?
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
I have uploaded the new version for 1.0.2. Including a bugfixes for use with friendly URLs.

@reset: Sorry I have not seen yout post until now. Please take a look at the new version. I had a mysterious problem with the readme file. It should be corrected now.
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
I have updated the patch to version 1.0.3. Although the old version works with 1.0.3 now the nasty warningmessages when using the patch are gone...
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Again no great changes, but I removed the patch-warnings for 1.0.5.
_______________
Talking is silver, writing is gold...
Member
Registered: Apr 2007
Posts: 3
Hi,
I'm installing the UseBB 1.0.5, it looks great :D
I'd like to add the MOD POLLS of pizzamampf.
I've downloaded it at SourceForge.NET
So I have 2 files, readme.txt and usebb_1.0.5_poll.diff

I've modified my database with specifications of readme.txt, but now, I have to use the .diff, but I don't know what to do :?

I think this extension is for CVS or something like that.
I didn't find answers on this forum, nor on google, so if somebody could help me with this :oops: ?
Moderator
Registered: Oct 2005
Posts: 424
Location: canada
http://www.usebb.net/community/topic-1236.html
Member
Registered: May 2005
Posts: 292
Location: Washougal, WA
Poll system discussions...
http://www.usebb.net/community/topic-1215.html
http://usebbzone.com/topic.php?id=63

I have no idea about the .diff file, even reading topic Gaia posted, still don't get it.
Developer
Registered: Apr 2004
Posts: 2178
Location: Belgium
Topics merged. Please keep the mod support questions in their own topics.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Apr 2007
Posts: 3
Great, thank you.
It's great to use, and really simple, when we know what to do ;)
phpBB should use the same fonctionnality :lol:
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Too fast for me to help ;)

Perhaps I should add an additional note in the next readme about the diff-file. The problem seems to come up from time to time...
_______________
Talking is silver, writing is gold...
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
The updated version 1.0.6b has an additional poll-type:

If you remove the brackets around "multi" in a newly created poll the user can select multiple answers with checkboxes instead of choosing only one answer from a select-list.

You should not change the poll-type on an already running poll, because answers are stored in different ways. So the old user-votes will appear on a wrong answer !
_______________
Talking is silver, writing is gold...
Member
Registered: Apr 2007
Posts: 13
Pizza :)

Is there a way to close the poll so that the results remain visible but no more votes can be cast?

Dawn
Member
Registered: Jul 2006
Posts: 36
Location: Goslar, Germany
Hi Dawn,

you can vote in a poll as long as you can reply in the topic. So you have to lock the topic to close the poll.

Greetings

Pizza
_______________
Talking is silver, writing is gold...
Member
Registered: Apr 2007
Posts: 13
Pizza,

It's me again :D ... I've been using this poll for a while, but it's been a month or so since I deployed one and I don't have any past examples to look at :( ... can you tell me again exactly what I need to do to put this in the post and show up properly. Right now, all i get is the code generated by the poll button, no dropdown, etc.

Dawn

Page: 1 2 >

UseBB Community » Resources & Customization » [MOD] poll system

UseBB Community is powered by UseBB 1 Forum Software