Phil, I replied to your email. ...But for those who would also like to remove the last column, here's how to do it:
----------------------------
in UBBPoll.pl, find (at the bottom of the page)
---------------------------------
close(OPTIONSREAD);
print qq~~;
if($colspan) { print qq~
| ~; }
#else { print qq~
| ~; }
print qq~~;
}
1;
----------------
Replace it with:
-----------------------
close(OPTIONSREAD);
print qq~~;
print qq~~;
}
1;
---------------------------
Next, find the line "
" in the same file and change COLSPAN=3 to COLSPAN=4. That should remove the extra column. Hope it works for you...
------------------ Thunderfall Civilization Fanatics' Center http://www.CivFanatics.com
Hi ya folks, Finally got this thing to work on an NT server. Well, sorta... From my previous posts, I haven't been able to get this to run because I was not getting the UBB Poll Setup Form to come up. So, I looked at the admin.cgi. I'm not a cgi/programmer but in looking at the code, I saw the condition The last line says that if $size is = 2, run the Setup Form. So, for kicks, I figured I'd just replace the line -s "Ultpoll.setup" with "2" I uploaded the file and called admin.cgi. Voila!!! the form came right up. After entering the necessary info, I clicked on the Setup button and the system said that it was completed successfully. I checked the data directory and found the members.cgi. Next, I tried to add a poll but couldn't. Clicking that Add Poll, Delete Poll, or any of the links gave me the Setup Form. Ooops, have to change the condition of $size. I restored it to -s "Ultpoll.setup", reuploaded the file, and I was able to access the rest of the UBB Poll links. BTW, I didn't have to do the tip that was suggested by Phillip at scriptkeeper of using FindBM. I followed Andy's directions in the install.txt file plus the tip he gave on page 2 I think about the change to the Ultpoll.setup file. Then did the "work around" to make the Setup Form appear. I hope this helps the other folks here trying to run this on an NT. Admittedly not the most elegant way to get it to work, but at least it runs. =) Thanks, Errol This message has been edited by errol on December 09, 2000 at 07:55 AM
I definately had to replace all ";id=" with "&id=" else it would not work. Strange, because on F2S (where a shadow version of my board is just for testing) it DID work. I think it has to do with the Perl version.
I have 2 other remarks:
1.) Why are we not allowed to change the poll files in the map 'data'? I hate it! I lost total control over these files, I don't have the permissions to do anything with them.
2.) The poll rounds all numbers down. (don't know if this is correct English, so example: 14,9% becomes 14% and 53,9% becomes 53%. When You have a lot of answers and you add all percentages you wind up losing 6% of the result! Can this be changed?
Best regards,
CT.
(Grrrrrrr...... I demand a recount!)
This message has been edited by CT on December 09, 2000 at 05:40 AM
hehe on your english.. you were close, but hell.. ive heard people whos english is much much much worse.. and english is their native language!!!! should read like 58.9% in case you wanted to know. As for your 2nd remark... Im not a perl programmer.. i work with C/C++ so its close enough... The way it sounds, the poll doesnt have floating poit support. Its probably only using integers (whole numbers between -32k to 32k if memory serves) I may be wrong, but thats what im thinking.. If precision is what you want, them bug atom to include FP support I havent had a chance to install this yet.. but im hoping i wont run across all the problems everyone else has ------------------ Ideas in motion remain in motion Vertigo, it just wont stop LA out
Using ; is supposed to be the standard now, however it could be that some web servers have difficulty with it (if it hasn't been implemented). It shouldn't have anything to do with Perl versions, though I could be wrong. --mark
I'm either very tired or I burned out too many brain cells as a youth. I've tried this install on my UBB (5.47b) and can not get it to work at all. I just get the standard 500 Internal Server Error. I created a directory in my cgi-bin (ubbpoll Chmod777) and created a data directory within that (data chmod777) I uploaded the 4 files into the ubbpoll dir. in ascii, and chmoded IAW the instructions. (perl path is correct, ubb cgi path is correct, and I tried functions.pl flock yes and no) I'm running on a Unix box. This seems like such a simple hack to install, yet here I am??? Thanks for any and all help. ---Will--- http://www.huntingpa.com/cgi-bin/ubbcgi/Ultimate.cgi http://www.huntingpa.com/cgi-bin/ubbpoll/admin.cgi
Hi, there is a bug in the code. when someone use || in the comment, the comment are not show correctly. Sorry for my english Can someone fix the bug?
Atom911, I've installed mods and hacks in the past, but this one is driving me nuts. I keep getting the error "Premature end of script headers: /home/usr84/cgi-bin/ubbpoll/admin.cgi" when I try to run admin.cgi for the first time. Any help would be greatly appreciated. I'd love to get rid of the other cgi polls I have on my site.
UBB'er for life!! (look 2 post up to see the steps I performed) I'm running perl 5.00404
This message has been edited by WillSmith on December 31, 2000 at 02:27 PM
im havign the EACT same problem as will smith
ive noticed 1 thing the file size of admin.cgi is 22kb when i upload in acsii its 21kb on the server.
when i upload in binary its 22kb on the server.
but of coruse it wont work in binary.
ive been tryignt o figure this out for the past 2 hours.
please god help
Worked first time for me !! Don't know what all the problems are ! Just a few questions : 1) Any way to make the votes private ? i.e. so you can't see who voted what! 2) How do I move it to below my private message inbox / online users. Tried to move the code down , but just got text printed instead of the graphics ? 3) Any chance of making the whole graphics that bit smaller ?? Put username / vote etc in a horizontal line and have a popup with the result graphs on it !! Just a thought ! thx , Great Hack
Statix, The file size difference you refered to is normal. The whole file is there. I still haven't been able to get this to work in 5.47b. Guess I'll wait for 6.0 and try again. ------------------ William Smith HuntingPA
something i thought i'd mention...
when registering an admin for the polls do not use carrets (^) in the user name. It seems regexps and carrets dont mix!
when i tried it it wouldn't accept my user at all, i ended up manually removing the carret from the poll users list.
Noticed when you turn off the moderator col. , you get a very fat border running up the right hand side of the forums !! Can anyone fix this , I think it is porbably to do with this piece of code in UBBPoll.pl thx
running into this same problem have followed this thread and havent been able to make it work i see the final fix you posted but that didnt work for me also tried to hand edit the setup file no luck there either, tried the admin edit to 2 also no go running nt here also
Hmm well I to em having a problem with this hack.. I mean by the looks of it, it seems like the easiest hack... I wanna know which of the add on files do I have to change to get it to actually work... Also the code in Ultimate.cgi what do I put in for the path.. I tried CGIURL this ubb that.. Still no luck!!! Unfortunately I'm about to watch another of WCW's flop PPV's and I hope to get this hack to work tonight. Cause it's a nice ass hack..
Anyway of making the hack options accessible through the control pannel.. Like adding new hacks through there and changing them and so on???
Ok I got it to show up on Ultimate.cgi. But now I can't get admin.cgi to open in my browser, and when I click on Vote, View Comments, All Polls. It says URL not found on this server...
I just need to know what to do to the add ons. The instructions weren't to clear on that.. According to them I did everything.. Can someone please please tell me which of the add on files, like admin.cgi, poll.cgi or UBBPoll.pl, Functions.pl and UltPoll.setup which of them do I have to add something or change..
Cause I tried playing with the poll.cgi?action= line by putting $CGIURL in front of those and all that... Maybe if someone can paste which their copy of which add on needs to be changed I can do it... Most likely no one will ever reply to this... But if so........ I NEEEED YA HELP DESPERATELY!!!
Having problems with this one as well. I've seen it work elsewhere and it's really nice. My problems are almost identical to errol's (also on NT server). Once I submit my first poll, I just get a blank screen and nothing else. Any help appreciated. This message has been edited by lucas on January 16, 2001 at 09:32 PM
I'm having the exact same problem with my NT-based install of the Poll. I get the 'Add poll' form to come up, but after filling in the forms and pressing 'submit', i get a blank page...and nothing else.
If I then try to 'Open' poll, it says it cannot find 'polls.info.' It can't find it because it is not there.
-Really- wracking my brain here and any help would be appreciated.
Hi ]km[,
You may want to read through my "work around" on page 3 of this thread. Sounds like you are getting the same screens I was getting before. Hope it works for you.
Thanks, Errol
hmmm I sure that I made all right but it doesn't work..In the functions.pl I must add the absoulute path or??? that is the only thing I dont now..........If I run the admin.cgi I get an error!! but I dont now why, must I add a other path anywhere??
thx for help, if you can!!!
da fRiEk2o0o
sorry for my bad english
Is there a way to see which user vote for which option?
I can see that from VIEW COMMENTS only those who type in comments will be shown. Or maybe i could just put a DEFAULT dash - in the comments so that all the vote will be submitted with a comment.
aaron
This message has been edited by aaronx88 on January 22, 2001 at 01:40 PM
Hi, I tried to install this on a UBB that i am apart of, and at first things didnt work(i got the "cant find file" error), but i fixed that. So, then I tried to open the admin.cgi file in my browser. When i did this, nothing appeared on the screen. i tried it many times, and no success. i have all the permissions set to what it said in the install, but nothing works.
can anyone help me?
I'm on a Win 2K box and I have that same...
"The members.cgi file could not be opened because No such file or directory." problem after trying to create a poll.
The file DOES exist in the data directory!
What's the fix?
This message has been edited by NBAustin on January 24, 2001 at 07:45 PM
Could having flock set as "yes" be causing the problem under Win 2K?
Where does the UBBPoll.pl file go? In the ubb directory or the poll directory I have gotten a bunch of hacks working but this one keeps giving me the error message Im using Unix
Would someone be kind enough to answer our questions?
There is a minor bug in the current code: In functions.pl Cheers, Bruce
I got the same error... am I missing a step?? Path to CGI in functions is set. any help would be great!
Sorry, I haven't been following this thread for a while now. This script, you are finding out, is very buggy, more so on NT sytems, not sure why. I could not get it to work on WIN2K at all... Andy admitted that it was buggy and dropped development on it.
I'll look through this thread and add the bug fixes that were found, but I can't promise it will be be able to work yet still...
Allen, Thanks man... I really appreciate it. No rush on this either... just something that I cant seem to figure out and integrating it into Ultimate I think is a really cool feature. Again thanks...
has the HMTL output of the poll been fixed? As I installed an older version on my board awhile ago, and when i wanted to modify it there were colspans and sloppy stuff everywhere. Have you worked on that?
I'm trying to implement UBBPoll also. I've got it working and even working with server side included on my front page page. Ok actually I had to take it back off because of the bad HTML formatting on the output.
Have you noticed the same thing? Have you gone through the script and fixed them? I was thinking about just adding some 's , | 's, or 's after the serverside include to fix the HTML output but that seems like adding a bandaid to slop to me.
It also seems that the tiny links after the Index listing aren't working. They want to look into the root directory of the web instead of the correct UBBPoll directory for the UBBPoll cgi's. I haven't decided whether I'm going to just throw my UBB cgi's into the root to make it all compatible or edit all the HREF's to include the UBBPoll URL variable. If you look in your poll.cgi and checkout the HREF's they all start
BTW, I mean absolutely NO disrespect to the author of this program. I just wish someone would go the extra yard and fine tune this script.
Your thoughts and ideas are appreciated.