UBB.Dev
Posted By: The Team UBBPoll v2.1b - 11/26/2000 1:35 AM
Name: UBBPoll v2.1b

Description: This is a stand-alone poll script that utilizes the UBB members structure and the styles. A user must be registered on your UBB in order to vote in the poll. A slick administration utility is also included with the script allowing for opening and closing of polls, adding and deleting of polls, and adding and deleting if users.

Author: Andy Tomaka

Compatibility: This hack should work with all licensed versions of the UBB. NT Compatibility fixed by MasterMind.

Link: https://www.ubbdev.com/hacks/UbbPoll21b_eng.zip
Posted By: Dark Templar Re: UBBPoll v2.1b - 11/26/2000 2:35 AM
2.0z? (read title [Linked Image])

------------------
Posted By: The Team Re: UBBPoll v2.1b - 11/26/2000 3:03 AM
My bad [Linked Image]

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Greg Hard Re: UBBPoll v2.1b - 11/26/2000 3:25 AM
Nice work Andy!
Works like a charm on my test board.

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind
Posted By: Sonoma Re: UBBPoll v2.1b - 11/26/2000 10:36 AM
Is it any diffrent from UBBPoll 1.3?
Like can you post Polls in topics now?
(That's what I want! hehe)
Posted By: MorphStar Re: UBBPoll v2.1b - 11/26/2000 3:39 PM
Quote
quote:
that's what we ALL want... [Linked Image]

------------------

SkinningWorld - GamerForums - ThaMorphMan - loadedClip
Posted By: The Team Re: UBBPoll v2.1b - 11/26/2000 8:27 PM
Nope, for the most part, it is the same as 1.3d feature-wise. However, the code is much cleaner, and the script should run faster than previously.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Greg Hard Re: UBBPoll v2.1b - 11/26/2000 9:01 PM
It really kicks andy. Fast, (safe) and i like the new Ultimate.cgi interface.

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind
Posted By: Vipermad Re: UBBPoll v2.1b - 11/27/2000 1:46 AM
I agree MM, but there is a need for some formatting changes if you have the "remove moderators for Ultimate.cgi" hack installed. Not a real big deal, and nothing against the Poll hack! Just 2 cents worth of what I've found. [Linked Image]

------------------
Tony (Vipermad) Rickard
Viper Club UBB Admin
Posted By: Greg Hard Re: UBBPoll v2.1b - 11/27/2000 1:52 AM
that can be fixed with a colspan change..

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind
Posted By: Vipermad Re: UBBPoll v2.1b - 11/27/2000 3:38 AM
Yeah, I'm doing that...I was just pointing out that there is a little work to do if you have the other hack installed. I think it is GREAT! I saw it on a site and immediately started the search! I have little time to get the formatting straightened out, but I hope to get it all set up this week.

You all do great work, so don't take this as a complaint...it wasn't! just info, nothing more, nothing less. [Linked Image]

------------------
Tony (Vipermad) Rickard
Viper Club UBB Admin
Posted By: Greg Hard Re: UBBPoll v2.1b - 11/27/2000 3:50 AM
Us ubb hackers take constructive critism and nothing less. That was better than that.

Thanks,
and expect an NT compatible version soon.

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind
Posted By: The Team Re: UBBPoll v2.1b - 11/27/2000 4:31 AM
2.0b released. Added a few lines that make the script NT compatible thanx to MasterMind.

To upgrade, simply fix the path on your admin.cgi and poll.cgi files if necessary, and re-upload them, nothing else to do!

The script doesn't acount for the user removing or adding extra columns, but only the two amount of columns that the stock UBB can have.

------------------
Da Wannabe Cannuck

:: Who is Andy?

This message has been edited by atom911 on November 26, 2000 at 08:35 PM
Posted By: Sukotto Re: UBBPoll v2.1b - 11/27/2000 6:54 PM
On NT whenever i try to create a poll it says "The user has no permissions" or something like that. I used the same user when i was setting it up.

Any ideas??

------------------
http://forums.pp-network.com
http://www.pp-network.com
Posted By: The Team Re: UBBPoll v2.1b - 11/27/2000 10:25 PM
Did you download the new version? I had to fix the UBBPoll.zip because it was corrupted so you could have. Try downloading again.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Tannerman Re: UBBPoll v2.1b - 11/27/2000 10:34 PM
Is there any way to modify it so that it doesn't require a register user to vote?
Posted By: The Team Re: UBBPoll v2.1b - 11/27/2000 10:50 PM
Yes, in sub do_vote, remove these lines:

Quote
quote:
Why would you wanna do that though? There are plenty of good polls out there.

Also realize that this gets rid of the double vote checking.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Ellen Re: UBBPoll v2.1b - 11/29/2000 12:32 AM
The hack worked perfectly for me, and the poll is working great. One problem though- both the background and text are set to default at white, so as a result you can't read the text! It's at http://www.roxydoll12.com/cgi-bin/poll.cgi
If you view the source you can see both are color #000000! Can you please tell me how to fix this?
Posted By: The Team Re: UBBPoll v2.1b - 11/29/2000 12:41 AM
Ellen -- Sorry about the color error. Seems I musta used an incorrect variable in the colors. I will change it to the one I need to use when I get a little bit of time.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: The Team Re: UBBPoll v2.1b - 11/29/2000 4:44 AM
Note that 2.0c has been released. This fixes the color errors. Let me know if ya find any more spots where the colors are incorrect.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Ellen Re: UBBPoll v2.1b - 11/30/2000 1:21 AM
I did use 2.c downloaded from the link above [Linked Image]
Posted By: spiffy Re: UBBPoll v2.1b - 12/01/2000 8:00 PM
After posting can I change the page it takes you to, to something other than poll.cgi???

Any help appreciated.
Posted By: AllenAyres Re: UBBPoll v2.1b - 12/01/2000 9:06 PM
Nice work... can this be SSI'd to a .shtml page?

------------------
Allen

- http://www.stand318.com
Posted By: The Team Re: UBBPoll v2.1b - 12/01/2000 11:27 PM
Quote
quote:
And what is the problem?

Quote
quote:
Not too dificult. Just find the end of the do_vote subroutine, and print the redirection code.

Quote
quote:
Not with the stock version, but it would take too much in the way of modification.




------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: errol Re: UBBPoll v2.1b - 12/02/2000 3:23 AM
Hi atom,

Tried to install the mod but ran into a problem.

After clicking the submit button in setting up the very first poll, I got the following:

"The members.cgi file could not be opened because No such file or directory."

I tried to add a user ... myself, but got the same error message.

I'm hoping I just missed a step.

Appreciate any help you can provide.

Thanks,
Errol

This message has been edited by errol on December 01, 2000 at 07:30 PM
Posted By: The Team Re: UBBPoll v2.1b - 12/02/2000 3:27 AM
errol -- Is the data path chmod'ed properly? is there a members.cgi file in it?

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: errol Re: UBBPoll v2.1b - 12/02/2000 3:57 AM
Hi,

Where do I get the members.cgi file? I don't have that file in any of the directories on my board.

I have my board on an NT which my host has setup to inherit whatever permissions are set for cgi-bin. So, when I created the ubbpoll within cgi-bin, I didn't do any permission steps. BTW, I only have ftp access to the server.

Also step 5 says

5) Create a data directory within that UBBPoll directory and set its chmod to 777.

I don't really know what this step is for. I simply create a directory called "data" within ubbpoll. Is that what step 5 meant?

Any help would be appreciated.

Thanks,
Errol

This message has been edited by errol on December 01, 2000 at 08:06 PM
Posted By: The Team Re: UBBPoll v2.1b - 12/02/2000 4:32 AM
Quote
quote:
It is setup when you setup the poll.

Quote
quote:
That may be a problem. I have heard some users can't get it to work on NT.

Quote
quote:
Yes, that is what it means. I thought it was pretty clear [Linked Image]


------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: The Team Re: UBBPoll v2.1b - 12/02/2000 4:36 AM
Version 2.1b has been released.

There are some coding fixes, some logical fixes, and a few other things. Consult upgrade.txt for upgrading.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: errol Re: UBBPoll v2.1b - 12/02/2000 9:10 PM
Hi Atom,

Installed V2.1b. Same results. =(

I noticed in the Admin.cgi that there is a form that you fill out to set up UBBPoll.

Code
code:

I don't get this at all on my screen when I open admin.cgi from my browser. I instead get the options for New Poll, Delete Poll, Close Poll, etc.

I think that is what I need correct to properly configure UBBPoll.

When I type in admin.cgi?=DoSetup, I just get the bottom nav text links.

Any ideas why the form is not coming up?

Thanks,
Errol
Posted By: The Team Re: UBBPoll v2.1b - 12/02/2000 9:19 PM
errol -- why would you be access DoSetup, you should never do that. I recomend you delete everything UBBPoll related and start over. thset up stuff should only be shown the first time and not every time.

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: errol Re: UBBPoll v2.1b - 12/02/2000 9:42 PM
Hi Atom,

Actually never seen the form, so I've never done it.

I'm puzzled why the form doesn't come up.

I went ahead and did a fresh install per your instructions.

Same results. =(
Form to do setup for the first time doesn't come up. I get the New Poll, Close Poll, etc.

If I can figure out how to get that form to come up, I should be good to go.

Thanks,
Errol
Posted By: The Team Re: UBBPoll v2.1b - 12/02/2000 11:15 PM
Open up UltPoll.setup and change it to this, replaceing with the proper information.

Quote
quote:
------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: The Team Re: UBBPoll v2.1b - 12/03/2000 8:07 PM
Not sure if you are doing anything wrong [Linked Image] I am not familiar with working on NT servers. Phillip over at Script Keeper said the problem comes because NT can't find the location of the UltPoll.setup file. To fix it, simply find $size = -s 'UltPoll.setup'; and replace it with $size = -s '/path/to/UltPoll.setup';

Hopefully, this will get ya through it [Linked Image]

Thread at scriptkeeper: http://www.scriptkeeper.com/ubb/Forum14/HTML/006583.html

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: errol Re: UBBPoll v2.1b - 12/03/2000 11:13 PM
Hi Andy,

The setup form still doesn't come up even with line replacement above.

I also tried Phillip's code replacement suggestion at scriptkeeper but still.. no form setup.

Oh well. I guess I'll shelf this for now until someone who has been able to make this work on an NT server comes up with the solution.

Thanks again Atom for all your help.

v/r,
Errol
Posted By: The Team Re: UBBPoll v2.1b - 12/03/2000 11:47 PM
Following Phillip's method completely and fully should result in proper setup...

------------------
Da Wannabe Cannuck

:: Who is Andy?
Posted By: Thunderfall Re: UBBPoll v2.1b - 12/04/2000 8:22 AM
hey Andy, thanks alot for creating the poll! I just installed it ot my forum...successfully. It looks great!!

Take a look:
http://forums.civfanatics.com

------------------
Thunderfall
Civilization Fanatics' Center
http://www.CivFanatics.com
Posted By: SpAwN Re: UBBPoll v2.1b - 12/04/2000 8:46 AM
Hi Andy,

The link is down http://www.ubbhackers.com/hacks.cgi?action=get&cat=6&id=71

I dot already a poll on my UBB in the leftmenu tables but i like to have one in my Ultimate.cgi
Thus if you post direct link to the hack i appreciate that

Thanks,

------------------

I got also UBB hacks database
Posted By: Thunderfall Re: UBBPoll v2.1b - 12/04/2000 8:54 AM
I can email the file to u if you want...

------------------
Thunderfall
Civilization Fanatics' Center
http://www.CivFanatics.com
Posted By: Bring In The Geek Re: UBBPoll v2.1b - 12/04/2000 7:20 PM
The link is down on ubbhackers.com. Can somebody please email me the file at [email protected]??? Please!!!!

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it.
Mr. Webb Network Services
MrWebb.Net UBB Hacks List
Posted By: Thunderfall Re: UBBPoll v2.1b - 12/04/2000 9:02 PM
mrwebb,

i've emailed the file to u. happy hacking. [Linked Image]

------------------
Thunderfall
Civilization Fanatics' Center
http://www.CivFanatics.com
Posted By: AgentX Re: UBBPoll v2.1b - 12/04/2000 9:29 PM
Can someone please send me a link to this program or email it to me? Thanks.

AgentX
Posted By: errol Re: UBBPoll v2.1b - 12/05/2000 12:26 AM
Hi ya folks,

If any of you get it to work on a NT, please let me know. I haven't been able to get it to work. =(

Thanks,
Errol

This message has been edited by errol on December 05, 2000 at 04:46 AM
Posted By: The Team Re: UBBPoll v2.1b - 12/05/2000 12:40 AM
Please do not post links to the file or email it. Simply wait till the file is back up...I like to track the popularity of the hack, so removing the link ASAP would be most appreciated.

------------------


:: Who is Andy?
Posted By: shawnkool Re: UBBPoll v2.1b - 12/05/2000 8:31 AM
Hi all i got this error when i access to admin.cgi
"Error including required file(s). The file(s) were: Can't locate /path/to/cgi-bin/ubbcgi/UltBB.setup in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at admin.cgi line 16"


how to solve the problem?

------------------
UBB hackers is great
Posted By: shawnkool Re: UBBPoll v2.1b - 12/05/2000 8:39 AM
Hi again.....actaully the instruction i dun get.......is it i must make a folder called "ubbpoll" and upload all the poll files into it or i directly upload where to Ulitimate.cgi files are in??

------------------
UBB hackers is great
Posted By: shawnkool Re: UBBPoll v2.1b - 12/05/2000 8:49 AM
"Poll Path
The absolute path to your current directory. Not URL."
What should i put inside??


"Data Path
The absolute path to the poll data directory. Not URL."
What should i insert???


my ubbcgi directory is /data1/hm/sgforum/cgi-bin/ubbcgi/



------------------
UBB hackers is great
Posted By: SpAwN Re: UBBPoll v2.1b - 12/05/2000 8:51 AM
Quote
quote:

Ok i'll wait till the link works...


------------------

I got also UBB hacks database
Posted By: Lord Apocalypse Re: UBBPoll v2.1b - 12/05/2000 8:58 AM
err... nm... didnt notice a 2nd page

------------------
Ideas in motion remain in motion

Vertigo, it just wont stop

LA out

This message has been edited by Lord Apocalypse on December 05, 2000 at 01:04 AM
Posted By: errol Re: UBBPoll v2.1b - 12/05/2000 12:43 PM
Ooops. Very sorry about that Andy. Won't happen again. I guess there's a reason why the link is "down". You must be adding more features to it. Cool.

Anyone get it to work on an NT yet?

Thanks,
Errol
Posted By: The Team Re: UBBPoll v2.1b - 12/05/2000 11:26 PM
Its alright. Sorry for sounding like an ass...I just like tracking my scripts popularity. I will post a new link sometime later tonight! Sorry for the delay in it.

------------------


:: Who is Andy?
Posted By: SpAwN Re: UBBPoll v2.1b - 12/06/2000 1:05 AM
Hi,
We understand you, and i didnt install it.
Till i can download it from you.

To track your link you could use Webtrends live [Linked Image]

------------------

I got also UBB hacks database
Posted By: The Team Re: UBBPoll v2.1b - 12/06/2000 1:32 AM
Download here: http://n64vortex.hypermart.net/ubbHacks/download.cgi

------------------


:: Who is Andy?
Posted By: Mark Badolato Re: UBBPoll v2.1b - 12/06/2000 3:46 AM
I don't know whether to laugh or cry at that graphic! LOL

--mark
Posted By: The Team Re: UBBPoll v2.1b - 12/06/2000 3:52 AM
Quote
quote:
[Linked Image]



------------------


:: Who is Andy?
Posted By: Greg Hard Re: UBBPoll v2.1b - 12/06/2000 4:31 AM
I'd cry mark. I'd cry...


------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind
Posted By: dachs Re: UBBPoll v2.1b - 12/06/2000 7:05 AM
I'm having a problem that I hope you can help me with. Everything *appears* to be working fine until I try to vote. Then I get a "document contains no data" error. There are three files in the data folder... id.count, members.cgi, and polls info. All the pertinent info is in these files. There's a "poll" directory which contains two files, a data file and a track file. I've chmoded the ubb-poll directory and data directory at 777. Admin.cgi and poll.cgi are set at 755, UltPoll.setup, functions.pl, and UBBPoll.pl are set at 777. Do you have any idea what the problem may be?

Thanks!
Posted By: chillypk Re: UBBPoll v2.1b - 12/06/2000 10:58 AM
Hi all,

The poll looks awesome on the pages I've seen!

Unfortunately I'm a newbie and having problems from what I don't really know...

Running on a hosted site on a Unix server

Tried creating a directory - but all it ended up doing was asking me if i wanted to download a file when i tried opening the admin cgi file. (transferred as asci...yes)
and my perl path was right...

Then I tried just uploading the cgi files into my cgi-bin which seemed to work until i submitted then i got a permissions error - no files were created - i checked for the member file.

Messed around with CHMODs even set everything to 777 - still didn't work...

[Linked Image]

The hack looks so great - I'm anxious for some help

Thanks a bunch!
Posted By: SpAwN Re: UBBPoll v2.1b - 12/06/2000 11:28 AM
Hmmm realy weird...

I never get this problem

Quote
quote:
Absolute Path for my UBB CGI DIRECTORY = /data1/hypermart.net/spawnboard/cgi-bin

but if i put that i get the problem above.


------------------

I got also UBB hacks database
Posted By: chillypk Re: UBBPoll v2.1b - 12/07/2000 10:21 AM
Ok this is driving me nuts - can someone please tell me what I'm doing wrong?
I've tried screwing around with colspan and even trying to hardcode all the spans but i still get the hanging over row.

Can someone give me some help?

Page is at...
http://www.thepharmforum.com/cgi-bin/Ultimate.cgi?action=intro

Thanks in advance!
Posted By: CT Re: UBBPoll v2.1b - 12/08/2000 1:41 AM
Dachs:

Quote
quote:
I think I know what your problem is and I hope that someone can fix it.

My first 3 polls were a success, but when I created my fourth poll I got this error.

The problem is that i made the answers for the poll like this:

a) hjdfjkdhfk
b) hfjdhjfkd
c) hfdhgkj

You can NOT use the characters ().

I know you have to change something in line 207 from poll.cgi. You'll probably have to add qq(...) but I don't know the exact way to do it.

Can someone please help?
Posted By: Thunderfall Re: UBBPoll v2.1b - 12/08/2000 3:25 AM
Quote
quote:
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
Posted By: errol Re: UBBPoll v2.1b - 12/09/2000 9:55 AM
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

Code
code:

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
Posted By: CT Re: UBBPoll v2.1b - 12/09/2000 1:38 PM
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
Posted By: Lord Apocalypse Re: UBBPoll v2.1b - 12/09/2000 4:48 PM
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% [Linked Image] 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 [Linked Image]

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
Posted By: Mark Badolato Re: UBBPoll v2.1b - 12/11/2000 8:29 AM
Quote
quote:
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
Posted By: WillSmith Re: UBBPoll v2.1b - 12/23/2000 7:17 AM
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
Posted By: Sammie Re: UBBPoll v2.1b - 12/29/2000 6:43 AM
Hi,

there is a bug in the code. when someone use || in the comment, the comment are not show correctly. Sorry for my english [Linked Image]

Can someone fix the bug?
Posted By: WillSmith Re: UBBPoll v2.1b - 12/31/2000 10:25 PM
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
Posted By: Statix Re: UBBPoll v2.1b - 01/02/2001 8:56 AM
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
Posted By: g-man Re: UBBPoll v2.1b - 01/06/2001 2:54 AM
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 [Linked Image]
Posted By: WillSmith Re: UBBPoll v2.1b - 01/06/2001 4:04 PM
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
Posted By: ST8 Re: UBBPoll v2.1b - 01/06/2001 8:19 PM
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.
Posted By: g-man Re: UBBPoll v2.1b - 01/11/2001 2:08 AM
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


Code
code:

thx
Posted By: lstultz Re: UBBPoll v2.1b - 01/14/2001 10:47 PM
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


Quote
quote:
Posted By: CARTOON Re: UBBPoll v2.1b - 01/15/2001 1:35 AM
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???
Posted By: CARTOON Re: UBBPoll v2.1b - 01/16/2001 9:20 PM
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!!!
Posted By: lucas Re: UBBPoll v2.1b - 01/17/2001 3:58 AM
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. [Linked Image]

This message has been edited by lucas on January 16, 2001 at 09:32 PM
Posted By: ]km[gaijin Re: UBBPoll v2.1b - 01/19/2001 6:25 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.
Posted By: errol Re: UBBPoll v2.1b - 01/19/2001 9:11 PM
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
Posted By: Friek2k Re: UBBPoll v2.1b - 01/19/2001 9:31 PM
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
Posted By: aaronx88 Re: UBBPoll v2.1b - 01/22/2001 9:37 PM
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
Posted By: Brian Re: UBBPoll v2.1b - 01/25/2001 2:36 AM
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?
Posted By: NBAustin Re: UBBPoll v2.1b - 01/25/2001 3:44 AM
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
Posted By: NBAustin Re: UBBPoll v2.1b - 01/26/2001 1:32 AM
????
Posted By: NBAustin Re: UBBPoll v2.1b - 01/26/2001 3:32 AM
Could having flock set as "yes" be causing the problem under Win 2K?
Posted By: KatieHaugland Re: UBBPoll v2.1b - 01/27/2001 3:15 AM
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
Posted By: NBAustin Re: UBBPoll v2.1b - 01/28/2001 6:53 PM
Would someone be kind enough to answer our questions?
Posted By: Brian Re: UBBPoll v2.1b - 02/01/2001 9:29 AM
anyone?
Posted By: bdienes Re: UBBPoll v2.1b - 02/02/2001 9:28 AM
There is a minor bug in the current code:

In functions.pl

Code
code:

Cheers,

Bruce
Posted By: BusBoy Re: UBBPoll v2.1b - 02/04/2001 8:57 AM
Quote
quote:
I got the same error... am I missing a step?? Path to CGI in functions is set. any help would be great!

confused
Posted By: AllenAyres Re: UBBPoll v2.1b - 02/04/2001 12:11 PM
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...
Posted By: BusBoy Re: UBBPoll v2.1b - 02/05/2001 1:11 AM
Quote
quote:
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...
Posted By: CtrlAltDel Re: UBBPoll v2.1b - 02/05/2001 5:09 AM
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?
Posted By: Chip Re: UBBPoll v2.1b - 02/10/2001 8:41 PM
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.
Posted By: CARTOON Re: UBBPoll v2.1b - 02/11/2001 12:41 PM
The guy who made this made a BIG ERROR.... errrr, and never checked up to fix it..

Anyways, put all the addons directly in your cgi-directory.. Make a new directory poll, CHMOD 777 but don't upload anything in it.. put all addons in cgi-directory... Mine works great, you can even link from Ultimate to a "OPEN POLLS" screen and have 6 to 30 active polls... if ya wanna see for ya self


http://www.hiphophangout.tv/cgi-bin/board47/Ultimate.cgi
Posted By: BusBoy Re: UBBPoll v2.1b - 02/12/2001 8:56 AM
OK.. I got everything to SORTA work!!

Here are the problems I am now having...

-- I can do everthing in the admin screen with the exception of opening up the damn polls that I create!! I can sure as hell go ahead and delete them and they show up in the pull down if I wanna delete them!

-- The HTML output is not working for me... anyone have any ideas?? I am running WIN2K and I have just about go tthis thing figured out... these last two items are killin me!!

The issue with the HTML output is that there is none... I mean NOTHING! What the heck??!!

Anyone out there with ideas??!! Please help!
Posted By: Seibertron Re: UBBPoll v2.1b - 02/14/2001 12:03 AM
anyone figure out how to make this compatible for the UBB 6 Beta 7.7?
Posted By: AllenAyres Re: UBBPoll v2.1b - 02/17/2001 10:11 PM
It will have to be a complete rewrite for v6, most likely... mainly because it has quite a few problems in its present form, for sure...

BB, sounds like permissions problems... you'll get empty html in IE if it can't execute...
Posted By: BusBoy Re: UBBPoll v2.1b - 02/18/2001 8:58 AM
Quote
quote:
Hi Allen... Naw... I am running it on NT and all subdirectories have inherited permissions.

I sorta gave up on this but if anyone has run across the problem of being able to create the poll, delete the poll, edit the poll, basically everything... but when I try to OPEN the poll... it reports that htere are no polls to open... but I go to the data dir and there it sits.
Posted By: AllenAyres Re: UBBPoll v2.1b - 02/21/2001 7:28 PM
https://ubbdev.com/polls/poll.cgi

I followed Errol's directions on page 3 to get it to set up the first time and the above bugfix for action=Index instead of action=Front.

It works with v5.x and should be able to work with v6 after some work. Getting it to SSI with correct html might take a little more work.
Posted By: AllenAyres Re: UBBPoll v2.1b - 02/21/2001 7:40 PM
I'll look at it tomorrow night for those who need it redocumented. If someone has it SSI'd somewhere, I'd like to look at the html output to see where the errors are.
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 02/26/2001 5:11 AM
Hi all,

I wrote down a workaround for the installation unter Windows NT Servers.

This is the way I got the UBB Poll Hack 2.1b
work under my internal Windows NT 4 Server.

download
here
Posted By: Zackary Re: UBBPoll v2.1b - 03/02/2001 1:12 AM
After fighting with this mod for some time, I finally stumbled over this thread.

I just want to state that Onkel_Tom's documentation worked perfectly for me on Win2k Advanced Server. I still need to try to integrate it into my UBB, but I'm confident that since the stand alone poll is working, this next step should be relatively painless. wink

Just so people know what problem I was having, it was the same as Errol, in that I couldn't actually get the Setup portion of the Admin script to run. It just popped straight through to the admin screens.

Thanks again for all the hard work everyone.

Chris
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 03/05/2001 12:05 AM
Hi,
Is it a security Problem to set the UBBPoll Path and URL locations in the cpanel2.cgi ?

I just added this functions on my internal Webserver for testing but do not want to up it to my working internet version.

Does somebody know more about the quiet unconfortable configuration of this hack ?
Why ?

I think the problem is the memberlist file located in the ubbpoll dir, isn't it ?
Posted By: AllenAyres Re: UBBPoll v2.1b - 03/05/2001 9:40 AM
There shouldn't be any security problems with setting that in cpanel2.cgi, that would be a great idea.
Posted By: NBAustin Re: UBBPoll v2.1b - 03/08/2001 6:06 AM
I can't find this hack in the database.

Where can i get it?

(I did do a search of all forums)
Posted By: Clarkies Re: UBBPoll v2.1b - 03/08/2001 5:46 PM
Where can I get this hack? It doesn't seem to be in the database and I can't get the link to work properley?

Anyone know where I can get it?

Thanks
Posted By: NBAustin Re: UBBPoll v2.1b - 03/08/2001 10:29 PM
Jeez!

Don't moderators and Admins even check this board anymore? mad
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 03/08/2001 11:33 PM
Hey, just keep cool !

They are all doing other business than checking this board all 3 hours ...

Only hacking UBB will not feed your family !

you can download it here

with the new CP-Extensions ...

[ March 08, 2001: Message edited by: Onkel_Tom ]
Posted By: AllenAyres Re: UBBPoll v2.1b - 03/09/2001 1:14 AM
Danke Tom... this thing has been out for 6 months, but they really need it now... right now... laugh
Posted By: NBAustin Re: UBBPoll v2.1b - 03/09/2001 2:21 AM
My apologies.

I didn't mean to be a pain, but I've noticed many threads/questions go unanswered for days or more.

I understand people have lives away from here, but the response time from Mods/Admins has drastically fallen off here lately.
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 03/09/2001 3:14 AM
Okay, here we go !

I implemented the CP-Extensions to the Hack an updated both routines to install under NT and Unix.

@ Allen
I've a little problem to get the Ubb absolute path within the functions.pl !
I'm not a perl crack ...
Perhaps you could have a look in this code and figure it out ?

okay, download the new Hack here:
English version
German version

now it's time for my bed ...

[ March 08, 2001: Message edited by: Onkel_Tom ]
Posted By: NBAustin Re: UBBPoll v2.1b - 03/10/2001 10:27 AM
Everytime I click VOTE, i get this error;

Can't open perl script "D:webspace.........unitedconservatives.comwwwcgi-binUbbpollpoll.cgi": No such file or directory

My cgi-bin is named ubbcgi, not cgi-bin. I've checked my paths and the scripts for any instances where "cgi-bin' would be put in place of my "ubbcgi", and it keeps on giving me this error since it insists on inserting CGI-BIN instead of UBBCGI.

Why is this happening?

[ March 10, 2001: Message edited by: NBAustin ]
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 03/11/2001 6:57 PM
the only cgi-bin path which is hardcoded ist in cpanel2.cgi, but only if you let the field for pull_url blank while doing the general variables !

pls. Check funktions.pl, UltPoll.setup, Ultbb.setup, Ultimate.cgi an cpanel2.cgi
search for "cgi-bin".

Is it NT or Unix ?
Posted By: NBAustin Re: UBBPoll v2.1b - 03/11/2001 10:05 PM
Quote
quote:
I took it out of cpanel2.cgi.

My gen variables are correct. Checked all those files, and it continues to do this.

I'm on NT.
Posted By: NBAustin Re: UBBPoll v2.1b - 03/12/2001 2:55 AM
OK...

Overlooked one thing and got it working.

NOW...why don't the poll percentages add up to 100%? It only computes 99%.

Fix anyone?
Posted By: Clarkies Re: UBBPoll v2.1b - 03/13/2001 12:17 AM
I thinks its a fantastic script and thanks to Onkel Tom for his excellent instructions. I have a few questions about the script?

1. In the Add User section of the admin.cgi script there is an option for Moderator/Administrator (permission). How does this relate to UBB user permissions? Whats the difference if its different etc?

2. I haven't installed the CP extensions but just the basic version with a few modifications. If I did make the CP changes in cpanel2.cgi what would they do?

3. I seem to be having problems adding it to Ultimate it CGI. This is the coding I have got.......Is it 100% correct?

#POLL ADD
push(@INC,'/i/CHANGED THIS PATH/TO/THE RIGHT ONEl');
#push(@INC,$poll_path); # will only work with cp-extensions !
require 'UBBPoll.pl';
ubb_poll();
#END POLL ADD

Many Thanks
Posted By: NBAustin Re: UBBPoll v2.1b - 03/13/2001 3:30 AM
Quote
quote:
It will allow you to Add, Delete, etc, the polls via the CP.

It's great hack. Kudos to all involved with it.
Posted By: Jeffery Re: UBBPoll v2.1b - 03/14/2001 3:06 AM
Im still having the "The members.cgi file could not be opened because No such file or directory." I'm running Win2k. I've followed every step in Install_NT.txt from download UbbPoll21b_eng.zip which seems to include every fix posted in this forum. But I get that error right after initial path setup from http://.../admin.cgi. Anyone with any suggestions for me? please feel free to email: thomasj@telocity.com
Posted By: Zackary Re: UBBPoll v2.1b - 03/15/2001 7:14 AM
Jeffery,

I'm running Win2k and using Onkel_Tom's instructions, I got it to work. Did you remember to change the following line in admin.cgi:

my $size = -s "UltPoll.setup";

and change it to

my $size = "2";

Then, after running through the setup to create all the files, remember to change it back. smile

If you use the installation instructions in Onkel_Tom's post above, you should get it to work perfect. That's how I got it to work.

(PS, the link is kind of hard to see, but click on the word here, below download) smile

Good luck!
Posted By: phenomen Re: UBBPoll v2.1b - 03/15/2001 8:26 PM
Hi,

ich habe mir den Poll eigentlich so vorgestellt, das jeder User ein Poll posten kann !

Ist das nicht möglich ? Oder gibt es so etwas für UBB nicht ?

Liebe Grüße
Manuel
Posted By: Onkel_Tom Re: UBBPoll v2.1b - 03/18/2001 1:30 AM
Quote
quote:
The permissions must be seperate configured for the UBB Poll Hack, it's independent from User permissons of the UBB !
A discription is on the html site where you can define the permissions of the Poll Hack.

Quote
quote:
I hate to administ several instances of files for each UBB, therefore I intregrated the relative paths and URL paths to the cpanel2.cgi. Now only one Ultimate.cgi must be used for all Boards.
In the original Hack the path to the poll hack is is hardcoded in the Ultimate.cgi !
and will not work for both, my internet version and my internal testserver !

Quote
quote:
]http://.../admin.cgi.[/QUOTE][/url]

Please work step by step all parts of my instruction. I think your problem is what Zackary told you.
It worked on Win2k/WinNt4 for me with this instruction !

Quote
quote:
phenomen, sorry this is a english forum. For german questions please use the german support forum.

No, it makes no sense that each person could post a poll. This function is only for admin and defined people.
In Ultimate you could only see the last post, if anybody could post a new poll it would be very confusing !
But you can aks your members for new polls in a forum.
Posted By: Clarkies Re: UBBPoll v2.1b - 03/18/2001 8:14 PM
Thanks for the reply Onkel_Tom...I understand that the UBB Poll permissions (moderator, administrator) as seperate to those under the UBB control panel thanks to your response. However, I am still not sure what the difference is between Administrator and Moderator under UBB Poll.

You said there was a description on the HTML site? Which site?

Thanks
Posted By: Lionel Re: UBBPoll v2.1b - 04/23/2001 4:32 AM
The link does not work
Posted By: chatminou Re: UBBPoll v2.1b - 04/28/2001 11:01 PM
Hi everybody,

Do you know a hack poll who allow users to create a poll like a topic on the forum ?

Like this :
http://www.gamekult.com/tout/forum/forum.html?cat=FO00002

(look [Linked Image] topics).

If you want create a new poll click on the button "Sondage".

There are the same hack with ubb ??

Thanks for your answers.

[ April 28, 2001 04:03 PM: Message edited by: chatminou ]
Posted By: M$ Re: UBBPoll v2.1b - 04/29/2001 8:35 PM
Somebody plese send me this hack on [email protected] :rolleyes:
Posted By: Karreman Re: UBBPoll v2.1b - 06/13/2001 4:30 PM
can you also send this hack (if available) to [email protected]??

[ June 13, 2001 01:05 PM: Message edited by: Karreman ]
Posted By: CT Re: UBBPoll v2.1b - 06/14/2001 1:32 PM
This hack does not exist for UBB.
Posted By: AllenAyres Re: UBBPoll v2.1b - 06/14/2001 6:23 PM
I linked the first post to a version the Onkel_Tom worked on... is that what you guys mean?
Posted By: chatminou Re: UBBPoll v2.1b - 06/14/2001 8:36 PM
But, on this board, there are the same function for post a poll [Linked Image]

We can't have this fonction on UBB 5.xxx ? sure ?
Posted By: AllenAyres Re: UBBPoll v2.1b - 06/14/2001 10:24 PM
a completely different script... tho you might be able to adapt it.. it is completely different
Posted By: Lord Dexter Re: UBBPoll v2.1b - 06/15/2001 12:25 PM
Yeah This poll is one you vote for on The Main page, I think its pretty good still. smile
Posted By: Karreman Re: UBBPoll v2.1b - 06/17/2001 5:56 PM
it's ok, i adapt it a bit, so now people can add a poll when they submit a topic, and used the