Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
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 ?

Sponsored Links
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 ...

Sponsored Links
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;

}

Sponsored Links
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 ]

Page 3 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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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 20221218)