changes member links in comments work properly. polls can now have their results hidden from non-admins/mods from the edit poll page. CP interface, including individual forum control over where polls can be posted (the type of name to show on comments isnt functional yet). other misc bugfixes/codefixes.
to upgrade from v1.5 rehack ubb_new_topic.cgi delete previous additions to cp_lib.cgi, and rehack delete additions to cp_vars_display.pl rehack cp_users.cgi hack cp.cgi hack cp_common.pl upload ubb_poll_lib.cgi and public_edit_poll.pl, overwriting the old ones. upload vars_poll.cgi and cp_vars_poll.pl i would recommend uninstalling from the old directions and reinstalling from the new, just to be careful
kaukagaul - im not able to replicate that problem, it works just fine on my test board. and im 99.99% sure that nothing modified in this hack could be affecting the way the threads are sorted/listed in the forum view...so see what other hacks you have that could be conflicting. ?
I just installed 1.6 Looks like theres a few bugs.
The links on comments to members profiles is still broke, you need to add the get_profile&u= to the sting in the public_poll_display.pl template.
most importantly, Members can multiuple vote, and after a vote is made, it goes back to the choice page instead of the graph. If you have hidden results, it does not go back to a page that says you have voted already like in 1.5
seems the zipfile decided it wanted to keep the old files instead of adding the new ones when i added them to the zip. its fixed now, reupload ubb_poll_lib.cgi and public_poll_display.pl, sorry bout that (damn zip, heh).
I am getting this error below. Undefined subroutine &main::GetOrPost called at ubb_new_topic.cgi line 136. What in the world would cause this neat error....lol I have checked the script 3 times now and all is fine as it was typed. What now? I did the below and double checked it even. ###============================== in ubb_new_topic.cgi ###==============================
###########find:
# show signature? if (($vars_display{AllowSignature} eq 'YES') && ($username ne '')) { $show_sig = qq( $vars_wordlets{show_signature}); }
########### add this before:
# show poll? require "$vars_config{VariablesPath}/vars_poll.cgi"; if ($vars_poll{UbbPoll} eq 'Admin') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; } }
if ($vars_poll{UbbPoll} eq 'individ_user_level') { # user must be an admin or mod #verify cookie id @user_profile = &verify_id_num($username, $password, $user_number);
# make sure user is an admin or moderator of this forum my $is_one = &is_admin_or_mod($in{f}, @user_profile);
# get user perms ($j, $perms) = split(/&/, $user_profile[4]); if ($perms =~ /p/) { $is_one = "true"; }
if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }
} if ($vars_poll{UbbPoll} eq 'All') { $show_poll = 'yes'; } my $this_forum = "forum_$in{f}"; if ($vars_poll{$this_forum} eq 'no') { $show_poll = 'no'; } if (($vars_poll{UbbPoll} ne 'None') && ($show_poll eq 'yes')) { $show_poll_add = qq(  Poll: Check to Create a Poll With Topic     Number of Poll Options:
# perform disk space test: # this is in case disk quota is exceeded, to limit damage--
############ add this before:
# add poll if there is one if ($in{Poll} ne '') { for ($i=0; $i<$in{Poll_total_options}; $i++) { $this_option = "option_$i"; if ($in{$this_option} =~ /'/) { &StandardHTML('Poll options may not contain a ' (apostrophe).'); } if ($in{$this_option} eq '') { &StandardHTML('You did not fill out all options.'); } if ($i == 0) { $poll_options = $in{$this_option}; } else { $poll_options .= "|!!|$in{$this_option}"; } } require "$vars_config{CGIPath}/ubb_poll_lib.cgi"; &new_poll_thread($exact_path, $new_topic_number, $in{question}, $poll_options); }
One minor suggestion when naming the zip files: instead of calling it UbbIntegratedPoll.zip somehow differentiate release; such as, UbbIntegratedPoll 1.6.zip
Another minor suggestion - in the text file , change "and in the control panel, there will be a new option for Poll Settings." to read and in the control panel, there will be a new option for Poll Settings under the Primary Settings menu.
That last bit is a nice touch although the default settings (either to allow or not allow polls) were inconsistant - some forums allowed polls and others didn't.
I have 6.04f and I think I found the problem....maybe not?? Look here..... ###============================== in public_forum_page.pl ###==============================
Maybe this could be a problem.......I donno. I have tried it twice now "scripting" and it works fine until I try to add new topic and the poll. Any ideas? Looks great and I love it! Just got to get past the hitch...lol
jokerz - this is very strange, as that sub call is unrelated to this hack, and if it isnt working there but is working elsewhere (cause you would not be able to do much on the board if the sub didnt work anywhere). i tested the hack on a 6.04f and it worked fine, so im not sure whats up, but i would suggest trying this:
I tried that and OMG I got this...... Can't locate help me/ubbubb_lib.cgi in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at hopeless for me/ubb/ubb_new_topic.cgi line 137. Maybe I have too many hacks....lol Wow what errors.............
============================================= It just links to the cgi files. q!/home/WWW10/name.com/cgi-bin/name/ubb!, Its linked right here. I guess its just too many hacks installed....bah.
Ok you may remember that before v1.5 made it to UBBDev I mentioned a formatting problem with the poll and now I've taken a screenshot. This is under IE5.5 and the latest v1.6 code:
As you can see the top right of the poll has UBB6's (grey) default background colour. I can see the problem in the polls formatting file, but it's not as easy to fix as you might think. You can add an extra TD and BG that, but then it throws the formatting off.
Also on the screen where you type the poll options/names (after 'Post New Topic Screen'), I noticed the formatting wasn't in-tune with the default set by users for their UBB. It extends outwards a little.
Otherwise a good survey system, you just need to fix the long-standing format bugs.
The only problem I am seeing is that the login name is being used with the comments even though I made the public name selection in the cp. I'll muddle through and fix it later
Allow anyone to post polls. Allow Nobody to post polls (off). Allow only Admins and Mods to post polls. Allow only selected users to post polls (admins and mods too).
So you can allow 'anyone' (Members/Non-Members), Nobody (Polls off), Admins & Mods or selected users + Admins & Mods.
So how do you set the system to allow Forum Members, but not unregistered members?
Hello jordo Has there been any progress in that little peace of code to make us choose the Public Displayed Name in the comments instead of login name?
ill be updating this hack for 6.1 as soon as the beta is out this week, so ill add in the public name functionality (right now it was just put in for future use, it doesnt actually do anything to set it in the cp). so as soon as the 6.1 beta is out, expect an update.
OK...but I guess that can be a "different" hack in some way due to the new code in 6.1.
Will you not be fixing the code so the hack work properly for those who choose to stay with 6.0X. I guess many of us that has installed the hack will choose to stay with 6.0X for a while...and not forgetting those who not will be upgrading at all for different reasons. It would be nice to have a finished hack working on 6.0X.
Do I have to make a Poll, so you can see how many people begging you to fix that public displayd name thingy for 6.0X?
Now when I look at my .poll files in a text editor, the choice_total value is always one less than the actual number of choices. Is this right? Anyway, I tried to fix that, cleared my cache and it still displays an error.
Ravenous52 - download the zip, and reupload the file: ubb_poll_lib.cgi, overwriting the old. then in the .poll file that is causeing the problem, take out the apostrophe in the middle of the first line (not either of the ones on the "ends" of the right side). it was yet another check for apostrophes i missed, and something that will be fixed in the next version (ie: apostrophes will be allowed and handled properly, not just blocked).
To bad seeing this thread moving far down the threadlist. This last fix for Public Displayed Name is a 100 times better to wait for than a buch of those 6.1 betas stopping every 6.0x activity.
So we have to give this one a little bump to get it up in the sun again, and maybe that can help a little to get jordo in good mood to make that little fix
As promised files updated with functionality for public/login name selection on comments. simply reupload ubb_poll_lib.cgi and public_poll_display.pl overwriting the old. and be sure to make your selection in the Poll CP as to which you want displayed. enjoy.
If you choose to hide the pollresults, guests are not able to open the thread/topic at all. If a guest try to read7open the topic, he gets an empty screen with this message "FYI, Sorry, we have no one registered with that name. Use your browser's back button to try again."
I think it would be better to let the guest see the topic and the polloptions, and provide him with a message and an option to log in, but not let anyone see the pollresults.
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.