Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
#137622 07/10/2001 11:05 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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 ]

Sponsored Links
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
That is very kewl. I like alot of the features! Good Job!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
lookeeng good jordo! nice work as usual smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 74
Member
Member
Offline
Joined: Mar 2001
Posts: 74
I think you forgot new Poll link

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
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?

Sponsored Links
Joined: May 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 13
The post new poll button is missing?

[ July 11, 2001 09:07 AM: Message edited by: Hyabusa ]

Joined: May 2001
Posts: 22
med Offline
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 22
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

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Sponsored Links
Joined: May 2001
Posts: 22
med Offline
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 22
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,

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jun 2001
Posts: 5
A-C Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 5
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
A-C - make sure you uploaded public_new_poll_form.pl to the Templates directory in ascii.

Joined: Jun 2001
Posts: 5
A-C Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 5
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.

Joined: Jun 2001
Posts: 70
Member
Member
Offline
Joined: Jun 2001
Posts: 70
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 ]

Joined: Feb 2001
Posts: 110
Member
Member
Offline
Joined: Feb 2001
Posts: 110
i was wondering if there was ever a post made about this hack! and i finally found it! VERY NICE! laugh

Joined: May 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 1
If I enable all users to post a poll, it disables it. Not even admins/mods can post a poll.

Joined: Jun 2001
Posts: 70
Member
Member
Offline
Joined: Jun 2001
Posts: 70
Quote
quote:
Same problem here [Linked Image]

[ July 12, 2001 05:46 AM: Message edited by: gaulalauk ]

Joined: Feb 2001
Posts: 110
Member
Member
Offline
Joined: Feb 2001
Posts: 110
is there an SSI feature for the poll?? would be nice to have one.. smile

Joined: Jun 2001
Posts: 5
A-C Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 5
Is it normal that it's crashing everytime someone enteres a ' ?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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?

Joined: Jun 2001
Posts: 5
A-C Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 5
Yea in the comment heh smile

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Jun 2001
Posts: 5
A-C Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 5
Ok thanx man, i'll try!

Joined: Jun 2001
Posts: 70
Member
Member
Offline
Joined: Jun 2001
Posts: 70
jordo

dont stress it, take your time man laugh

Joined: Jul 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 6
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jul 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 6
Thanks a lot Jordo, Jordo Designs rock!

Joined: Feb 2001
Posts: 251
Member
Member
Offline
Joined: Feb 2001
Posts: 251
OK The poll worked, like 5 people voted and now I get this error when I want to view the poll:
Code
code:

Joined: Jul 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 6
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?

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jul 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 6
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.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
instructions updated with a fix for the previous/next topic buttons. rehack ubb_get_topic.cgi.

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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?

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
hmm..strange, course if I post a topic without a poll, it goes to the top as usual.
[Linked Image]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
was this happening before or has it just started happening??

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Quote
quote:
It happened exactly after I upgraded due to your instructions here laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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. ?

Joined: Feb 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 8
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


-Dan
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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).

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
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:

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
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);
}

Joined: Jul 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 7
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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...

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
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 ]

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Quote
quote:
Yes, this is fixed, it was myself doing some bad hacking, everything works fine now. laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
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.............

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
ummm, in vars_config.cgi, what does it say after: CGIPath => ??

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
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.

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
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

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
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.

Joined: Aug 2000
Posts: 594
Member
Member
Offline
Joined: Aug 2000
Posts: 594
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


jeremiah
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
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?

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Jordo,

What about the format bug I mentioned?

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Come on Jordo, reply =). Don't just ignore it.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: May 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 8
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 ]

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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).

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Jordo,

Sweet.. yeah that sorted the format bug, which is the last complaint I have about this hack. It's now perfecto..

Joined: Sep 2000
Posts: 441
Member
Member
Offline
Joined: Sep 2000
Posts: 441
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

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Huge changes since v6.01, suggest you ramp up to at least v6.04 or v6.05.

Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
I'm using UbbIntegratedPoll v1.3 over 6.05 what will happened if i update to 6.1 bp1?
confused


Nervana
Cairo, Egypt
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
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?


Nervana
Cairo, Egypt
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
dont worry im not gonna change the data files, so old polls will still work. smile

Joined: Jul 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 22
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
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.

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
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 ?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
TX laugh

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
u have ???

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
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 ...

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
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?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
I rechecked everything!
Here's what I get in the cp:
[Linked Image]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Mewtwo - in cp_lib.cgi, check to make sure the line you added after } #end set_vars_misc is added correctly.

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
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;

}

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
it works - only in the comments are the usernames normal. (include "´" ..) ???

2) and i can´t edit the comments - if make a update ....

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
can't anyone help me?

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
cp works now, but when I click the New Topic button it shows a blank page.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
thanks jordo. I had uploaded it in the wrong dir.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Aug 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 16
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 ]


somebody please find my stapler.
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
u have edit ... confused

i´m still waiting ...

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
BUG !!!

public name in CP 4 votes - do NOT work !!!

Joined: Aug 2001
Posts: 43
Member
Member
Offline
Joined: Aug 2001
Posts: 43
Quote
quote:
I noticed he left it out. I uploaded it. But to the wrong dir. laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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...

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
ERROR !!!
print this: q~choice_0~ => q~aaaaaaaq~choice_1~ => q~sssssss

this part don´t work right in ubb 6.01
Code
code:

Joined: Apr 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 14
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...

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Apr 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 14
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..

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
i am getting these two errors

Code
code:

can someone please give me some assistance as to what i could possible do

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
UBBRULES - did you just recently (past 3 or 4 days) download and install it, or did you download the zip before then?

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
awhile ago

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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.

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Quote
quote:
They didn't show up in IE or NS...just Opera.

Great hack by the way!

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Quote
quote:
yep fixed in the zip. just reupload public_poll_display.pl smile

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
Thank you very much for all your help,

It now works thanx to your intelligence hope you keep up the good work...

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
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 ]

Joined: Aug 2001
Posts: 31
Member
Member
Offline
Joined: Aug 2001
Posts: 31
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 ]

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
hey i have another error that has caused my forum's polls to cease working
it is
Code
code:

Joined: Jul 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 16
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?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
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

Joined: Aug 2001
Posts: 31
Member
Member
Offline
Joined: Aug 2001
Posts: 31
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

Joined: Apr 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 15
all right cool maybe something with using member #s instead of names would be nice

Joined: May 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 22
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

Joined: May 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 22
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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 !!

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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 !

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
thankyou smile

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
overflow - look in one of your forum directories. do you see any files that end in .cgi that dont begin with a long number?

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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

Joined: Sep 2001
Posts: 6
VV Offline
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 6
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

Joined: Sep 2001
Posts: 6
VV Offline
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 6
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Sep 2001
Posts: 6
VV Offline
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 6
Quote
quote:
Thanks Jordo: will check.
VV

Joined: Sep 2001
Posts: 6
VV Offline
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 6
Thanks Jordo.. My goof.. its works.. sweet

VV

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Anyone got a working link to this? It appears Jordo's site is down.


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Thanks Jordo, much appreciated smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Just installed the hack, Works perfectly. Nice hack jordo. smile

Joined: Oct 2001
Posts: 114
Content Kidman
Content Kidman
Offline
Joined: Oct 2001
Posts: 114
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?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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.

Joined: Feb 2002
Posts: 295
Member
Member
Offline
Joined: Feb 2002
Posts: 295
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

Joined: Jun 2001
Posts: 56
Member
Member
Offline
Joined: Jun 2001
Posts: 56
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..

Joined: Jun 2000
Posts: 150
Member
Member
Offline
Joined: Jun 2000
Posts: 150
i was looking to update my version of this

jordo did you not pay your bill? 'cause your site isnt working

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
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


He who blinks first shall die a painful death.
Joined: Oct 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 4
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 ]

Joined: Oct 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 4
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 ]

Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
smile no probs sofar...

Joined: Oct 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 4
Quote
quote:
Sorry. But, is your post in reference to the unregistered user problem that I posted.. and it's possible solution?

Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
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?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
Thx Jordo smile Great hack still, keep it up.

Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
[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.

Joined: Oct 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 4
jordo

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

Great hack, thanks. smile

Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
Quote
quote:

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
Has anyone got an answer to my question above in regards to hiding the poll results?


He who blinks first shall die a painful death.
Joined: Aug 2001
Posts: 53
Member
Member
Offline
Joined: Aug 2001
Posts: 53
it's not in the hack yet, but i think its a good idea!

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
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.


He who blinks first shall die a painful death.
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Quote
quote:
each member may vote once... thats the only verification it has.

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
HI!

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

THANKS
PrimeTime

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
Hiya, any word yet on having a selection so that you can hide poll results? See my previous 3 posts.


He who blinks first shall die a painful death.
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
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.


He who blinks first shall die a painful death.
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Quote
quote:
edit it again and youll see the "hide results?" checkbox is checked... uncheck it and submit.

Joined: Nov 2001
Posts: 10
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 10
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"

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Quote
quote:
admins should always be able to view the poll, even if the results are hidden...

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
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.


He who blinks first shall die a painful death.
Joined: Apr 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 8
Can a check be put in that makes sure that user with no posting rights cannot cast a vote?

Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
I would like a response to why I can't change the view poll results now? Any one with any ideas?


He who blinks first shall die a painful death.
Joined: Nov 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 8
AAHH, this is frustrating. My polls are gone, and I cant bring the ones I hid the results for back. ANYONE?????


He who blinks first shall die a painful death.
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Quote
quote:
a URL would help.

Joined: Dec 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Dec 2001
Posts: 2
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 ]

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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 ?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
There are many Poll scripts out there for HTML pages so I suggest you use them...

Joined: Oct 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 19
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.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Sigve - version? url?

Joined: Oct 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 19
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

Joined: Jun 2002
Posts: 99
Member
Member
Offline
Joined: Jun 2002
Posts: 99
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.

Page 1 of 5 1 2 3 4 5

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)