|
Joined: Feb 2001
Posts: 497
Enthusiast
|
Enthusiast
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
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. i should have time later today or tomorrow to do that.
|
|
|
|
Joined: Feb 2001
Posts: 497
Enthusiast
|
Enthusiast
Joined: Feb 2001
Posts: 497 |
TX 
|
|
|
|
Joined: Feb 2001
Posts: 497
Enthusiast
|
Enthusiast
Joined: Feb 2001
Posts: 497 |
|
|
|
|
Joined: Feb 2001
Posts: 497
Enthusiast
|
Enthusiast
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
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
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
Joined: Aug 2001
Posts: 43 |
I rechecked everything! Here's what I get in the cp: ![[Linked Image]](http://www.pogimon.f2s.com/poll.jpg)
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
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
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
Joined: Aug 2001
Posts: 43 |
|
|
|
|
Joined: Aug 2001
Posts: 43
Member
|
Member
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
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
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
|
|
|
|
Joined: Aug 2001
Posts: 16
Junior Member
|
Junior Member
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
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
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
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
Joined: Feb 2001
Posts: 497 |
u have edit ... i´m still waiting ...
|
|
|
|
Joined: Feb 2001
Posts: 497
Enthusiast
|
Enthusiast
Joined: Feb 2001
Posts: 497 |
BUG !!!
public name in CP 4 votes - do NOT work !!!
|
|
|
|
Joined: Aug 2001
Posts: 43
Member
|
Member
Joined: Aug 2001
Posts: 43 |
I noticed he left it out. I uploaded it. But to the wrong dir. 
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
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
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
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
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.. Thanx again..
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
Joined: Apr 2001
Posts: 15 |
i am getting these two errors can someone please give me some assistance as to what i could possible do
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
Joined: Apr 2001
Posts: 15 |
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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
Joined: Apr 2001
Posts: 15 |
no i have not touched the nbsp's 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 Thank you very much for your hastily quick assistance
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
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
Joined: Jun 2001
Posts: 2,849 |
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
Joined: Aug 2000
Posts: 874 |
yep fixed in the zip. just reupload public_poll_display.pl 
|
|
|
|
Joined: Apr 2001
Posts: 15
Junior Member
|
Junior Member
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
Joined: Mar 2001
Posts: 644 |
Another excellent hack Jordo! Works like a charm on my site. Keep up the great work. Chris [ September 02, 2001: Message edited by: Chris ]
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|