see my post on page 9 for instructions on updating this hack from version 1.7 to 1.8
Ok, this is a script i was working on a while ago, but put in the freezer for a bit. what it does is allow users to post polls in their threads that are displayed above the post (like on vB) rather than in the post like the other integrated polls hack. before you ask "where is the new poll button?" click here . Features:
CP control over who can post polls
Comments on polls, as well as viewing of results before voting
closeing of polls
known bugs:
Not wordletized at all yet (there are templates though)
user permissions a little finicky in conjunction with calendar user permissions
ToDo:
cleanup of code
wordlets
timed polls (ie: run for a week then automatically close)
Is this the same v1.5 after you fixed that bug with the " ' " stopping polls from working just recently? Or have there been some other changes since then?
There is not supposed to be a post new poll button. Once you install it go to your control panel and choose "General Display Options", near the bottom you can select who can post polls. When you click the new topic button, if you can post a poll (if the who can post option is set to all members, then all members see this), you will see at the bottom of the new topic form, a checkbox that has "Post Poll?" next to it, and an input box for number of options you want your poll to have. Check the box and put in some number (like 3 or something) for the number of options, then fill in the rest of your post (topic, message, etc) as normal. when you click Add New Topic, it will take you to a page that lets you set up your poll with the number of options you selected. Then when you submit that page, your post will be made and your poll created.
mark99 - the only addition has been changing of the poll options, you can now set it so that you can give only selected users permission to post polls (the same as you give them permission to access private forums), or have only admins/mods allowed to post polls, or have all members allowed, or have nobody allowed (effectivly turning them off).
med - ill work on a better cp interface next, and ill include an option in there to have login or public names displayed on comments.
Ok, that would be appreciated, specially that every where it's the public names that are so called...public.
What are the changes to be made if i want to do this manually. Our customer want that change to be made quickly. Should i maybe unistall the MOD and wait ? Or the change is straight forward ?
I have added all files and did the modifications as well as the chmod for the files but when i check the add poll check box and enter the number of poll options and click add new topic it goes to a blank page and nothing happens after that, just a blank page, i wonder what can cause that.. if i check my server log error its a Premature end of script headers in ultimatebb.cgi
Hey thanx for the quick reply man, i found out i only copied one of the 3 template files lol i was reading the instructions and didn't give attention to the dir duh!. Thanx again nice job later.
I have installed your latest version today. I think there must be a bug.
I made a poll question containing this characters; ejt aiu fadk i "¤#¤&%&!!????***''¨ø'´´~~~||
The poll got accepted, but later when I triad to open the message containing this poll, I got the following error message:
Content-type: text/html Software error: Unrecognized character xB4 at /home/ubbtest/www/cleanubb/ubb/Forum1/000003.poll line 2.
Software error: [Thu Jul 12 02:50:49 2001] ultimatebb.cgi: Unrecognized character xB4 at /home/ubbtest/www/cleanubb/ubb/Forum1/000003.poll line 2. Compilation failed in require.
Also, when someone open the message, and want to view the poll result before they vote themself, in the resultpage there is no link back to the message. Maybe there should be a link called "Vote" or "Take me back to vote" or something?
Another one is, when you view the comments, and click on the namelink of the author of the comment, you dont get to the authors profile or something. All I get is the error message saying - "You are attempting to reach a page that does not exist."
sorry i missed adding a part to the instructions. to fix nobody being able to post polls when "All users allowed" is selected, delete and readd the large section from the instructions for ubb_new_topic.cgi.
there is no ssi.
gaulalauk - thanks ill get those bugs fixed today if possible.
A-C - do you mean when they enter an apostrophe in their comment?
Hey Jordo, could you tell me the instructions so that, if all users are allowed, polls can be posted. What do you mean delete and read?
Also, I keep on getting double software errors. When I make a poll, i view it and it is ok, then an hour later, I try to view the topic and there are two software errors.
the 2 software errors are most likely from someone putting a ' in their comments. to fix that download the zipfile again and upload ubb_poll_lib.cgi overwriting the old one.
what i mean by delete and readd, is go through the old directions for what you added to that file, and delete the larger section that you had added to the file (ubb_new_topic.cgi). then look at the new instructions and re-add the large section from those new, updated, instructions.
The add poll still won't won't appear on the add topic.
The new and old code are exactly the same, even the modified date. This is what I did...
###########find:
# show signature? if (($vars_display{AllowSignature} eq 'YES') && ($username ne '')) { $show_sig = qq( $vars_wordlets{show_signature}); }
########### add this before:
# show poll? if ($vars_display{UbbPoll} eq 'Admin') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; } }
if ($vars_display{UbbPoll} eq 'individ_user_level') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
# get user perms ($j, $perms) = split(/&/, $user_profile[4]); if ($perms =~ /p/) { $is_one = "true"; }
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }
} if (($vars_display{UbbPoll} ne 'None') && ($show_poll eq 'yes')) { $show_poll_add = qq(  Poll: Check to Create a Poll With Topic     Number of Poll Options:
There is some problem if one has the Preview hack installed. When filling in the subject, the body, then put a mark for creating a poll, and put the number of poll options, and THEN push the PRIVIEW button, you then will be sendt to the site where you define your poll questions and options. When hitting submit you are sendt back to the preview message window and can preview your message. If you then hit "Add New Topic", all you get is your topic and the message body. The poll isnt there anymore.
To avoid this, people have to make their subject, fill in the message body, and then make a preview of it. AFTER THAT they can make the poll, but I dont think this will be understandable for the ordinary user.
Any idea what to do?
BTW, "Allow anyone to post a poll" now seems to work well.
And making only admins and mods able to edit the poll was a good thing I think. Actually a poll should not be edited at all, but its good for admin and mods to be able to do it, if some sick person like me try to post a poll containing some bad words, or making a poll about some animated brain
Sorry Jordo, now when I even click on Add new Topic, I get this error:
syntax error at /d02/sec/s17/a0004xsu/cgi-bin/ubb_new_topic.cgi line 98, near "'All') " syntax error at /d02/sec/s17/a0004xsu/cgi-bin/ubb_new_topic.cgi line 130, near "}" Compilation failed in require at ultimatebb.cgi line 414.
Line 71 to 101 ubb_new_topic.cgi: # show poll? if ($vars_display{UbbPoll} eq 'Admin') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; } }
if ($vars_display{UbbPoll} eq 'individ_user_level') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
# get user perms ($j, $perms) = split(/&/, $user_profile[4]); if ($perms =~ /p/) { $is_one = "true"; }
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }
} if ($vars_display{UbbPoll eq 'All') { $show_poll = 'yes'; } if (($vars_display{UbbPoll} ne 'None') && ($show_poll eq 'yes')) { $show_poll_add = qq(  Poll: Check to Create a Poll With Topic     Number of Poll Options:
jordo another bug, not a problem, but thought I should tell you.
Lets say we are in Forum 1. Create topic A without a poll then Create topic B with a poll (poll B)
View poll B, vote in poll B, view poll B...THEN..if you want to view the previous topic(topic A), and push the arrow image(next oldest topic), you get back to the next oldest topic(topic A), thats ok. BUT poll B from the former topic B(the one you just view before puching the arrow to next oldest topic) comes a long. So now you are viewing topic A with poll B on top of it, as if it was a poll that belonged to topic A.
I only rehacked ubb_get_topic.cgi as you suggested.
When making a topic with a poll, the topic dont place itself on the top of the topiclist, but in the bottom.(Usually a new topic is automaticly topped)
When viewing the poll, and hitting the next/previous button to view other topics I get the error message saying "No furter topics in this direction" or something like that, even if there are other topics to view.
********* I found the next topic button to work ok, ofcourse if you create a new topic after the polltopic
But it will not show the previous topics created before the polltopic. Then is says "No furter topics in this direction".
kaukagaul - the poll being at the bottom of the thread list cant have anything to do with this hack. i cant seem to replicate the problem with the previous topic button though - works fine on my test board, and again it couldnt be this hack causing that as i didnt touch the routines that handle that...
changes member links in comments work properly. polls can now have their results hidden from non-admins/mods from the edit poll page. CP interface, including individual forum control over where polls can be posted (the type of name to show on comments isnt functional yet). other misc bugfixes/codefixes.
to upgrade from v1.5 rehack ubb_new_topic.cgi delete previous additions to cp_lib.cgi, and rehack delete additions to cp_vars_display.pl rehack cp_users.cgi hack cp.cgi hack cp_common.pl upload ubb_poll_lib.cgi and public_edit_poll.pl, overwriting the old ones. upload vars_poll.cgi and cp_vars_poll.pl i would recommend uninstalling from the old directions and reinstalling from the new, just to be careful
kaukagaul - im not able to replicate that problem, it works just fine on my test board. and im 99.99% sure that nothing modified in this hack could be affecting the way the threads are sorted/listed in the forum view...so see what other hacks you have that could be conflicting. ?
I just installed 1.6 Looks like theres a few bugs.
The links on comments to members profiles is still broke, you need to add the get_profile&u= to the sting in the public_poll_display.pl template.
most importantly, Members can multiuple vote, and after a vote is made, it goes back to the choice page instead of the graph. If you have hidden results, it does not go back to a page that says you have voted already like in 1.5
seems the zipfile decided it wanted to keep the old files instead of adding the new ones when i added them to the zip. its fixed now, reupload ubb_poll_lib.cgi and public_poll_display.pl, sorry bout that (damn zip, heh).
I am getting this error below. Undefined subroutine &main::GetOrPost called at ubb_new_topic.cgi line 136. What in the world would cause this neat error....lol I have checked the script 3 times now and all is fine as it was typed. What now? I did the below and double checked it even. ###============================== in ubb_new_topic.cgi ###==============================
###########find:
# show signature? if (($vars_display{AllowSignature} eq 'YES') && ($username ne '')) { $show_sig = qq( $vars_wordlets{show_signature}); }
########### add this before:
# show poll? require "$vars_config{VariablesPath}/vars_poll.cgi"; if ($vars_poll{UbbPoll} eq 'Admin') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; } }
if ($vars_poll{UbbPoll} eq 'individ_user_level') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
# get user perms ($j, $perms) = split(/&/, $user_profile[4]); if ($perms =~ /p/) { $is_one = "true"; }
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }
} if ($vars_poll{UbbPoll} eq 'All') { $show_poll = 'yes'; } my $this_forum = "forum_$in{f}"; if ($vars_poll{$this_forum} eq 'no') { $show_poll = 'no'; } if (($vars_poll{UbbPoll} ne 'None') && ($show_poll eq 'yes')) { $show_poll_add = qq(  Poll: Check to Create a Poll With Topic     Number of Poll Options:
# perform disk space test: # this is in case disk quota is exceeded, to limit damage--
############ add this before:
# add poll if there is one if ($in{Poll} ne '') { for ($i=0; $i<$in{Poll_total_options}; $i++) { $this_option = "option_$i"; if ($in{$this_option} =~ /'/) { &StandardHTML('Poll options may not contain a ' (apostrophe).'); } if ($in{$this_option} eq '') { &StandardHTML('You did not fill out all options.'); } if ($i == 0) { $poll_options = $in{$this_option}; } else { $poll_options .= "|!!|$in{$this_option}"; } } require "$vars_config{CGIPath}/ubb_poll_lib.cgi"; &new_poll_thread($exact_path, $new_topic_number, $in{question}, $poll_options); }
One minor suggestion when naming the zip files: instead of calling it UbbIntegratedPoll.zip somehow differentiate release; such as, UbbIntegratedPoll 1.6.zip
Another minor suggestion - in the text file , change "and in the control panel, there will be a new option for Poll Settings." to read and in the control panel, there will be a new option for Poll Settings under the Primary Settings menu.
That last bit is a nice touch although the default settings (either to allow or not allow polls) were inconsistant - some forums allowed polls and others didn't.
I have 6.04f and I think I found the problem....maybe not?? Look here..... ###============================== in public_forum_page.pl ###==============================
Maybe this could be a problem.......I donno. I have tried it twice now "scripting" and it works fine until I try to add new topic and the poll. Any ideas? Looks great and I love it! Just got to get past the hitch...lol
jokerz - this is very strange, as that sub call is unrelated to this hack, and if it isnt working there but is working elsewhere (cause you would not be able to do much on the board if the sub didnt work anywhere). i tested the hack on a 6.04f and it worked fine, so im not sure whats up, but i would suggest trying this:
I tried that and OMG I got this...... Can't locate help me/ubbubb_lib.cgi in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at hopeless for me/ubb/ubb_new_topic.cgi line 137. Maybe I have too many hacks....lol Wow what errors.............
============================================= It just links to the cgi files. q!/home/WWW10/name.com/cgi-bin/name/ubb!, Its linked right here. I guess its just too many hacks installed....bah.
Ok you may remember that before v1.5 made it to UBBDev I mentioned a formatting problem with the poll and now I've taken a screenshot. This is under IE5.5 and the latest v1.6 code:
As you can see the top right of the poll has UBB6's (grey) default background colour. I can see the problem in the polls formatting file, but it's not as easy to fix as you might think. You can add an extra TD and BG that, but then it throws the formatting off.
Also on the screen where you type the poll options/names (after 'Post New Topic Screen'), I noticed the formatting wasn't in-tune with the default set by users for their UBB. It extends outwards a little.
Otherwise a good survey system, you just need to fix the long-standing format bugs.
The only problem I am seeing is that the login name is being used with the comments even though I made the public name selection in the cp. I'll muddle through and fix it later
Allow anyone to post polls. Allow Nobody to post polls (off). Allow only Admins and Mods to post polls. Allow only selected users to post polls (admins and mods too).
So you can allow 'anyone' (Members/Non-Members), Nobody (Polls off), Admins & Mods or selected users + Admins & Mods.
So how do you set the system to allow Forum Members, but not unregistered members?
Hello jordo Has there been any progress in that little peace of code to make us choose the Public Displayed Name in the comments instead of login name?
ill be updating this hack for 6.1 as soon as the beta is out this week, so ill add in the public name functionality (right now it was just put in for future use, it doesnt actually do anything to set it in the cp). so as soon as the 6.1 beta is out, expect an update.
OK...but I guess that can be a "different" hack in some way due to the new code in 6.1.
Will you not be fixing the code so the hack work properly for those who choose to stay with 6.0X. I guess many of us that has installed the hack will choose to stay with 6.0X for a while...and not forgetting those who not will be upgrading at all for different reasons. It would be nice to have a finished hack working on 6.0X.
Do I have to make a Poll, so you can see how many people begging you to fix that public displayd name thingy for 6.0X?
Now when I look at my .poll files in a text editor, the choice_total value is always one less than the actual number of choices. Is this right? Anyway, I tried to fix that, cleared my cache and it still displays an error.
Ravenous52 - download the zip, and reupload the file: ubb_poll_lib.cgi, overwriting the old. then in the .poll file that is causeing the problem, take out the apostrophe in the middle of the first line (not either of the ones on the "ends" of the right side). it was yet another check for apostrophes i missed, and something that will be fixed in the next version (ie: apostrophes will be allowed and handled properly, not just blocked).
To bad seeing this thread moving far down the threadlist. This last fix for Public Displayed Name is a 100 times better to wait for than a buch of those 6.1 betas stopping every 6.0x activity.
So we have to give this one a little bump to get it up in the sun again, and maybe that can help a little to get jordo in good mood to make that little fix
As promised files updated with functionality for public/login name selection on comments. simply reupload ubb_poll_lib.cgi and public_poll_display.pl overwriting the old. and be sure to make your selection in the Poll CP as to which you want displayed. enjoy.
If you choose to hide the pollresults, guests are not able to open the thread/topic at all. If a guest try to read7open the topic, he gets an empty screen with this message "FYI, Sorry, we have no one registered with that name. Use your browser's back button to try again."
I think it would be better to let the guest see the topic and the polloptions, and provide him with a message and an option to log in, but not let anyone see the pollresults.
thats a good idea melder, ill change it so it writes member number to file rather than name. do note that the 6.1.0 version has no problems with strange characters, etc, as it uses ubb 6.1.0's nice built in data storage functions. i should have time later today or tomorrow to do that.
melder - i was going to change it but decided not to because changing it will make past polls not work right. there are a few more things to change other than the ones you got, but i would recomend changing them back and waiting a day or two because im just going to change a couple things so that special characters like apostrophes wont mess up the data anymore - without making old poll data useless.
Mewtwo - make sure you have uploaded cp_vars_poll.cgi to the Templates dir, and added the lines in cp.cgi correctly.
For all of you who get a blank page, it's because you are reading the instructions too closely!
He left off one of the files to upload, and once you upload it (it's the public_new_poll_form.pl), you will not have a blank page anymore.
Try it! This poll rocks. I know it's not supposed to, but if I somehow figure out a way to incorporate a poll button from the main page, then this poll will be superb.
[ August 17, 2001: Message edited by: Milton Waddams ]
It seems that adding the Calendat hack has killed the poll hack....It was working fine, and after adding the calendar hack, I forgot to check polls before I put it on the live site.
I redid the poll hack twice from scratch and I can modify settings in the control panel, and when I create a new thread the poll option is there...but when I select poll and the number of options it just returns me to the new thread, and never takes me to the new pool page.
Anyone else have this issue, or have any idea what I can do to fix it.
XPerT - does the current calendar hack modify the file: public_new_topic.pl? i dont know how much it has changed since i worked on it. if it does that may be the problem. if not, make sure you added the line to that file correctly (in particular, replaced the FORM line), and also that ultimatebb.cgi is correctly hacked.
Thanks for your reply, it turns out it was my fault. I moved the submit new topic button right below the text box, and it never got to the point of reading the check box so it didn't know I wanted to do a poll. I really liked having the submit button there, but UBB obviously didn't.
zip updated with a new ubb_poll_lib.cgi that writes data in a better manner (old data is compatible and will not be lost). simply upload the new file, overwriting the old lib.
melder - what do you mean? the only place the names should show up is in the comments. and they should be whichever you selected in the CP...
sorry i left out some quotes in the lib file. redownload and reupload ubb_poll_lib.cgi, then delete the offending .poll file off the server, and all should be fine.
But the next Problem is, that if you have an large Posting, over 4 Lines, theres no Poll and the Posting will be createt with only 4 Lines of Text.. (without the Poll)
Eraser911 - redownload the zip file and upload ubb_poll_lib.cgi, overwriting the old one. i added a quick fix - thanks to LK - that may be causing the problem for you.
UBBRULES - xpert was talkin to me dont sweat it. redownload the zip file from the original post, and upload the file ubb_poll_lib.cgi from the zip, then delete the .poll file that is causing a problem. this should fix the errors.
xpert - i dont think i have yet in this one, ill look/do it tonight.
since i´ve integrated this mod there is a little error. if somebody delete his posting in a thread there is still displayed in the forumslisting that he had post this. although it is already deleted.
[ September 02, 2001: Message edited by: Grummel ]
jordo, the script works great, thanks! But I do have one issue, I'd like to permit all members to make polls without manually granting permission to each one. Is there a way i can do this? Or at least automatically grant future members this permission?
Grummel - so when someone deletes a reply in a thread, the forum page still shows the last replier as the person who deleted their msg? im not too sure that could be related to this hack, as none of those routines were touched, but some more details of the problem would be helpful.
UBBRULES - as soon as i have a chance im gonna go over the way data is stored (dont worry old polls will still work). it looks like a ' is causing the problem, but the way data is stored it should not be. give me a day or two as i have to reinstall a 6.05 test board first.
insanemonkey - ya there should be a "anyone can post a poll" option in your cp.
I mean if somebody delete his post and is was the last on this thread. the forum page still display that he had post his posting, although its alraedy deleted.
I just added these polls but after I did in control panel when I thought it was working ok I went to go to Misc. Settings to turn the board back on but the option for Misc. settings is GONE!! I think it got replaced with the Poll Settings option!
UBBRULES - do you have a member with a tilde (~) in his name?? that should not be possible as 6.0x checks on registration for such characters and blocks them. if it was just that he put a tilde in his comment, then upgrade to 1.8 and delete that poll file (or go in and put a in front of the tilde in the middle of that line).
zip updated to version 1.8
changes fixes for tildes in data corrupting poll files. security fixes (no html allowed). code trimming and misc minor bugfixes. html in ubb_poll_lib.cgi brought to XHTML compliance.
to upgrade (from version 1.7) reupload ubb_poll_lib.cgi, overwriting the old. rehack ubb_new_topic.cgi.
Jordo i just realise that your hack is a two in one hit ! I didn't have any option for email notification when someone post a normal topic and now is there and working after i installed your poll hack
overflow - heh email notification shouldnt be changed with this hack, but if its workin, hey thats cool ive thought about raising the reply count, but i dont want to do that because it would be a bit of a problem with the thread files. i may do like i did in the version for ubb 6.1.0 and make it bump a thread to the top when you vote. well see how much time i have.
sorry jordo I found the problem and was totally my fault ! i try to edit the poll comment in the cgi and i probably stuff things up as after i deleted the poll everything was fine
Hi Jordo.. I installed the Poll Hack .. But cant seem to get the poll to run. I see the button in post msg I can post the (well almost) the poll. but it ask's for fields? are there any further instructions that I missed? Please help
VV - it looks like you mostly got this one installed right, as i can see the Poll: title in the forumdisplay. youll want to check however, the code that you added in ubb_get_topic.cgi. make sure you replaced the code that you were supposed to replace in that file, as well as added the portion to public_topic_page.pl.
Nice job, Jordo. Got it installed perfectly and it looks good, very impressed.
Just got one quick question...
The poll options display in Times Roman rather than the font for the board (Verdana). Is there anywhere I can change this? Or did I miss something in the install?
I have many hacks installed on my board and this one went without a hitch..Excellent job jordo, excellent job!! Very professional looking results when viewing poll..I would recommend this hack to anyone interested in this type of hack. Very impressive..Thanks again jordo..
I have searched thru the 10 pages and only found 1 comment on hiding the results. I couldn't find anything else on this. Is it possible to do as I don't see any option in the CP for it.
I basically want the person making the poll to be able to choose to show or hide the results and only that person, or the admin, can change it then.
The BB allows unregistered users to post topics in most forums. With the Poll set to "Allow only Admins and Mods to post polls", the Poll prevents unregistered users from creating topics (says their username cannot be found).
Have I missed something or is there a way that I can patch this?
Asprin - yes that will work fine, when i do an update ill include something to that effect, but for now that code will do it for you.
Bazz - its come to my attention that ive missed a lot of font tags in this version (ive been concentrating on the 6.1.0 version) so when i have the time to go through and do an update ill add those. in the meantime, public_poll_display.pl contains 95% of the html used to display the polls, so you can add font tags in there.
as you can see i managed to change the view results and the edit poll fonts (not so hard ), but where do i put the font tags for the poll option....the bigger font in the picture (i hope you guys can see it)...thanks in advance.
Well, I'm kinda new to the UBB setup, so I'll play around with it and see, but don't count on me being able to do it. If anyone can come up with it, would be awesome.
I don't know if this was ever presented but does this poll have an IP (or other) verification to limit one vote per poll? If it isn't part of the hack it may be a good feature to prevent users from creating unreliable results. My thoughts anyway.
sorry i must have missed it. anyway, you can hide poll results by editing the poll after it is posted. ive been meaning to get around to adding it as a option when posting the poll but havent had time to.
I have the same question, i hide the results, then there is no option that says edit poll, all it says is "The results of this poll are currently unavailable for viewing"
Nope, I don't get the edit poll option either and I am the only admin for the board. I have 5 moderators, but I am the only admin for the board. I don't see the poll results or the edit poll button after I hide the results.
If I can get this sorted out, maybe it's quick and easy to have the person who posted the poll the option aswell to hide results.
For those who cannot "UN-HIDE" there polls, go to that poll's thread, look at the web addy in the address bar, ie.. blahblah/cgi/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=000076
and change the "get_topic" to "poll_edit" ie... blahblah/cgi/ubb/ultimatebb.cgi?ubb=poll_edit&f=1&t=000076 Peace out...
I would like to see another little enhancement I use UBB as a 'backbone' for a homepage. I use several little hacks such as ubbnews or calendar and include ssi call in my page.
Now another fine feature is a poll on the homepage itself. I dont like to use an external cgi script for this. I already have ypur fine poll hack in ubb6.05 and look for a solution to bring this on my homepage.
My suggestion: a little ssi script wh grab a poll from a board (ala ubbnews) to display them on the homepage. A second script to display the results on the homepage.
So i don'T have any trouble with unregistred users.
What Do you think ? Will this be possible in some time ? Anyone else who need such a feature ?
After I installed the poll, the admin functions dident work. Like sticky threads, move, deleted and close. And I forgot to backup the files I know I just can overtwrite all the files and then everything will work but all the work I have done instlling hacks to it. Heres the error I get :
Content-type: text/html
Software error:
Can't localize lexical variable @topic_file at /blabla/bla/bla/bla/blabla/blabla/cgi-bin//ubb_topic_maint.cgi line 158.