UBB.Dev
Posted By: jordo [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 6:05 AM
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)

Link: http://www.jordodesigns.com/UbbIntegratedPoll.zip
enjoy

[ July 15, 2001 02:57 PM: Message edited by: jordo ]

[ July 31, 2001: Message edited by: jordo ]
Posted By: Tech-Ni-Kal Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 6:14 AM
That is very kewl. I like alot of the features! Good Job!
Posted By: AllenAyres Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 6:54 AM
lookeeng good jordo! nice work as usual smile
Posted By: zerodegreeburn Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 10:59 AM
I think you forgot new Poll link
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 11:23 AM
Jordo,

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?
Posted By: Hyabusa Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 4:02 PM
The post new poll button is missing?

[ July 11, 2001 09:07 AM: Message edited by: Hyabusa ]
Posted By: med Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 4:19 PM
Hi jordo,

I would like to know what changes have to be made to switch from the Username to the Displayed Name in the COMMENTS section of the poll.

Thanks, and keep going, this is a geat asset!

Med
Posted By: omegatron Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 5:31 PM
I think you forgot the new post button as well???

I installed the hack and the code is not conflicting anything however there seems to be something missing?? New poll button.

No one can post a poll without that smile
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 6:55 PM
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.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 6:59 PM
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.
Posted By: med Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 8:58 PM
Quote
quote:
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 ?

Thanks in advance,
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/11/2001 10:47 PM
med - in public_display_poll.pl (Template) find:

$this_comment[0]

and replace with :

$comm_poster

then in ubb_poll_lib.cgi after:
$link_name = $this_comment[0];

add:

$comm_poster = &GetPubName(&GetUserNumber($link_name));

that should make all names show up as public names.
Posted By: A-C Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 1:14 AM
Hey nice script man,

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
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 1:55 AM
A-C - make sure you uploaded public_new_poll_form.pl to the Templates directory in ascii.
Posted By: A-C Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 2:04 AM
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.
Posted By: gaulalauk Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 2:48 AM
Hello jordo

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."

Otherwise..great hack [Linked Image] laugh

[ July 12, 2001 02:26 AM: Message edited by: gaulalauk ]
Posted By: ruph Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 3:06 AM
i was wondering if there was ever a post made about this hack! and i finally found it! VERY NICE! laugh
Posted By: aaronphwack Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 7:19 AM
If I enable all users to post a poll, it disables it. Not even admins/mods can post a poll.
Posted By: gaulalauk Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 9:59 AM
Quote
quote:
Same problem here [Linked Image]

[ July 12, 2001 05:46 AM: Message edited by: gaulalauk ]
Posted By: ruph Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 4:19 PM
is there an SSI feature for the poll?? would be nice to have one.. smile
Posted By: A-C Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 5:33 PM
Is it normal that it's crashing everytime someone enteres a ' ?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 7:03 PM
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?
Posted By: A-C Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 7:06 PM
Yea in the comment heh smile
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 7:09 PM
k, its fixed A-C, just reupload the ubb_poll_lib.cgi. sorry i thought i had added a check but i guess i hadnt. smirk
Posted By: A-C Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 7:12 PM
Ok thanx man, i'll try!
Posted By: gaulalauk Re: [6.0x] UbbIntegratedPoll v1.8 - 07/12/2001 8:45 PM
jordo

dont stress it, take your time man laugh
Posted By: -MadCow-Nigma Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 2:30 AM
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.

Oh ya, nice job, I like Jordodesigns wink
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 3:01 AM
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.
Posted By: -MadCow-Nigma Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 5:56 AM
Thanks a lot Jordo, Jordo Designs rock!
Posted By: maurice Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 9:41 AM
OK The poll worked, like 5 people voted and now I get this error when I want to view the poll:
Code
code:
Posted By: -MadCow-Nigma Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 5:20 PM
Jordo, I am still having problems...

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:

);
$submit_target = "submit_new_poll";
} else {
$submit_target = "submit_new_topic";
}


and yet it still won't work, can you help me out?
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 6:07 PM
jordo

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. laugh

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 laugh

[ July 13, 2001 11:25 AM: Message edited by: kaukagaul ]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 7:30 PM
madcow - before this line:
if (($vars_display{UbbPoll} ne 'None') && ($show_poll eq 'yes')) {

add this:

if ($vars_display{UbbPoll eq 'All') { $show_poll = 'yes'; }

the instructions have been updated with that, im not sure why its not showing up in there for you. smirk

maurice - if you could pm me with the full contents of that file, ill see whats going wrong.

kaukagaul - ill take a look at the preview hack and see where the conflict is.
Posted By: -MadCow-Nigma Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 8:54 PM
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:

);
$submit_target = "submit_new_poll";
} else {
$submit_target = "submit_new_topic";
}

Line 130: } # end new_topic_page


Ultimatebb.cgi; Line 414: require "$vars_config{CGIPath}/ubb_new_topic.cgi";


Thanks a lot Jordo, I really appreciate this effort you are putting forth, it is helping my clan greatly.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/13/2001 9:58 PM
ack, bad typing on my part. this:

if ($vars_display{UbbPoll eq 'All') { $show_poll = 'yes'; }

should be this :

if ($vars_display{UbbPoll} eq 'All') { $show_poll = 'yes'; }


i missed a } smirk
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/14/2001 6:02 AM
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.

Hope you understand what I mean laugh

[ July 13, 2001 11:20 PM: Message edited by: kaukagaul ]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 2:13 AM
instructions updated with a fix for the previous/next topic buttons. rehack ubb_get_topic.cgi.
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 2:40 AM
Bugreport:

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.

laugh

*********
I found the next topic button to work ok, ofcourse if you create a new topic after the polltopic laugh

But it will not show the previous topics created before the polltopic.
Then is says "No furter topics in this direction".

[ July 14, 2001 07:50 PM: Message edited by: kaukagaul ]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 5:41 AM
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...

maybe another hack causing these?
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 5:50 AM
hmm..strange, course if I post a topic without a poll, it goes to the top as usual.
[Linked Image]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 6:46 AM
was this happening before or has it just started happening??
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 6:59 AM
Quote
quote:
It happened exactly after I upgraded due to your instructions here laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 9:54 PM
updated zips to version 1.6

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
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/15/2001 10:58 PM
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. ?
Posted By: Danimator Re: [6.0x] UbbIntegratedPoll v1.8 - 07/16/2001 4:02 AM
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


-Dan
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/16/2001 5:21 AM
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).
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 07/16/2001 6:21 PM
jordo - great !!! laugh i love wink your hack ...

works perfect in german ubb 6.1

[ www.chat-board.de ] in all topics - first threat u can test free ... :rolleyes:
Posted By: JokerZ Re: [6.0x] UbbIntegratedPoll v1.8 - 07/16/2001 10:27 PM
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:

);
$submit_target = "submit_new_poll";
} else {
$submit_target = "submit_new_topic";
}

############ find :

# 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);
}
Posted By: Kelly Bellis Re: [6.0x] UbbIntegratedPoll v1.8 - 07/16/2001 11:11 PM
Nice job jordo! v1.6 working fine smile

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.

Keep up the good work! laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 1:52 AM
JokerZ - what version UBB? GetOrPost was a sub they added in 6.04e or 6.05 (cant remember which) though i dont think i called it at any point...
Posted By: JokerZ Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 2:48 AM
Quote
quote:
I have 6.04f and I think I found the problem....maybe not??
Look here.....
###==============================
in public_forum_page.pl
###==============================

########## find:

$subject

######### and add before :

$poll

After $subject at the end I also have
$extra_pages

Example:
$subject $extra_pages

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

[ July 16, 2001 08:00 PM: Message edited by: JokerZ ]
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 3:14 AM
Quote
quote:
Yes, this is fixed, it was myself doing some bad hacking, everything works fine now. laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 3:14 AM
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:

in ubb_net_topic.cgi, before:
&GetOrPost('POST');

add:
require "$vars_config{CGIPath}/ubb_lib.cgi";

try that and let me know.
Posted By: JokerZ Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 4:47 AM
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.............
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 6:58 AM
ummm, in vars_config.cgi, what does it say after: CGIPath => ??
Posted By: JokerZ Re: [6.0x] UbbIntegratedPoll v1.8 - 07/17/2001 2:36 PM
Quote
quote:
=============================================
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.
Posted By: JokerZ Re: [6.0x] UbbIntegratedPoll v1.8 - 07/18/2001 3:15 AM
I got it working m8 and it works great!
I found the problem and OMG was it fun!
Thanks a million and sorry for the trouble m8.
;0
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/20/2001 8:29 PM
Jordo,

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:

http://www.ispreview.co.uk/images1/polly.gif
(IMAGE reduced to 16colours)

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.
Posted By: freak.scene Re: [6.0x] UbbIntegratedPoll v1.8 - 07/20/2001 9:04 PM
working great for me smile

great hack!!!

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
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/21/2001 11:00 AM
Oh and another thing, this time not really a bug:

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?
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/25/2001 3:09 AM
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?

Just want it, want it, want it laugh laugh laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/25/2001 5:28 AM
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. smile
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 07/25/2001 7:25 AM
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? laugh laugh laugh
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/25/2001 11:13 AM
Jordo,

What about the format bug I mentioned?
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/26/2001 8:59 PM
Come on Jordo, reply =). Don't just ignore it.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/26/2001 11:18 PM
kaukagaul - ok when i update for 6.1 ill make that a seperate version and ill add in the name functinality.

mark99 - redownload the zip and upload public_poll_display.pl
Posted By: Ravenous52 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 3:25 AM
This has been working fine for me until:

I closed a poll and users can still vote and...

Someone started a poll today and it creates the following error...

Substitution replacement not terminated at /home/ravensnest2/ubb/Forum2/008899.poll line 11.

Here is the file.

%poll_data = (
question => 'Who Is The NFL's Most Terrifying Defensive Presence, And WHY?',
choice_total => '8',
choice_0 => 'Trace Armstrong||0',
choice_1 => 'Champ Bailey||0',
choice_2 => 'La Roi Glover||0',
choice_3 => 'Jevon Kearse||0',
choice_4 => 'Ray Lewis||0',
choice_5 => 'Warren Sapp||0',
choice_6 => 'Junior Seau||0',
choice_7 => 'Michael Strahan||0',
choice_8 => 'Charles Woodson||0',
);
1;

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.

Steve
www.ravensnest2.com/ravensboard.htm

[ July 26, 2001 08:28 PM: Message edited by: Ravenous52 ]
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 3:48 AM
Great hack, works great. I have a lot of people wanting to do polls themselves but I'm only allowing Mods/Admins at this time.

Thanks for your great hack.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 5:44 AM
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).
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 10:15 AM
Jordo,

Sweet.. yeah that sorted the format bug, which is the last complaint I have about this hack. It's now perfecto..
Posted By: technoforum.de Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 3:47 PM
uh, just installed v1.6 on ubb6.01 and when hitting 'submit' creating a new message a blank page returns :-/

any ideas?
regards,
chris
http://technoforum.de
Posted By: mark99 Re: [6.0x] UbbIntegratedPoll v1.8 - 07/27/2001 8:12 PM
Huge changes since v6.01, suggest you ramp up to at least v6.04 or v6.05.
Posted By: Nervana Re: [6.0x] UbbIntegratedPoll v1.8 - 07/30/2001 2:10 AM
I'm using UbbIntegratedPoll v1.3 over 6.05 what will happened if i update to 6.1 bp1?
confused
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/30/2001 2:50 AM
this hack will not work on 6.1.0
i will be making an updated version for 6.1.0 as soon as i have a satisfactory cache workaround.
Posted By: Nervana Re: [6.0x] UbbIntegratedPoll v1.8 - 07/30/2001 3:43 AM
Okay Okay
I adore you really integrated Poll and i will wait.
but what about my old Polls if i upgrade and after you finish it I install it again?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 07/30/2001 4:24 AM
dont worry im not gonna change the data files, so old polls will still work. smile
Posted By: zorroman Re: [6.0x] UbbIntegratedPoll v1.8 - 07/31/2001 3:31 PM
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 laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/01/2001 3:22 AM
As promised smile 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.
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 08/01/2001 12:58 PM
Hehe....thanks jordo laugh
Now I am jumpin an hoppin straight to the download url and singing and joddling and kauking and gauling laugh laugh laugh
Posted By: kaukagaul Re: [6.0x] UbbIntegratedPoll v1.8 - 08/01/2001 2:02 PM
a little bugreport

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.
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/06/2001 2:17 PM
heho ...

BUG - if u have a member like ( Satan´s Sister ) u become a ERROR - i mean is the "´" apostrophe in the name.

change to ??? :

can u post the "postnumber" and not the "login/public name" into the calendar file ?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/06/2001 6:35 PM
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. smile
i should have time later today or tomorrow to do that.
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/07/2001 8:48 AM
TX laugh
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/10/2001 7:45 AM
u have ???
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 5:51 PM
HEHO ...

open: ubb_poll_lib.cgi and find:
################################

$has_voted = "No";
foreach $voter (@voters) {
if ($voter eq $user_profile[0]) {

#############
change it to:
#############


$has_voted = "No";
foreach $voter (@voters) {
if ($voter eq $user_number) {


##########
next find:
##########

$poll_data{voters} .= "$username||";


###############
change this to:
###############


$poll_data{voters} .= "$user_number||";

#######################

thats all - i think !!! now the poll write the usernumber to the file and NOT the Username.

no more BUG - like "´" apostroph in username.


nice day ...
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 6:39 PM
Help. I have v6.05 and when trying to change settings in the cp I get this:
Undefined subroutine &main::set_vars_poll called at cp.cgi line 257.

What is it?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 8:15 PM
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.
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 9:24 PM
I rechecked everything!
Here's what I get in the cp:
[Linked Image]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 9:29 PM
Mewtwo - in cp_lib.cgi, check to make sure the line you added after } #end set_vars_misc is added correctly.
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/11/2001 9:36 PM
this is it:


} #end set_vars_misc

sub set_vars_poll {
local(*FILE);

$CurrentTab = qq%Poll Settings%;
&CPHeader; &CPFooter;

#validate
my @ValidateArray = ("UbbPoll", "use_name");
&Validate(@ValidateArray);

# sort forums
my @forums = &OpenForumsFile;
my @sortforums = sort(@forums);

# write to file!
open (FILE, ">$vars_config{VariablesPath}/vars_poll.cgi") or die("Unable to open vars_poll.cgi file for writing.");
&lock;
print FILE qq!%vars_poll = (n!;
print FILE qq!UbbPoll => "$in{UbbPoll}",n!;
print FILE qq!use_name => "$in{use_name}",n!;
for (@sortforums) {
@forum_line = split(/|^|/, $_);
$forum_yesno = "forum_$forum_line[8]";
print FILE qq!$forum_yesno => "$in{$forum_yesno}",n!;

}
print FILE qq!);nn1;n!;
&unlock;
close (FILE);

chmod(0777, "$vars_config{VariablesPath}/vars_poll.cgi");


&cp_confirm("Poll Settings Updated");
exit;

}
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/12/2001 9:43 AM
it works - only in the comments are the usernames normal. (include "´" ..) ???

2) and i can´t edit the comments - if make a update ....
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/12/2001 6:09 PM
can't anyone help me?
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/14/2001 10:33 PM
cp works now, but when I click the New Topic button it shows a blank page.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/14/2001 11:59 PM
melder - im still lookin into it, sorry im very busy atm.

mewtwo - make sure you uploaded public_new_poll_form.pl to your templates dir.
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/15/2001 9:39 AM
thanks jordo. I had uploaded it in the wrong dir.
Posted By: AllenAyres Re: [6.0x] UbbIntegratedPoll v1.8 - 08/16/2001 9:19 PM
https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=10;t=001256

not sure if this is the polling feature he was talking about
Posted By: Milton Waddams Re: [6.0x] UbbIntegratedPoll v1.8 - 08/17/2001 4:03 PM
Wow, what a kick ass poll dude, thanks!

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 ]
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 08/18/2001 7:04 AM
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.

I'm on v6.04 and my board is at www.netwerkin.com/cgi-bin/ultimatebb.cgi
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/18/2001 7:39 AM
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.
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 08/18/2001 3:06 PM
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.
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/20/2001 7:59 AM
u have edit ... confused

i´m still waiting ...
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/21/2001 8:51 AM
BUG !!!

public name in CP 4 votes - do NOT work !!!
Posted By: Mewtwo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/21/2001 5:41 PM
Quote
quote:
I noticed he left it out. I uploaded it. But to the wrong dir. laugh
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/21/2001 7:52 PM
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...
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 08/22/2001 6:36 AM
I'm not sure if this has been mentioned in this thread, but when people using Opera view the polls the see broken nbsp tags.

There are some in the instruction text that are missing the ; at the end.
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 08/22/2001 8:23 AM
ERROR !!!
print this: q~choice_0~ => q~aaaaaaaq~choice_1~ => q~sssssss

this part don´t work right in ubb 6.01
Code
code:
Posted By: Eraser911 Re: [6.0x] UbbIntegratedPoll v1.8 - 08/22/2001 11:45 AM
I´m running under UBB v6.05 and have this Failure Message..

http://www.board4all.net/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=19&t=000108

Can anybody help me?

Here is the Poll File:
Code
code:

Thanx...
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/22/2001 5:08 PM
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.
Posted By: Eraser911 Re: [6.0x] UbbIntegratedPoll v1.8 - 08/23/2001 10:50 AM
Thanx at first..

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)

Sorry for my English.. wink

Thanx again..
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/23/2001 10:03 PM
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.
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 08/31/2001 6:56 AM
i am getting these two errors

Code
code:

can someone please give me some assistance as to what i could possible do
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 08/31/2001 7:25 PM
UBBRULES - did you just recently (past 3 or 4 days) download and install it, or did you download the zip before then?
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 08/31/2001 10:13 PM
awhile ago
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 08/31/2001 10:33 PM
Did you fix the nbsp's that were missing the ; at the end?

They showed up in each poll when a user viewed them in Opera.
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 08/31/2001 11:17 PM
no i have not touched the nbsp's frown

infact can you please tell me what nbsp's and opera is all i know is that i can't figure out why it says what it says smile

Thank you very much for your hastily quick assistance
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/01/2001 12:49 AM
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.
Posted By: RandyM Re: [6.0x] UbbIntegratedPoll v1.8 - 09/01/2001 2:10 AM
Quote
quote:
They didn't show up in IE or NS...just Opera.

Great hack by the way!
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/01/2001 4:02 AM
Quote
quote:
yep fixed in the zip. just reupload public_poll_display.pl smile
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 09/01/2001 4:16 AM
Thank you very much for all your help,

It now works thanx to your intelligence hope you keep up the good work...
Posted By: Zackary Re: [6.0x] UbbIntegratedPoll v1.8 - 09/02/2001 10:24 AM
Another excellent hack Jordo! laugh

Works like a charm on my site.

Keep up the great work. smile

Chris

[ September 02, 2001: Message edited by: Chris ]
Posted By: Grummel Re: [6.0x] UbbIntegratedPoll v1.8 - 09/02/2001 1:50 PM
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 ]
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 09/03/2001 2:02 AM
hey i have another error that has caused my forum's polls to cease working
it is
Code
code:
Posted By: insanemonkey Re: [6.0x] UbbIntegratedPoll v1.8 - 09/03/2001 4:17 AM
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?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/03/2001 4:27 AM
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. smile

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.
Posted By: melder Re: [6.0x] UbbIntegratedPoll v1.8 - 09/03/2001 12:24 PM
tx - fine - now its working ... [´] wink


little bug - if u hide the results and show the threat without register u become a error.

test it
Posted By: Grummel Re: [6.0x] UbbIntegratedPoll v1.8 - 09/03/2001 3:26 PM
Quote
quote:
No you missunderstand me smile

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.

clear? smile
Posted By: UBBRULES Re: [6.0x] UbbIntegratedPoll v1.8 - 09/04/2001 8:54 AM
all right cool maybe something with using member #s instead of names would be nice
Posted By: ramprage Re: [6.0x] UbbIntegratedPoll v1.8 - 09/04/2001 11:56 PM
Oh crap someone help me out!

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!

HELP!

FAST

Ramprage
Posted By: ramprage Re: [6.0x] UbbIntegratedPoll v1.8 - 09/04/2001 11:59 PM
LOL

opps I deleted the line needed for the control panel (stupid mistake)

Its fixed now laugh

discussions.ramprage.com

Thanks Jordo

Ramprage

[ September 04, 2001: Message edited by: ramprage ]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/05/2001 3:44 AM
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.
Posted By: overflow Re: [6.0x] UbbIntegratedPoll v1.8 - 09/05/2001 6:49 PM
Thankyou the poll works great (so far i just tested) on my board.

I have a couple of questions

first the email notification works only when someone reply to the poll and does not work when someone vote frown

second the reply count shoul increae when somepost shouldn't it? (if not take it as a suggestion smile )

Third i really like it !!
Posted By: overflow Re: [6.0x] UbbIntegratedPoll v1.8 - 09/05/2001 6:54 PM
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 smile smile

what a nice bonus !

Overflow !
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/05/2001 7:45 PM
overflow - heh email notification shouldnt be changed with this hack, but if its workin, hey thats cool smile
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.
Posted By: overflow Re: [6.0x] UbbIntegratedPoll v1.8 - 09/06/2001 3:00 AM
thankyou smile
Posted By: overflow Re: [6.0x] UbbIntegratedPoll v1.8 - 09/26/2001 5:03 AM
Quote
quote:
jordo i get this message when i try to rebuilt the search index in the cp after using your hack....
i also use the sticky tread with it.

is that the problem?
everything else work great !

Overflow
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/26/2001 9:24 PM
overflow - look in one of your forum directories. do you see any files that end in .cgi that dont begin with a long number?
Posted By: overflow Re: [6.0x] UbbIntegratedPoll v1.8 - 09/27/2001 4:35 PM
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 smile

Thank you

Overflow
Posted By: VV Re: [6.0x] UbbIntegratedPoll v1.8 - 09/27/2001 11:03 PM
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

the board is www.votervoices.com
The Poll is at
http://www.votervoices.com/cgi-bin/ultimatebb.cgi?ubb=forum&f=1

Thanks in advance cool
Posted By: VV Re: [6.0x] UbbIntegratedPoll v1.8 - 09/28/2001 12:27 AM
Allen, Jordo, anyone? I did it again, I did another hack, Stand alone poll UBBPolls::v6Beta3

Well this one installed without a hitch(I think)
Found the settings in CP set a poll (well 2) and this is what I got..
http://www.votervoices.com/cgi-bin/ubb_poll.cgi

Am I thick? frown or did I just miss something.. Please help. laugh

VV
P.S. I think I should have put this one under a different thread.. sorry.. they are kinda related. laugh

[ 09-27-2001: Message edited by: VV ]
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 09/28/2001 10:29 PM
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.
Posted By: VV Re: [6.0x] UbbIntegratedPoll v1.8 - 10/01/2001 6:33 PM
Quote
quote:
Thanks Jordo: will check.
VV
Posted By: VV Re: [6.0x] UbbIntegratedPoll v1.8 - 10/02/2001 6:28 AM
Thanks Jordo.. My goof.. its works.. sweet

VV
Posted By: AllenAyres Re: [6.0x] UbbIntegratedPoll v1.8 - 10/12/2001 11:44 PM
Anyone got a working link to this? It appears Jordo's site is down.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 10/13/2001 1:51 AM
Quote
quote:
damn ghetto site. hehe grab it here till the main one is back up, or untill i redirect the domain.
http://temp.jordodesigns.com/UbbIntegratedPoll.zip
Posted By: AllenAyres Re: [6.0x] UbbIntegratedPoll v1.8 - 10/13/2001 2:15 AM
Thanks Jordo, much appreciated smile
Posted By: Lord Dexter Re: [6.0x] UbbIntegratedPoll v1.8 - 10/13/2001 5:14 AM
Just installed the hack, Works perfectly. Nice hack jordo. smile
Posted By: Paulus Magnus Re: [6.0x] UbbIntegratedPoll v1.8 - 10/15/2001 8:05 PM
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?
Posted By: LK Re: [6.0x] UbbIntegratedPoll v1.8 - 10/15/2001 8:42 PM
You didn't miss anything, just some tags are missing. In public_poll_display.pl and ubb_poll_lib.cgi make sure there are FONT tags before the text.
Posted By: ksanuk Re: [6.0x] UbbIntegratedPoll v1.8 - 10/20/2001 5:09 PM
Hi,

First of all thanks for the mod, both I and my members really enjoy it.

Unfortunately I have come across a bug. When a user votes who has a ' (single quote) in his loginname, the poll dies.

See ya, Marcel
Posted By: TorN Re: [6.0x] UbbIntegratedPoll v1.8 - 10/20/2001 8:37 PM
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..
Posted By: CtrlAltDel Re: [6.0x] UbbIntegratedPoll v1.8 - 10/30/2001 12:00 PM
i was looking to update my version of this

jordo did you not pay your bill? 'cause your site isnt working
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 10/30/2001 2:56 PM
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.

Is it possible?

I am running 6.04d
Posted By: Asprin Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 3:21 PM
jordo

Slight problem with 1.8 running on UBB 6.04f.

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?

Thanks..

[ 10-31-2001: Message edited by: Asprin ]
Posted By: Asprin Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 4:07 PM
jordo

In the # show poll? section in UBB_NEW_TOPIC.CGI, could I merely put..

Quote
quote:
.. around the Poll code to prevent this problem?

Thanks..

[ 10-31-2001: Message edited by: Asprin ]
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 8:14 PM
smile no probs sofar...
Posted By: Asprin Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 8:21 PM
Quote
quote:
Sorry. But, is your post in reference to the unregistered user problem that I posted.. and it's possible solution?
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 8:39 PM
no sorry, i have no idea about the problems your encountering, i just installed the hack, and myself haven't had any problems yet.

tho i have a question: how do i change the font size of the poll? My poll font sets the font size to 3...i want it to be 1. where do i change this?
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 10/31/2001 11:45 PM
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.
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 11/01/2001 10:22 AM
Thx Jordo smile Great hack still, keep it up.
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 11/01/2001 11:01 AM
[Linked Image]

as you can see i managed to change the view results and the edit poll fonts (not so hard smile ), 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.
Posted By: Asprin Re: [6.0x] UbbIntegratedPoll v1.8 - 11/01/2001 4:31 PM
jordo

Quote
quote:
OK, thanks. In the end I added "&& ($username ne '')" to the first 2 IFs.

Great hack, thanks. smile
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 11/03/2001 10:52 AM
Quote
quote:
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/03/2001 11:17 AM
Has anyone got an answer to my question above in regards to hiding the poll results?
Posted By: Bazz Re: [6.0x] UbbIntegratedPoll v1.8 - 11/03/2001 11:30 AM
it's not in the hack yet, but i think its a good idea!
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/05/2001 5:57 AM
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.
Posted By: PrimeTime Re: [6.0x] UbbIntegratedPoll v1.8 - 11/13/2001 4:19 AM
HI

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. laugh

THANKS
PrimeTime
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 11/13/2001 7:06 AM
Quote
quote:
each member may vote once... thats the only verification it has.
Posted By: PrimeTime Re: [6.0x] UbbIntegratedPoll v1.8 - 11/13/2001 10:10 AM
HI!

Thks jordo for that update. I'll certainly try it and let you know how it goes.

THANKS
PrimeTime
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/13/2001 2:15 PM
Hiya, any word yet on having a selection so that you can hide poll results? See my previous 3 posts.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 11/13/2001 10:24 PM
Quote
quote:
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.
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/14/2001 12:41 PM
Sorry Jordo, must have mssed the fact that you can hide the results in the edit poll section.

Next question, how do I get the damn thing back? It now shows that the poll is unavailable for viewing, but I can't see how to re-show it.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 11/15/2001 12:26 AM
Quote
quote:
edit it again and youll see the "hide results?" checkbox is checked... uncheck it and submit.
Posted By: EpiK-X Re: [6.0x] UbbIntegratedPoll v1.8 - 11/15/2001 1:13 AM
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"
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 11/15/2001 3:56 AM
Quote
quote:
admins should always be able to view the poll, even if the results are hidden...
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/15/2001 4:22 AM
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.
Posted By: Moderator Re: [6.0x] UbbIntegratedPoll v1.8 - 11/16/2001 3:51 AM
Can a check be put in that makes sure that user with no posting rights cannot cast a vote?
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/17/2001 5:07 PM
I would like a response to why I can't change the view poll results now? Any one with any ideas?
Posted By: Wacko Re: [6.0x] UbbIntegratedPoll v1.8 - 11/30/2001 1:17 PM
AAHH, this is frustrating. My polls are gone, and I cant bring the ones I hid the results for back. ANYONE?????
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 11/30/2001 11:55 PM
Quote
quote:
a URL would help.
Posted By: KatPhish Re: [6.0x] UbbIntegratedPoll v1.8 - 12/23/2001 8:59 AM
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...

[ 12-23-2001 01:01 AM: Message edited by: KatPhish ]
Posted By: Zarzal Re: [6.0x] UbbIntegratedPoll v1.8 - 12/28/2001 11:49 PM
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 ?
Posted By: Lord Dexter Re: [6.0x] UbbIntegratedPoll v1.8 - 12/29/2001 1:54 AM
There are many Poll scripts out there for HTML pages so I suggest you use them...
Posted By: Sigve Re: [6.0x] UbbIntegratedPoll v1.8 - 03/02/2002 2:19 AM
After I installed the poll, the admin functions dident work. Like sticky threads, move, deleted and close. And I forgot to backup the files frown
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.

I get that error all the time.
Posted By: jordo Re: [6.0x] UbbIntegratedPoll v1.8 - 03/02/2002 3:37 AM
Sigve - version? url?
Posted By: Sigve Re: [6.0x] UbbIntegratedPoll v1.8 - 03/02/2002 4:27 AM
I dont think you guys would like the content of the website, so I keep it private tipsy It`s not warez or any illegal stuff. but..hehe

I`m running 6.04c..I got 6.2, but I dont want to lose all the nice hacks I installed frown
Man. My cp is not a dropdown menu. The poll think is at the tp corner instead of at micelanuis. Please tell me how I can fix this.
© UBB.Developers