 |
 |
 |
 |
#127229 - 09/03/01 08:47 AM
Poll - anyone help please?
|
Member
Registered: 04/10/01
Posts: 115
|
Hi guys, anyone done the poll? If so, i would appreciate any help on this. AFAIK, i made a successful bit of pasting/changing CHMOD...but as soon as I try to make a new poll, i get this error - "The members.cgi file could not be opened because No such file or directory" Any ideas why? Also, there are a few more questions - To place the Ubbpoll on Ultimate, the author asks us to cut the code in here - sub ForumsBottomHTML { #POLL ADD # push(@INC,'/myabpath/public_html/cgi-bin/Ubbpoll'); push(@INC,$poll_path); # will only work with cp-extensions ! require 'UBBPoll.pl'; ubb_poll(); #END POLL ADD print <<BOTTOMhtml; Im not a perl guy, but surely its got to go under the print? It just cuts out half of the main page when i open the board. And the CP extension - --------------------------------------- Search for: --------------------------------------- <tr> <td width="100%"><font face="Verdana, Arial" size="1"><A HREF="cpanel.cgi?action=misc" target="CPMAIN" >System/ Debugging</A> </font> </td> </tr> --------------------------------------- paste this before: --------------------------------------- <tr> <td width="100%"><font face="Verdana, Arial" size="1"><A HREF="Ubbpoll/admin.cgi" target="CPMAIN" >Edit Poll</A> </font> </td> </tr> --------------------------------------- all done in cplinks.html I have never seen "System/ Debugging", what version of the UBB is that? Im on 5.45c - would i have to upgrade to .47? And surely there must be a full URL in there - A HREF="Ubbpoll/admin.cgi"? This is the 4th time i've tried this, everytime the same. What am i doing wrong? Thanks all! [ September 03, 2001: Message edited by: Rich9 ]
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#127230 - 09/03/01 07:18 PM
Re: Poll - anyone help please?
|
Moderator / Code Fixer
Registered: 10/14/00
Posts: 891
Loc: Australia
|
I had it on my board a log time ago, I think back then I was using 5.47, and from memory it worked fine the first time. I also had about 30 outher hacks on my board, so I think you should tabe a break from it, then read it again, carefully! and give it another go.
# push(@INC,'/myabpath/public_html/cgi-bin/Ubbpoll'); push(@INC,$poll_path); # will only work with cp-extensions ! require 'UBBPoll.pl'; ubb_poll(); #END POLL ADD
all the above bit is doing is pushing a variable into an array, requiring the UBBPoll.pl file so it can use subs/functions and variables from there in your Ultimate.cgi Try using the first push statement, the one thats commented out, and comment out the second one (be sure to modify the path)
And it doesnt need to go in the print statement.
Hope this helps.
_________________________
I can't afford a good signature editor
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#127246 - 09/07/01 09:40 PM
Re: Poll - anyone help please?
|
Member
Registered: 10/11/00
Posts: 344
Loc: Newport, RI
|
Rich, You'd have to play with it to be sure. I don't use the log-off bit, but I would imagine it just removes the cookie info...which is all that is being used. Hang on and I'll find what I did. It is quite basic. Find this: and below it add: Then down where the form data is look for this: and make it and then find: and make it: It could likely be "prettied up", but it works. Now, if the "log-off" bit works by clearing that info away...so the next time you come back you are greeting with the need to login to check PM's and such...you should be all set!  [ September 07, 2001: Message edited by: Vipermad ]
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#127252 - 09/09/01 01:27 PM
Re: Poll - anyone help please?
|
Member
Registered: 04/10/01
Posts: 115
|
Well, guess the UBB doesnt really use a proper template, but you see the border in my site? And the UBB image, links, all should be created on the fly....but the poll does not do that. I can see some HTML, that should create the border....but for some reason, it wont do it. The code is very messy (mostly because my headers/footers arent that clean probably!).
The quiz does have a proper template, uses "template.html" every new quiz is created under that format. Have a look at the quiz btw vipermad, its not a UBB hack, but its a pretty nifty script, and very easy to install....although its not incoporated into the members.cgi etc.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#127255 - 10/02/01 04:16 PM
Re: Poll - anyone help please?
|
Junior Member
Registered: 10/02/01
Posts: 1
|
I know this is a rather old thread, but I just installed this hack (UNIX) and had many of the same problems as I've seen before. After many hours of playing, it finally works! Here's a couple of hints (learn from my mistakes!): - The instructions for inserting the #PUSH into Ultimate.cgi are CORRECT, even if you have installed other hacks, such as PM or ?Online.
- To incorporate the poll into Ultimate.cgi, you must modify cpanel2.cgi file. Don't forget to enter the paths for the poll directories under General Settings!
- If you can run your poll stand-alone (../poll.cgi) then you are half-way home. There is no reason you should have to put the poll cgi files in the cgi-bin to get it to work - you need to verify that all the paths are correctly set (see below).
- If after inserting the code and uploading Ultimate.cgi you find that it "chops off" the bottom of the main page (no forum legend, website link, copyrights, etc.), then your paths are not completely set up correctly. Go to the Control Panel, and enter the absolute paths under General Settings. (Dopey me forgot to do this after editing cpanel2.cgi)
Hope this helps.
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |