UBB.Dev
Posted By: jordo [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 3:14 AM
instructions updated to 1.9, just a small syntactic update for UBB pb 2.1

Same as my ubb integrated polls for 6.0x. Code cleanup for 6.1.x including functionality for displaying public or login name on comments.

big thanks to Tech-Ni-Kal for wordletizing it, doing XHTML (with a lot of help from Gamer wink

Features:

Full CP interface to control who can post polls, where they can be posted, and what names to display on comments.
Ability for admins (and mods of the forum where poll is posted) to edit polls, close polls (no further voting) and keep poll results hidden (while still allowing voting).
Nicely integrated poll creation page.
Templates for all publicly displayed HTML.
XHTML compliant
Wordletized
Etc, Etc. smile ) -
http://www.nl-forums.co.uk/ubb/multihack/ubbpolls.mhp

[ 01-23-2002 02:10 PM: Message edited by: jordo ]
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 3:19 AM
Installing right now. I will get back to you..
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 3:45 AM
So far all is working well!! One suggestion, if you want me to I could document it, but I think there should be an option in style templates to change the bar gif and such. If you would like any help creating it I would be glad to save you the time.

Question: When creating a new topic with a poll, where do you put the options for each option for the poll? Because whenever I click create Poll and put 3 options. I get this:

You did not fill out all options.
» Please use your browser's back button to return.

[ July 31, 2001: Message edited by: Tech-Ni-Kal ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 4:28 AM
well if you create a poll with 3 options(by putting a 3 in the box on the new topic page), you will need to fill in all three of the options and the question on the subsequent page. ill add the bar gifs to the style templates sometime (i have it all doc'd up cause i did the same type of thing in sticky threads, so it wont be a problem).

so the sequence for posting a poll is:
1) click new topic button
2) fill in topic subject and message like normal, click the checkbox next to Add Poll, enter a number of options and click the submit button (Add Topic button).
3) fill in poll question and options (all must be filled in), and click submit - your post and your poll will then both be made.
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 4:32 AM
Nevermind, works now.

[ July 31, 2001: Message edited by: Tech-Ni-Kal ]
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 4:33 AM
Quote
quote:
Are you sure? I can easily add it right now... and then send you the doc.

I'd also like to help in any way. Wordlets maybe??

[ July 31, 2001: Message edited by: Tech-Ni-Kal ]
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 5:49 AM
Looking good Jordo :)I can help with the xhtml, I seem to be getting a good amount of practice with it smile

I may wait until you've gotten some more bugs worked out, at least until the public template pages are pretty stable.

[ July 31, 2001: Message edited by: AllenAyres ]
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 9:47 AM
I have installed this and it is working (so far).

Looks good.

One thing I noticed that needs a very small fix (I figure everyone has fixed it and just did not say anything about it.)

in ubb_new_topic.cgi

Number of Poll Options: );

should have a

after the "3">

so it would look like this:

Number of Poll Options:

);

otherwise the Show Sig line is on the same line as the poll options
Posted By: Javier97Z28 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 4:40 PM
by "controlling where you can post" does this mean that you can control what forums you are allowed to post a poll in? that's the kind of control i'm dying to see smile
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/01/2001 4:52 PM
Quote
quote:
Exactly what you can do.

[ August 01, 2001: Message edited by: Tech-Ni-Kal ]
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/03/2001 7:21 PM
jordo, was just wondering if you got my zip on the wordlets and such...
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/04/2001 7:15 PM
I'll be installing this on a test site soon and will send you the xhtml-ized template files asap smile
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/04/2001 10:52 PM
Allen, you don't have too. I just finished that. Jordo, if you would like them please tell me.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 7:01 AM
thanks to some great work by tech-ni-kal zips are updated to v1.8. laugh
Posted By: NitroSimSev Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 5:44 PM
Jordo,

Whats required to up grade from 1.7 to 1.8?
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 7:04 PM
Quote
quote:
Thanks! tipsy
Posted By: Fuzion Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:12 PM
Quote
quote:
Right.. :rolleyes: That kinda pisses me off. mad
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:14 PM
Quote
quote:
Hey man, I told him you helped...
Posted By: Fuzion Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:15 PM
helped? pretty much re-did all the html to xhtml it was so messy I did not even know what to do with it. tipsy
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:40 PM
Quote
quote:
You never told me that...
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:48 PM
ummmm.. aren't both of you the same ones LK had to give some pointers to for basic xhtml construction?... play nice wink
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:52 PM
like allen said play nice. i thought you just checked over the XHTML gamer, didnt know you helped, so thank you for doing what you did smile . heh, and if my html was sloppy, dont blame me, its the exact format of Ubb templates html... tipsy
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 9:54 PM
Quote
quote:

youll want to rehack everything, and reupload everything. sorry, but because of wordlets being added it needs to be completely reinstalled to go from 1.7-1.8
Posted By: Fuzion Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 10:01 PM
k, no trouble here. I am just peachy. cool
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 08/05/2001 10:04 PM
Quote
quote:
Yes, sorry. We will play nice.
Posted By: Paule Re: [6.1x] UbbIntegratedPoll 1.9 - 08/06/2001 10:21 PM
An error has occured:


/homepages/38/d19856222/htdocs/planetboards/cgi-bin/ubb-cgi/ubb_poll_lib.cgi: syntax error at /homepages/38/d19856222/htdocs/planetboards/cgi-bin/ubb-cgi/ubb_poll_lib.cgi line 157, near "@voters = split(/"
syntax error at /homepages/38/d19856222/htdocs/planetboards/cgi-bin/ubb-cgi/ubb_poll_lib.cgi line 166, near "hoice"

(called by /homepages/38/d19856222/htdocs/planetboards/cgi-bin/ubb-cgi/ultimatebb.cgi, 602)


Please inform the board administration of this error so that they may fix the problem. Thank you!

I got this error, can anybody help?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/07/2001 1:07 AM
[HF]Phoenix - this happens on a poll you have created before anyone has voted?
Posted By: Fuzion Re: [6.1x] UbbIntegratedPoll 1.9 - 08/07/2001 1:11 AM
Re-Hack ultimatebb.cgi and you should be fine.
Posted By: Paule Re: [6.1x] UbbIntegratedPoll 1.9 - 08/07/2001 6:08 AM
This happens, when I want to create a poll...but when i will be back from work today, i'll re-hack ultimatebb.cgi
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 6:15 AM
this is happening to me too (when attempting to create a poll)...

I am installing the MOD in beta 1.2

I have hacked, re-hacked, and re-hacked ultimatebb.cgi to no avail

It might have been overlooked but they are syntax errors in ubb_lib_poll.cgi (the stock file that is required - not an edited file)

[ August 07, 2001: Message edited by: CaCoffin ]
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 6:43 AM
the code prior to line 157 is
code:
Code

&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

<a href="$vars_config
{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a>!);
}



If it is changed to:
code:
Code

&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

<a href="$vars_config
{CGIURL}/ultimatebb.cgi?ubb=login">$vars_wordlets{login_now}</a>

!);
}



the syntax error there disappears however several other errors now pop up:

An error has occured:


/home/iambornagainru/cgi-bin/ubb/ubb_poll_lib.cgi: syntax error at /home/iambornagainru/cgi-bin/ubb/ubb_poll_lib.cgi line 215, near "if ($permission eq 'private') { $exact_path .= "/private"
In string, @this_topic now must be written as @this_topic at /home/iambornagainru/cgi-bin/ubb/ubb_poll_lib.cgi line 215, near "; }

# grab topic
@this_topic"
syntax error at /home/iambornagainru/cgi-bin/ubb/ubb_poll_lib.cgi line 223, near "poll");
"
syntax error at /home/iambornagainru/cgi-bin/ubb/ubb_poll_lib.cgi line 246, near "}"

(called by /home/iambornagainru/cgi-bin/ubb/ultimatebb.cgi, 519)


soooooooo I don't know if that was the syntax error or if I am just creating other errors by changing the placement of the !

[ August 07, 2001: Message edited by: CaCoffin ]
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 7:15 AM
just thought I would add that v1.7 of the poll MOD works with beta 1.2 with no problems
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 7:50 AM
im installing beta 1.2 right now to test/bugfix.
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 8:18 AM
thanks jordo... I'd like to help with the testing once you've gotten a few of the majors worked out wink
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 8:27 AM
ok redownload the zip and reupload ubb_poll_lib.cgi. it seems there was some out of place (X)HTML. wink

Allen - despite the little hiccup here i think this one is fairly stable/bugfree. as a lot of the major stuff got worked out in the 6.0x version. smile
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 8:31 AM
cool.. we'll give it a shot tomorrow night then, my eyes are crossing smile
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 8:53 AM
quote:
Originally posted by AllenAyres:
cool.. we'll give it a shot tomorrow night then, my eyes are crossing smile


ya i hit that point about an hour ago :
Posted By: Stang5_0 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 5:54 PM
Hi there, did the hack, but cp.cgi is coming up blank....
Any idea where to start looking?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/08/2001 7:22 PM
Stang5_0 - if you mean that when you go to the Poll CP it comes up blank, then you need to make sure cp_vars_poll.pl is uploaded to the Templates directory in ASCII mode.
if you mean that the main Control Panel Page is coming up blank, then check that everything was added correctly in cp.cgi and also in cp_common.pl.
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 1:20 AM
Ok, I have integrated your update and it all works fine now with beta 1.2 except for one thing.

It has killed the Wordlets menu. The menu itself is there but when I try to select ANY option on the Wordlets menu I get this error:

Bad name after wordlets_cp' at /home/iambornagainru/cgi-bin/ubb/cp_wordlets.cgi line 79.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 2:05 AM
redo cp_wordlets.cgi as per updated instructions - there was a missing single quote. smirk
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 5:04 AM
ok that fixes that problem -

there was one other item which causes problems too -

With the MOD, as is, the Primary Settings menu turns up blank

this line of code is added:
code:
Code

document.writeln("<option value="$vars_config
{CGIURL}/cp.cgi?ubb=vars_poll&r=$ran"> - Poll Settings</option>");



The syntax does not match the other menu options in that section of cp_common.pl. If the two " are removed the menu works just fine.

Resulting in the code looking like:
code:
Code

document.writeln("<option value=$vars_config
{CGIURL}/cp.cgi?ubb=vars_poll&r=$ran> - Poll Settings</option>");



Thanks again for a great MOD!
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 5:51 AM
ya i had forgotten to fix the instructions with that, i updated the correct one about an hour ago
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 8:26 AM
hola!

Just installed... pretty straightforward even tho it takes pert near a week to do Looks nice tho.

When trying to add a poll to a forum, everything seems to go well up until I click on submit to add the poll. I then get this error:
quote:

FYI
The form you submitted appears to be incomplete!
You did not complete: message


» Please use your browser's back button to return.



A pretty generic error message, but all fields have been filled out, including the message. Any ideas?
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 6:30 PM
I am wondering if anyone has installed this yet wink
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 6:34 PM
"view source" on that text if your browser tries to run it as html... you'll see what I mean.
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 7:02 PM
here's the install file text to correct that problem, I still haven't found what's the deal with the previous problem where I get:
quote:

FYI
The form you submitted appears to be incomplete!
You did not complete: message


» Please use your browser's back button to return.



https://www.ubbdev.com/ubbpollintegrate.txt
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 7:44 PM
I also got it...
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/09/2001 8:30 PM
ok thanks Allen, instructions in zip updated. now as for the other problems, this is a weird one. when i originally moved the poll options page to a page after the post a new topic page, i was getting the same error. i was reproducing all the %in values from the previous (post topic) form as hiddens, but for some reason it only would look at the first 3 of them, then ignore the rest. i fixed it by hard coding the forum (f) hidden as the first one then putting all the rest. now i dont know why its popping up again, cause it works perfect on my test board. so as soon as i can figure out how to replicate it again ill get it fixed. or if you have any ideas of course.

take a look for yourself, you can search for $post_data_from_in in ubb_poll_lib.cgi and public_new_poll_form.pl

:/

Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 6:15 AM
I'm getting the same problem. I'll play with it some and see if I can figure anything out.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 8:37 AM
ok i dont know whats up but i totally cant replicate this problem. ive checked and rechecked and im 99.9% sure i have the same files as in the zip (i just upped them from the zip in fact). so im not sure. if someone who is having this problem would like to try something for me that i think will fix it, pm me, i cant be sure though as im not actually having the problem smirk
Posted By: Paule Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 8:54 AM
Can you modify this mod to a multiple choice poll?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 7:13 PM
quote:
Originally posted by [HF]Phoenix:
Can you modify this mod to a multiple choice poll?



what do you mean? you can put in as many choices as you want.
Posted By: Paule Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 7:31 PM
no, i mean, that you can vote for two or three things....not only for one thing
Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 8:58 PM
A couple of small bugfixes. I was having problems with the option text being really really tiny, as well as the view results and edit poll links. This fixes that problem.

In ubb_poll_lib.cgi replace:

quote:
or ($i=0; $i<=$poll_data{choice_total}; $i++) {
$id = "choice_$i";
@choice = split(/||/, $poll_data{$id});
$ubb_poll_options .= qq~  $choice[0]
~;
} ## end for loop



with:

quote:
or ($i=0; $i<=$poll_data{choice_total}; $i++) {
$id = "choice_$i";
@choice = split(/||/, $poll_data{$id});
$ubb_poll_options .= qq~  $choice[0]
~;
} ## end for loop



Then in public_poll_display.pl replace:
quote:

$vars_wordlets_polls{ipolls_view_results}




$vars_wordlets_polls{ipolls_comments}
  




$vars_wordlets_polls{ipolls_edit_poll}



with:
quote:


$vars_wordlets_polls{ipolls_view_results}




$vars_wordlets_polls{ipolls_comments}
  




$vars_wordlets_polls{ipolls_edit_poll}

Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 10:35 PM
Ok the bug preventing posting of polls is finally fixed, thanks to Ramirez for testing for me. smile

redownload the zip and upload the following 3 files from it:
ubb_poll_lib.cgi
public_new_poll_form.pl
public_poll_display.pl
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/10/2001 10:56 PM
That seems to have done it smile
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 12:20 AM
Yep... Just a suggestion, to show the subject when somebody votes.

In ubb_poll_lib.cgi
[code][/code]

Also, some parts aren't Worldetized, like this one, and your package includes vars_wordlets_mods.cgi

Other than that, it works great
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 12:21 AM
Hmm... Allen... the
 isn't supposed to have font-family:, just font-size
								
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 12:37 AM
Another thing, you don't have to &set_page_elements in ubb_poll_lib.cgi and public_poll_page.pl, otherwise there will be 3 in the topic (like "UBBDev.com: : : Windows or Mac?")
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 10:40 AM
Also, it's not so secured.

Fix:
In ultimatebb.cgi:[code][/code]
Also, ubb_poll_lib.cgi should censorcheck/checkhtml the subject, and censor/html/Graemlin™/UBBCode check the poll options. Can I post an updated ubb_poll_lib.cgi?
Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 7:22 PM
Hey jordo, is there anyway to do an anonymous poll? Or atleast make it so that, if desired on a certain poll, you wouldn't be able to see the results without looking at the data files directly? One of our webmasters asked about this, so I thought I'd ask you.
Posted By: Stang5_0 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/11/2001 7:52 PM
Greetings!!!

I get the following error when I goto my forum:

An error has occured:


package 'vars' not registered for warnings at Modules/AutoLoader.pm line 4


Please inform the board administration of this error so that they may fix the problem. Thank you!

Ideas?

Ok, now it has gotten worse, I did in fact back up my files.....Restored them till I got an answer on the above, and I am still getting the same error....
Do you suppose this is server side?

[ August 11, 2001: Message edited by: Stang5_0 ]
Posted By: afterlab Re: [6.1x] UbbIntegratedPoll 1.9 - 08/12/2001 7:39 AM
Yo Jordo. Other members can view the edit poll even whenever they weren't the creator of that poll.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/12/2001 6:39 PM
LK - thanks for the tips, a few things got missed in the upgrade to 6.1.0 and wordletizing. ill sit down later today and fix em and a few other things ive been meaning to fix. smile

afterlab - only admins and mods (of that forum) can edit the polls. the poll starter cant (because you can change # of votes).
Posted By: Bookie Re: [6.1x] UbbIntegratedPoll 1.9 - 08/13/2001 7:54 PM
would it be possible for me to add a poll button beside the new reply button, and then make a new template file just for the poll? Would it require much work?
Posted By: Bookie Re: [6.1x] UbbIntegratedPoll 1.9 - 08/14/2001 5:41 AM
whoops...

[ August 13, 2001: Message edited by: Bookie - ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/14/2001 5:49 AM
Bookie - it would require a number of modifications in addition to the template. its set up to be integrated with normal posting routines. its not impossible or anything, just might take a little work. and to enable polls in whichever forums you want go into your CP and under primary settings, there is a Poll Settings option. from there you can set what forums allow polls, etc.


zips updated with some fixes. smilies are now allowed in poll titles (not in options though). and checks for html as well as query method are done. i also cleaned up the code in the poll_lib and got everything in that file wordletized.

to upgrade, simply reupload vars_wordlets_polls.cgi, and ubb_poll_lib.cgi, then rehack ultimatebb.cgi.
Posted By: Bookie Re: [6.1x] UbbIntegratedPoll 1.9 - 08/14/2001 5:56 AM
ah yes, lots of modifications that im not willing to do

and about the other thing i figured that i forgot to hack cp_common.pl RIGHT before u posted
Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 08/14/2001 7:38 AM
Another question Jordo. Is it possible to have the last post time updated when a vote is made instead of just when comments are made? It could be easy to lose a poll in a high-traffic forum even if it's getting votes, if noone is making comments.
Posted By: Bookie Re: [6.1x] UbbIntegratedPoll 1.9 - 08/14/2001 6:58 PM
AAAH! crap...

now whenever i go to post a poll i get an FYI saying

$vars_wordlets_polls{ipolls_blank_option}
Posted By: CaCoffin Re: [6.1x] UbbIntegratedPoll 1.9 - 08/15/2001 12:10 AM
bookie I would suggest using the sticky hack to have your polls stay at the top in a high volume thread
Posted By: Bookie Re: [6.1x] UbbIntegratedPoll 1.9 - 08/15/2001 5:11 AM
Ok, im a moron... i figured out why, yet again another hacking error on behalf of me
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 08/16/2001 9:24 PM
jordo, please check this thread:

https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=10;t=001256
Posted By: TedBrown Re: [6.1x] UbbIntegratedPoll 1.9 - 08/22/2001 8:12 AM
Jordo,

I just installed the hack..by the way great improvement from 1.4

Anyway, everything works great except when i try to delete a poll, i get this:

Code
code:

Any ideas? I looked through ubb_topic_maint.cgi, and everything seemed to be ok.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/22/2001 5:02 PM
TedBrown - does that only happen when you try to delete a thread with a poll, or when you try to delete any thread? if only threads with polls, try removing the one thing this hack adds to ubb_topic_maint.cgi and see if it still gives that error.
Posted By: TedBrown Re: [6.1x] UbbIntegratedPoll 1.9 - 08/22/2001 7:59 PM
i checked and its for deleting any thread, and closing a thread doesnt work either. Its weird because the script works fine.
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/23/2001 4:43 PM
Maybe it was posted/fixed before, but there is a bug with quotes in posts:

Fix in ubb_poll_lib.cgi:
Code
code:
I'm using the first beta because of many changes (like to use member numbers instead of names in topic.poll, check for many things, etc), but I don't think it's fixed also in the current one.

[edit: replaced " with " so you can see it. it automatically translates it to " otherwise]

[ August 23, 2001: Message edited by: LK ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/23/2001 10:00 PM
thanks LK for the fix. i totally missed that and no one had said anything yet wink .
ubb_poll_lib.cgi updated.
Posted By: TedBrown Re: [6.1x] UbbIntegratedPoll 1.9 - 08/24/2001 5:52 AM
i found out what the error was

even though i knew i had to add it twice, i didnt add the code to both instances in that file.

Thanks
Posted By: Wristnetworks Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 7:20 AM
Newbie here...encountered an error while installing.

-------

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

------

Hi can anyone highlight which part of the steps in installation that i have done wrongly and resulted in this error?

Thanks!

Best if u can drop me a mail at changwen@t-car.org
Posted By: V00D00 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 9:59 AM
Ok, this is kinda weird...

I hacked everything, twice, and a poll button is NOT showing up. Also, under my STYLES option in CP, there isn't a place for the to set the Poll button, unless it's there and I just don't see it.

Also, everything is working right (no errors or anything), I'm just not seeing a poll button or a place to set it! Someone help? LoL, so very very weird...
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 10:50 AM
Wristnetwork, take a look at the error log.

V00D00, It's another hack. In this one, inside New Topic there is a checkbox under Email Notification.
Posted By: V00D00 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 6:37 PM
LK, I'm not exactly understanding what you're saying here...
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 8:24 PM
V00D00 - he means that this is not the hack that adds a second button. to post a poll, (make sure you have set the forum you wish to post in to on in the poll options CP) go to post a new topic as normal, and you will see a checkbox at the bottom, checking that and putting a number in the poll options box will let you post a poll. write your topic as normal, check the poll box, put a number of options in the box, then submit, and it will let you set the poll topic and options.
Posted By: V00D00 Re: [6.1x] UbbIntegratedPoll 1.9 - 08/25/2001 9:00 PM
AH HA! Got it now!
Posted By: Brett Re: [6.1x] UbbIntegratedPoll 1.9 - 09/08/2001 9:22 PM
Is it possible for a ssi script to get the latest poll?
Posted By: Brett Re: [6.1x] UbbIntegratedPoll 1.9 - 09/11/2001 5:28 AM
I got a bug. Whenever i reply or edit it wants to go to something like:

ultimatebb.cgi?ubb=get_topic;amp;f=10;amp;t=000041

during the transitions, and comes up with the fyi 'topic not found'. Please fix asap.
Posted By: Aceman Re: [6.1x] UbbIntegratedPoll 1.9 - 09/18/2001 6:26 AM
-= I read this entire thread =-

Ok.. Here's a situation I didn't see anyone mention in the six pages I just read.

My cp.cgi is working fine.. apprently.. and I can see the poll check box under the "Post new topic" I did have to add a

after the line to get it move the signature question to the next line.

Here's the problem: When I add a title, message, check the poll box, and put a number in the poll options and click on "Add new topic" I get a white screen.. nothing else.. nada zippy.. if I leave any of the options off it says I missed something so that's working.. I'm just lost as to what file I might have f'd up.. or what's going on??

Can someone help me?
Aceman
Admin Scifi-meshes.com

URL: http://www.scifi-meshes.com/ubb/ultimatebb.cgi
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 09/18/2001 9:41 AM
raiyan - when you reply to a post with a poll only? or does this happen when you reply to any post?

Aceman - upload public_new_poll_form.pl to your Templates dir.
Posted By: Aceman Re: [6.1x] UbbIntegratedPoll 1.9 - 09/18/2001 7:14 PM
Jordo Thanks again on you speedy responce. I did as you told me and it worked fine.. but a new situation has arisen. After I fill out the poll information, it accepts the thread.. then posts it.. but when you view it there is no poll? just the title and orginal message?

Aceman
Admin Scifi-meshes.com
Posted By: Aceman Re: [6.1x] UbbIntegratedPoll 1.9 - 09/20/2001 7:18 PM
Just wanted to let ya know I got it working.. I'd apprently uploaded 1 file to the wrong location I thought I was uploading to the proper location but I wasn't sorry. Thanks again. And nice work on the hack.

Aceman
Admin/Owner
www.scifi-meshes.com
Posted By: Neptin Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 4:25 PM
Great hack. I can post polls fine but when I go to look at atopic with a poll I get this error:


Code
quote:</font><hr>An error has occured: 


Undefined subroutine &main: :p oll_display_vote called at /home/sites/site151/web/ubb_poll_lib.cgi line 47.


Please inform the board administration of this error so that they may fix the problem. Thank you!
<hr></blockquote>


At line 47 is this

<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:

Any ideas?
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 5:33 PM
Neptin, I didn't know UBB 6.1.0 final was out confused
Quote
quote:
Anyway, are you sure you uploaded the latest public_poll_display.pl to the /boards/Templates directory?
Posted By: Splitfyre Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 7:01 PM
Does anyone really use this hack all that much? I think it's cool. What I want to do is have a sidebar panel like here on UBBDev and have a poll system that would allow people to click on a selection in the sidebar. It would then re-generate and give the current statistics in %'s per answer. Anyone know if this is currently possible?
Posted By: Neptin Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 10:13 PM
Quote
quote:
I did not. I uploaded and it works now. Thank you smile

Quote
quote:
It's not. I just took out the Beta Release info. I did that because I'm sIck of waiting for the final to be released so I can install hacks. So I installed them and vut out Beta Release 1.4 Now, I'm just going to wait until 6.2 is releeased, which will allegedly have all the "hacks" I wanted to add.
Posted By: Tech-Ni-Kal Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 10:15 PM
Quote
quote:

Nope, you aren't allowed to do it...
Posted By: Neptin Re: [6.1x] UbbIntegratedPoll 1.9 - 09/26/2001 10:27 PM
I can't take out the version #? That's odd. Okay, I guess I will be putting it back then.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/06/2001 9:48 PM
Just wanted to say that this hack interferes with ubb version 6.1 beta 2.1 You will not be able to post a new topic while logged in. The problem lies in the coding in public_new_topic_form.pl I believe. I tested this and narrowed down as this was the only hack that replaced any variables there.

Easy fix until this problem is fixed. Turning off all polls via control panel will allow people to post. Unless of course you want to uncode everything which you can do.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/06/2001 11:54 PM
Quote
quote:
its working 100% on version 2.1 for me... i did change one thing in cp.cgi, but it wouldnt have caused such a problem. try rehacking becuase ive updated the instructions because some of the places to insert code have changed (like upper to lower case type stuff smile ).

fyi this hack is not compatable with the PHP ubb accelerator.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/07/2001 2:51 AM
Jordo,

Hate to tell you but your hack is causing this problem. I even tried upgrading to 1.9 from 1.8. I have coded exactly as stated. I have had your poll hacks for sometime. If I turn polls off in every forum members can post new topics!!! If not here is the error recieved.

The form you submitted appears to be incomplete!
You did not complete: your_name

» Please use your browser's back button to return.

This only happens when your logged in. Maybe your hack is having a problem with another hack?
I have who's online,chat,calendar and the poll hack. Thats it!! I narrowed it down by coding each hack and testing. When I installed yours it did it again. I have tested and coded many times and the problem is the same!! I know the first response is always recode but I have done this and the problem still exists and does not go away. I have tested this with the PHP off.

BTW when is this going to be PHP accelerator compatable
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/07/2001 7:21 AM
reupload public_new_topic_form.pl. despite the fact that i cant reproduce this, it will fix it.


Quote
quote:
when i have a chance.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/07/2001 4:20 PM
jordo

I have tried that already. Like I said I only have 4 hacks installed. I have reinstalled the entire hack many times looking for any error.

Just a side note to help track down the error. A user can not post if I turn polls on. As I stated this before it comes up with incoomplete form your_name missing

also when you go to edit a poll ( I am an admin )
it says you are not logged in

It seems your hack is having a little problem finding names?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/07/2001 7:16 PM
as i said above, redownload the zip and reupload public_new_poll_form.pl

btw this hack works without a single problem on my test board, so im not exactly sure where these errors are coming from.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/08/2001 3:46 AM
Hey Jordo please reread my comments above. I redid this many times. Uploading new forms rehacking. UBB 2.1 worked great. Only when I turn on poll options in control panel does the problem exist. so therefore by process of elimination it is your hack. I will repost the exact errors here so maybe some of the experienced hackers could help.

Okay it recognizes me as admin I guess cause wordlets for edit poll are on the poll. I click to edit the polls I already have and it says I am not logged in. I am oh course logged in.
here is the exact error

Quote
quote:
When I try and post a topic ( does not even have to be a poll just a topic ) it gives the error that I did not complete form your_name

Quote
quote:
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/08/2001 6:46 AM
Quote
quote:
the thing is this. with this hack if you post a topic that isnt a poll, well then it goes through the normal posting routines, there are no changes to the posting form, etc. so your_name will be submitted just the same as if polls were turned off or not installed.
the second thing is no matter what i do i cant reproduce this error. this is on a board with no other hacks... so maybe there is a leftover from removing a hack, or a mistake in adding code somewhere.
Posted By: Philipp Re: [6.1x] UbbIntegratedPoll 1.9 - 10/08/2001 2:06 PM
Quote
quote:
UBB Accelerator is already compatible with this hack smile
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/08/2001 7:40 PM
Quote
quote:
wow i just took a look. nice. smile
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/08/2001 11:14 PM
Jordo,

There is no leftover hack?? This is brand new 2.1. I stated what hacks I have installed. whos online stars calendar poll

The fact remains that if I turn off polls in each forum you can post. If I turn polls on you cant. This by default goes against everything you are saying? You hack has to be interfering? What more do you want me to say I am not dreaming this problem. Does anyone have any problems as there can be no left over hacks.

I have done everything you suggested and I have the same error.

Jordo here is an update.

I set up a test board and only installed this hack with who's online. this is the error recieved?

You are not logged in. You must be logged in (and registered) to perform this function.
Login

» Please use your browser's back button to return.

So it seems consistent even with the other hacks I have installed. YOUR HACK SEEMS TO ME IS HAVING A PROBLEM RECOGNISING LOGINS?

register a name and check out what I am talking about there are no other hacks involved here.

http://www.reeftalk.com/test/cgi-bin/ultimatebb.cgi

[ 10-08-2001: Message edited by: omegatron ]
Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 2:58 AM
If it helps, if you logout, then go to post new topic, so that you have to login during the post, it works fine. It's only when you are already logged in that there is a problem. You might want to setup a clean test board rather than a copy of your other board for a better test.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 4:14 AM
Ramierez

It was a clean setup?? I simply used the vars files!!! and styles. All the cgi and pl files are new.

This problem exists and I am not dreaming it. I have coded this hack many times and there is an error as you can see. The only hack installed on this test board is who's online. I dont see how cleaner of an install you can get that unpacking an infopop file and hacking UBB POLL into it. smile Vars files would not make any difference. The coding is all in CGI and PL files. The UBB POLL files are all the new ones.

I am having a little problem understanding that noone else can duplicate this problem when I am following the same instructions as everyone else on a clean board.
Posted By: Ramirez Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 9:15 AM
I was just talking about how it looked like you copied over your forums and threads, unless there are people using that forum for non-test purposes.

As for recreating the problem, I haven't tried this on 2.1 yet so I have no idea if it's reproducable. I will probably be putting 2.1 on a server tomorrow and polls will be one of the first things I put in. If I have any problems I'll be sure to post here to try to help clear it up.
Posted By: mark99 Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 1:32 PM
Well I'm going to have to back the guy with the problem up as I just downloaded the hack and after an hour of installing it (carefully) - JESUS it's big =), I got a similar problem.

Oh and I also noticed a cosmetic glitch that's new to PB2.1, in fact this whole problem is only around in the PB 2 / 2.1.

Anyhoooo, after installing, setting the poll options in the CP and clearing cache I went into my test board:

http://www.ispreview.co.uk/cgi-bin/ubb/ultimatebb.cgi

Now when you post anywhere in the forum (all enabled for polls), select polls and click 'Add New Topic' then all it does is goes to a blank screen with the above forum URL. Nothing gets posted.

Disable polls and you can post again, enable them and you can't.

I also noticed a cosmetic glict, after the poll line and two files (radio and box):

Poll: Check to Create a Poll With Topic Number of Poll Options:

The 'Email Notification: emails sent to you whenever someone replies.' line starts directly after instead of having a line break.

I also found that two files, public_edit_poll.pl and vars_wordlets_polls.cgi aren't even mentioned in the .txt install file. I uploaded them reguardless.

Following all that I went through the install step-by-step and nothing has solved the problem, so there is an issue or two here that seems to have arrisen in PB2.

Note, I have the following hacks installed (all latest versions as of the last day or so):

Who's Online
Mods Wordlets
Stats Hack
UBBNews
Latest Threads (v1.1)
Authority List
ICQ & Aim
Last Reply By
Moderator Log
Signature Fix
Print Page

Please fix this since it's not an issue on my 6.04e board (v1.7 or 1.8 UBB Int Poll) and that has twice as much installed. I'd like to upgrade but I can't till this is fixed as it's an important element.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 3:21 PM
Mark,

Thanks I invited jordo to my test board which no one uses. I only have who's online installed and get this problem with the poll. Seems jordo has stated the cookie routines and the poll are conficting and producing this error.

END RESULT WHOS ONLINE AND POLL ARE CONFLICTING. JORDO DOES NOT HAVE THIS PROBLEM AS HE HAS NO WHOS ONLINE INSTALLED wink

He is going to install whos online and hopefully we should have a fix.
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 3:30 PM
Mark: http://www.ispreview.co.uk/ubb/Templates/public_new_poll_form.pl doesn't exist.

Jordo: there is a bug with unregistered/users that aren't logged-in polls.

Possible fix: (untested)
Find:
Code
code:
Somewhere in sub submit_new_poll.

Replace with:
Code
code:
Posted By: mark99 Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 3:43 PM
LK,

You were right =), I'd confess to being an idiot if it wasn't for the fact that Jordo also left the file you mention out of the upload instructions - that's the third one then hehe.

However having done that it now goes through to the poll form, yet after I put even a simple question it returns with the following:

Quote
quote:
Name? What name, my display name is 'Mark Jackson' and the login is a simple word.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 3:52 PM
LK

That code is nowhere to be found in the instructions the first part that is smile so I cant apply your possible fix
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 4:01 PM
omegatron, oops.

Quote
quote:
Anyway, it's in ubb_poll_lib.cgi

[ 10-09-2001: Message edited by: LK ]
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 4:15 PM
LK,

I think jordo is heads on the problem your fix did not work. it involves the way whos online changes cookies. UBBPOLL works without whos online and does not when its installed.
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 4:22 PM
Actually I posted it with no connection to your post wink
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 4:22 PM
LOL Well glad to hear but as I am the only person here stating this hack does not work correctly I tried your snipet of code as you have been of help before on solving various voding issues.

You did after all just make the Stats hack PHP compliant smile

[ 10-09-2001: Message edited by: omegatron ]
Posted By: mark99 Re: [6.1x] UbbIntegratedPoll 1.9 - 10/09/2001 5:40 PM
Hmm although LKs fix might do something for my new problem, yet I'll wait for Jordo to check back and see what he says.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/10/2001 1:32 AM
ok i believe i have fixed it though i was only somewhat successfull in replicating the problem.

redownload the zip. upload ubb_poll_lib.cgi and public_new_poll_form.pl

then make the following change in ultimatebb.cgi:

Code
code:

and cross your fingers.
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/10/2001 4:43 AM
Okay Jordo you are half way there. You can now post a topic only if you post a poll along with it. If you only want to post you still have the problem if polls are enabled in the forum.

You were only somewhat successful in recreating the problem? How so?

Anyway as a admin you still cant edit the poll? You cant close it etc.

[ 10-09-2001: Message edited by: omegatron ]
Posted By: mark99 Re: [6.1x] UbbIntegratedPoll 1.9 - 10/10/2001 11:34 AM
WORKS!

Can't speak for the other guy, but it's working fine for me now, no more weird 'NAME' errors when trying to post. Both posting with and without polls works, as does the ability to edit them.

On another note, in your instructions you neglect to add a break to the ubb_new_topic.cgi code right at the end. Thus the line merges with the next 'Sugnature' option under MS IE browsers.

In other words, the first code you have to add into the above file and right at the bottom needs to be more like this:

$vars_wordlets_polls{ipolls_num_options}: ;

Note the

, or just use
, the format still isn't perfect, but it's better.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/10/2001 10:51 PM
Quote
quote:
ok i think i know how to fix the 2nd part.

Quote
quote:
i couldnt actually replicate it so i guessed what the problem could be.


mark99 - heh ya ive been meaning to fix that for like 2 months, something always makes me forget though. ill update the zip in a few minutes.

[ 10-10-2001: Message edited by: jordo ]
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/11/2001 3:50 AM
I will await your fix and keep my fingers crossed.
Posted By: Wiz-Kid Re: [6.1x] UbbIntegratedPoll 1.9 - 10/13/2001 3:51 AM
I've got a small problem.... I realize that you cant change the bar images that come with the poll in the style templates but, when I try and update my style templates it tells me that the poll fields (gif images middle/left/right) are required and weren't filled out?

So now I can't update any style templates.

Besides that though I love it!
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/13/2001 4:57 AM
Yes you can simply put it down the bottom bar.gif for the middle poll bar-l.gif for the left poll and bar-r.gif for the right poll. Your style template will update fine. Your bar.gif's should have been copied to your noncgi directory per the instructions.
Posted By: Wiz-Kid Re: [6.1x] UbbIntegratedPoll 1.9 - 10/13/2001 4:51 PM
thanks
Posted By: Splitfyre Re: [6.1x] UbbIntegratedPoll 1.9 - 10/19/2001 6:33 PM
repost the appropriate link as I am unable to download the hack for installation.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/19/2001 10:41 PM
Quote
quote:
http://temp.jordodesigns.com/UbbIntegratedPoll6.1.x.zip
Posted By: maurice Re: [6.1x] UbbIntegratedPoll 1.9 - 10/23/2001 7:41 PM
I installed the mod, everything is working fine exept the poll does not show up, the message shows, but not the poll, any ideas?

I run 6.1
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/23/2001 9:28 PM
Quote
quote:
make sure you uploaded public_poll_display.pl to your Templates dir...
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 12:15 AM
Jordo this was a real nice hack for 6.05 but I never have got it to work. I installed it on the new 6.1 release and get the following error.

FYI
Error: No forum selected

» Please use your browser's back button to return.

This is with the PHP off and with polls selected on and off.

I rehacked ubb_new_topic.cgi and public_new_topic_form.pl so I dont know what the problem is.

http://www.reeftalk.com/test/cgi-bin/ultimatebb.cgi
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 1:06 AM
omegatron - you need to hack the line in public_new_topic_form.pl where it says something like:
make sure this section in ultimatebb.cgi is in there correctly:
Code
code:
Posted By: omegatron Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 1:35 AM
Fixed my bad. I put the submit target to the wrong submit_new_topic line smile
Posted By: Laszlo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 3:37 AM
I am not sure if I am posting this at the right forum, but it is about this poll script, ...
I just noticed, if someone insert html tags into the poll options, it messes everything up, maybe you could make it, so the script would ignore html tags?

Anyway... it is a great hack jordo.

Laszlo
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 5:15 AM
Quote
quote:
it should be ignoring html tags since it treats all < and > as their & l t ; and & g t ; counterparts (minus the spaces)...
Posted By: Laszlo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 6:19 AM
This is what happen when I try to put a html tag into one of the options:

This is how I create the poll:
[Linked Image]

This is what the poll look like:
[Linked Image]

And this is what happens when I try to edit the poll:
[Linked Image]

Of course it is always possible that I made an error when installing the hack, but maybe its a bug.

I hope it helps.

Laszlo
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 7:30 AM
ok i got a fix, routine wasnt doing what i thought it was. ill post again when i update the instructions (i want to fix a couple things to do with editing so it may be tomorrow).
Posted By: maurice Re: [6.1x] UbbIntegratedPoll 1.9 - 10/24/2001 2:17 PM
I rehacked and it's working now laugh
Posted By: diettalk Re: [6.1x] UbbIntegratedPoll 1.9 - 11/08/2001 7:50 PM
I've installed the hack and it works great.. but the only thing its missing is when someone votes, it won't move the "topic" to the top like regular messages do.. so eventually, the poll will not even be seen unless someone reply's with a message.
Posted By: freeTV Re: [6.1x] UbbIntegratedPoll 1.9 - 11/08/2001 8:12 PM
You can use the Sticky hack, written by the same author, to make sure your topic stay atop.
Posted By: TheBlueFalcon Re: [6.1x] UbbIntegratedPoll 1.9 - 11/08/2001 11:56 PM
I have installed the hack but have a small issue.

When you go to a Poll topic, you see the results at the top of the topic, however by default I am not getting the option to vote! My users have to view the comments and then back out to get the voting option.

Hope I explained it enough!

PLEASE HELP!!! WHAT DID I SCREW UP??

Test poll at www.teamfalcononline.com
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 12:50 AM
TheBlueFalcon - i just registered and voted with no problem... you have to be logged in to see the voting form...
Posted By: TheBlueFalcon Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 12:53 AM
Let me give you access to the Lair!

Look at some of the polls there and tell me if you can see the problem. There are a couple of threads with members issues also!

Thank You so much for your extra effort and work!

I will fix your account right now!
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 1:07 AM
TheBlueFalcon - ok i found the problem. the php accelerator has built in functionality for the polls which i didnt write, but it doesnt take into account polls in private forums. now i havent tried this but it should work (and dont worry it wont break anything:

in ultimatebb.php
Code
code:
Posted By: TheBlueFalcon Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 1:17 AM
Hang on!!

[ 11-08-2001: Message edited by: TheBlueFalcon ]
Posted By: TheBlueFalcon Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 1:30 AM
THAT DID IT!!!


Great Hack man!!!

THANK YOU SO MUCH!!!!
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 7:58 PM
Okay, maybe I have made an error, but I do not think so, I have re-checked the changes.

I have two problems, maybe they are related?

In the control panel the wordlets list is blank - nothing appears, apart from the button to update the Poll Wordlets - and in each new topic box, there are two boxes above the box to tick for receiving notification via email, but the two boxes have not text next to them.

Any ideas, asto where I might have gone wrong?

Canvey.
Posted By: TheBlueFalcon Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 8:10 PM
I also had the control panel issue. It would not let me finish until I forced an image for 3 graphics. I just used a dark star and haven't had any issues, however you guys may want to know!


Thanks again Jordo for all you attention and a great addition to my board!

TBF
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 11/09/2001 9:02 PM
The polls seem to work, as I have a bar going across the screen, but still no wordlets, or graphics beneath the login box.

confused
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 12:13 AM
Canvey - you uploaded vars_wordlets_polls.cgi to the Variables dir and chmodded it (if on unix), right?
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 12:47 AM
Yep - did that - even though it is not in the instructions - some of the files are not mentioned.

However - I have just altered it offline, making the phrases English - we do not understand the phase to 'Check a box' wink I then uploaded it, and it worked - so I guess in the uploading of the file, something failed.

Anyway thanks for a great hack - it apears to be working - so I will release it to the lions wink
Posted By: Caspe7 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 6:15 AM
i'm having trouble getting the wordlits working right.. I've done everything it has said, and uploaded the all the files, and set the permission. But the words are just not showing up.
Posted By: Caspe7 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 6:35 AM
I found the problem, in the ultimatebb, and fixed it now. I didn't add one of the lines because i couldn't find it.

Quote
quote:
I couldn't find it in the search box because you had the ")" there. On mine that was not.. so.. it messed me up. But it works smile
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 10:11 AM
HybridPWF - the modifications wordlets hack might change that line, i cant remember. ill look this weekend and change the instructions if so. thanks for pointing it out. smile
Posted By: khanhdom Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 5:50 PM
ok, I install it, but then when I tried to go to my board it said like my ultmatebb.cgi had problems compiling, do you know what that means

[ 11-10-2001: Message edited by: khanhdom ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 8:55 PM
khanhdom - it most likely mean something in ultimatebb.cgi was added in the wrong place. also make sure you uploaded all the new files in the zip...
Posted By: khanhdom Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 11:16 PM
hmmm...I uploaded all the files in the zip so I guess I messed up on the ultimateubb guess I'll fix it later, thanks for the reply
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 11:28 PM
Is there anyway to stop non moderators / admin from altering the poll?

I want to allow anyone to start a poll - but what I am concerned about is that the starter can alter the number of votes.

Canvey
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/10/2001 11:42 PM
only mods and admins can edit polls...
Posted By: Basil Fawlty Re: [6.1x] UbbIntegratedPoll 1.9 - 11/11/2001 1:18 AM
Ok, I just realized this is not the place for questions, but I can't seem to delete my post (but I can edit it) Anyway, I do have a question RE: The Integrated Poll Hack, which I have posted in the "Questions about Mods" forum.

Basil

[ 11-10-2001: Message edited by: Basil Fawlty ]
Posted By: Kenny22 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/12/2001 2:07 AM
Any chance there will be a multihack for this great hack? Thankie, and good job! smile
Posted By: CtrlAltDel Re: [6.1x] UbbIntegratedPoll 1.9 - 11/15/2001 12:03 AM
real men hack it themselves wink
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/15/2001 12:24 AM
Quote
quote:
hehe. well really the multihack stuff i dont do. once this goes final if someone makes on i will put it in the initial thread, but thats all.
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 11/17/2001 10:07 AM
Any chance if this going final jordo? I'd like to install it here smile
Posted By: oliwood Re: [6.1x] UbbIntegratedPoll 1.9 - 11/19/2001 12:40 PM
Question: I have installed the whos online hack!!!
Is it possible to add this hack wwithout troubles?
Posted By: Aliensw Re: [6.1x] UbbIntegratedPoll 1.9 - 11/19/2001 1:41 PM
yep it is. i have the whos online too and i hade no problems to add this mod.
Posted By: oliwood Re: [6.1x] UbbIntegratedPoll 1.9 - 11/19/2001 2:10 PM
Ok, i hacked the files right now, but this error occurs:
Information
Fehler: Kein Forum ausgewählt
» Bitte benutzen Sie die ZURÜCK-Funktion Ihres Browsers.


In Englisch: "No Forum chosen!"
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/20/2001 1:52 AM
Allen - yes theres nothing more i want to add, just trying to make sure all problems posted here get wrapped up.

oliwood - when do you get this error msg?
Posted By: nystreetracing Re: [6.1x] UbbIntegratedPoll 1.9 - 11/20/2001 8:36 AM
can someone please tell me where these lines are located in cp.cgi:
Quote
quote:
i havent tested anything yet but it seems to all be there except i have no wordlets and when i click on poll settings it tell me that i dont have access to that area. confused

What the hell did I do? =( TIA

UPDATE: I just tested it and when I try to create a poll it tells me that there is no forum selected.

[ 11-20-2001: Message edited by: nystreetracing ]

[ 11-20-2001: Message edited by: nystreetracing ]
Posted By: tomjinx1 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/20/2001 2:15 PM
PROBLEM NOW FIXED----
When I deleted the post, it deleted just that..the post. However, it left the postnumber.poll file on the server so when someone created the next topic, Ubb gave that thread the next number which was the same as the deleted post. So therefore the postnumber.poll file kicked in. smile All I had to do was delete that .poll file and it's working great. Thanks Jordo and all you other guys that helped him.. smile

Tom

I have a problem and I scanned through the other replies and didn't see this so I'm going to ask.

I got the hack running on my site and it runs great. However, let's say I create a poll and submit it. Then I decide that I don't like it and delete it. The next person to post a topic it that forum will have the poll I created and deleted on the top of there message. Is there a way to fix that?

Here is a link to my site. In the General Discussion is where I'm talking about. I created a test poll, then after seeing that the poll hack worked, I deleted that thread. When one of my members posted the next topic, it put my test poll at the top of his thread... Here is the link. Osok Boards

Please help...

Tom

[ 11-20-2001: Message edited by: tomjinx1 ]
Posted By: Moderator Re: [6.1x] UbbIntegratedPoll 1.9 - 11/20/2001 8:34 PM
Can a check be put in that makes sure that user with no posting rights cannot cast a vote?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/22/2001 10:42 PM
tomjinx1 - how did you delete the poll? it is set up to delete the .poll file when the thread is deleted through editing, or though the delete button, or through the cp prune...
Posted By: yozy2001 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/26/2001 5:27 PM
hmm, when i try to post a poll, it says, "FYI:
No Forum Selected"

confused

i'm using UBB 6.1.0.3
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 11/29/2001 7:32 AM
Would writing an mhk file stop the install errors and get this one to finished status?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 11/29/2001 10:16 PM
quote:
Originally posted by AllenAyres:
Would writing an mhk file stop the install errors and get this one to finished status? wink
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 11/30/2001 5:26 AM
OK, this assumes you have already added the wordlets mod devkit and have xhtml'ized your forums. Tested with 6.1.0.3.

https://www.ubbdev.com/mhk/ubbintegratepoll61.mhp

If you analyze it and get some errors, it is because you either don't have xhtml in your files or don't have the wordlets installed.

Works with multihack 1.5.3, hopefully I can get it to work with the upcoming 2.0 too
Posted By: Pulk99 Re: [6.1x] UbbIntegratedPoll 1.9 - 11/30/2001 10:42 PM
maybe it's already posted, but when u try to move a poll it only moves the post no the poll, would be nice if the whole poll would can be moved in a other forum, but it's not so important.
Great hack anyways !
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 12/01/2001 7:31 AM
Quote
quote:
hmmmm... I am getting this error too when I try to post a poll

OK, found where my error was (MHP updated too) I mis-hacked public_new_topic_form.pl. I added this:



before instead of in place of the original code.

That should fix it for olliwood too.
Posted By: MECHBR Re: [6.1x] UbbIntegratedPoll 1.9 - 12/01/2001 4:51 PM
Quote
quote:
friend I did not obtain to decide the error still I appear for me the
messages of:


You did not complete all required fields.
You did not complete: pollgifmiddle
You did not complete: pollgifleft
You did not complete: pollgifright

in sytle templates
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 12/01/2001 5:05 PM
Rehack cp_vars_style.pl/cp_add_new_template.pl
Posted By: MECHBR Re: [6.1x] UbbIntegratedPoll 1.9 - 12/01/2001 5:28 PM
thx very mach man.
Posted By: MECHBR Re: [6.1x] UbbIntegratedPoll 1.9 - 12/02/2001 2:20 AM
JORDO my button of sytles now does not function friend what it will be that
happened? it tava functioning more of the nothing stopped.
Posted By: MECHBR Re: [6.1x] UbbIntegratedPoll 1.9 - 12/02/2001 2:28 PM
this not functioning friend the button: update style settings

Squeeze in it and nothing happens.
Posted By: MARCOSMR2 Re: [6.1x] UbbIntegratedPoll 1.9 - 12/06/2001 12:20 PM
help me friend pliz.
Posted By: actfact Re: [6.1x] UbbIntegratedPoll 1.9 - 12/07/2001 3:01 AM
lovely

[ 12-06-2001 11:56 PM: Message edited by: actfact ]
Posted By: CNA Re: [6.1x] UbbIntegratedPoll 1.9 - 12/10/2001 11:52 AM
I'm sorry if this has already been fixed/discussed but I don't have much time, so I can't read whole of thread.

In Public_topic_page.pl I can't find :



I have Compact Headers (latest) is this why?

(I also have name effects, Who's online,sticky topics, Avatars, Start Time and last reply hacks installed.)

Thanks.
Posted By: CNA Re: [6.1x] UbbIntegratedPoll 1.9 - 12/14/2001 9:45 PM
Please help?

BUMP.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 12/14/2001 10:00 PM
CNA - can you find "End UBB Friend"? if not add it after this instead:

[code][/code]
Posted By: CNA Re: [6.1x] UbbIntegratedPoll 1.9 - 12/14/2001 10:16 PM
Thanks for the quick reply Jordo, I'll try it right away.


-------

And can someone tell me whats wrong with LK?

*AIM CONVO*

LK UBB: who are you
LK UBB: ?
CNASDG: Andrew aka CNA aka Andrewstovold on AIM. It doesn't matter now LK, got Jordo's help. Thanks anyway.
LK UBB: why did you AIM me with 2 accounts?
CNASDG: coz I thought you blocked me on my first one after yesterday
LK UBB: I'm removing both of them from AIM
LK UBB: and blocking
LK UBB: and all the other ones as well
CNASDG: Why?
CNASDG: What have I done?
LK UBB: because it's like the 5th time you're doing it
LK UBB: have a nice da
LK UBB: y
LK UBB signed off at 20:19:16.

I don't think I did anything wrong, I don't annoy him, just ask for help when I'm in trouble I thought thats what people on here do, Help us with mods etc. and help us with forums. I even said to LK, I know you're not the author, but could you help me.......??
Posted By: CNA Re: [6.1x] UbbIntegratedPoll 1.9 - 12/14/2001 11:19 PM
Dayum, first time I've had a problem with a hack (apart from above) for a lonnnnggggg time. Anyway, my problem this time, is that when I go to start a new topic, I tick the polls box, and put (for example) a 4 in Poll Options, but as soon as I press Add New Topic, I'm presented with a blank page.

When I try to start a topic WITHOUT a poll, its fine. So any ideas what I've done wrong?

Thanks, CNA.
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 12/15/2001 12:11 AM
upload public_new_poll_form.pl to your templates dir
Posted By: CNA Re: [6.1x] UbbIntegratedPoll 1.9 - 12/15/2001 12:29 AM
Ok Jordo, I'm REALLY sorry about this;

Firstly, I apologize for my problem being I didn;t upload file, but after you gave me advice on where to put the code where I couldn't find UBB Friend, this is what it looks like now:

[Linked Image]

This is the code I entered for Public topic Page :

Public topic Page.pl:


[code][/code]

Ok, it looks wrong already, but help the dumb kid with the dumb name

Thanks again, CNA.

Note there are spaces either side of $poll_display.

[ 12-14-2001 04:30 PM: Message edited by: CNA ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 12/15/2001 2:21 AM
hmm youve got theings all shifted around in public_topic_page.pl. can you find this?

[code][/code]
Posted By: Cobra Re: [6.1x] UbbIntegratedPoll 1.9 - 12/15/2001 5:42 AM
Hi,

Greg Hard, a member here installed this hack for me. I haven't heard from him for around four weeks so I suspect he's on vacation or something.

Anyway, the problem I am having is that UBB Poll will tell some members that they have alreay voted when they have not.

This does not happen to every member.

Any ideas on what could be wrong. This was installed about 6 weeks ago so if a new version would solve the issue will the multihack version install ove the top of the older version properly?

Thanks
Posted By: mrnewbie Re: [6.1x] UbbIntegratedPoll 1.9 - 12/24/2001 9:07 PM
woks well but after installing
i cant update my style teplate if i make any changes i get

You did not complete: TemplateName

dont know if this has been metioned any help plz
Posted By: Morpheus Re: [6.1x] UbbIntegratedPoll 1.9 - 01/05/2002 7:20 PM
I installed the Poll hack fine, everything is working alright, BUT it's killed the Primary Settings column in the CP. I thought it was cp_common.pl but i've quadrouple checked it and it seems fine..

I haven't got XHTML Templates installed.
Any help is greatly appreciated.
Posted By: steamfish81 Re: [6.1x] UbbIntegratedPoll 1.9 - 01/06/2002 4:17 PM
Err, why are my polls/results center-alligned ? How can I change them to left-alligned ?
Posted By: RandyM Re: [6.1x] UbbIntegratedPoll 1.9 - 01/06/2002 4:40 PM
I have a minor problem (major to me) and I was wondering if you could help. Click here for a screenshot.

If I send you my public_topic_page and my modified public_poll_display pages do you think you can help me get rid of that extra blue stripe above the poll section?

Thanks.
Posted By: Boubou Re: [6.1x] UbbIntegratedPoll 1.9 - 01/07/2002 8:28 AM
hmmmm problem with poll

I start a poll and i deleter the thread

When i start a new topic he is a poll ??

why ?

how delete poll ?
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/07/2002 10:01 AM
Cobra - i would download the zip file, and upload the file ubb_poll_lib.cgi to your server, it is possible that he used an old version that has a bug in it. do not apply the multihack at this point, afaik it will just double the code since it is already there.


mrnewbie - make sure you have all the latest templates before applying this hack. iirc this happens when a 6.0x template (cp_add_new_style.pl or something like that) is used with 6.1.x.

Morpheus - it would have to be code in cp_common.pl. remove the additions this hack makes to that file and see if it works, if it still does not then compare it to a stock file, as you may have accidentally deleted something.

steamfish81 - all the html is in the templates file, in particular, public_poll_display.pl. you can add center tags in there, look for html code following a line like "sub results {" of something of that sort. should be fairly straightforward.

XPerT - you cannot send ubb files. you most likely have an extra cell near the top of the file public_poll_display.pl

Boubou - check the additions you made in ubb_topic_maint.cgi. the .poll file should be deleted whenever a topic is deleted if that file was edited correctly.
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/07/2002 8:17 PM
Does this hack work with 6.2 beta release?
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/08/2002 3:58 AM
I've got the Polls working on beta 6.2....well for the most part. The only problem I've encountered, which may be a universal problem, is the polls do not work properly when viewing and writing of posts are restricted to Administrators, the forum Moderator, and other authorized* users.

Has anyone else had this problem with 6.1?

Thanks
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/08/2002 4:35 AM
sorry i havent had a chance to test it on 6.2 yet, but i will.

can you describe the problem that occurs? afaik there is no such problem when using it with 6.1.0, but more information would be helpful smile
Posted By: Corona Re: [6.1x] UbbIntegratedPoll 1.9 - 01/08/2002 6:01 AM
Thanks Jordo for the Code -- works beautifully on V6.1.0.3
Posted By: Fuzion Re: [6.1x] UbbIntegratedPoll 1.9 - 01/08/2002 8:29 PM
Does anyone have a multihack file for this?? I need one for the latest version of multihack. I am too lazy to install this huge mod, that is why I need it.
Posted By: Boubou Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 1:17 AM
this hack work very fine in public forum

but in private forum he dont work correctly

somebody have this problem ??
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 1:36 AM
Jordo,
Here's the scope.

When the forum is made completely private (in the bb CP by checking off "Restrict Viewing and Writing of Posts To Administrators, the forum Moderator, and other authorized* users" in the details section for a particular forum), not all polling functionality works properly ie. all votes cast for that poll are not recognized.

I believe I have found the source to the problem. Forums that are made private create a sub dir within the main forum dir (main dir: Forum#, sub dir name: private-whatever), the initial .poll file is created within the private-whatever dir. Once a vote is cast, the vote gets written to a new .poll file within the main forum dir Forum#. This is what causes the conflict.

The .poll file within the sub dir, private-whatever is what is called on when displaying current poll results. It is inacurate because it never changes. Only the second .poll file (which shouldn't even be there) within the main forum dir, Forum#, is updated with new poll votes.

Since I've pretty much narrowed it down, I'm sure this will be an easy fix. If I get the time, I might even put my novice skills to the test and try to fix it myself. If I do, I'll be sure to post the fix here.

You can check out the problem forum here

User Name: test
Password: polltest

Otherwise, great job on this hack!

Thanks
Ron
Posted By: RandyM Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 2:22 AM
Gridlock, why doesn't your board have an Infopop copyright?
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 2:35 AM
It was accidentally removed when I intergrated the forum into my web site design. Don't worry it's on the to do list
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 5:07 AM
The exact path is constructed when you vote, so it should be writing to the .poll file in the private subdir. on viewing your test board, i notice that the test account has already voted in that poll... have you done something to change it here? or was the test account able to vote and have their vote recorded properly?
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 5:12 AM
Woo Hoo! Just fixed it!

In ubb_poll_lib.cgi

Find (three times)
if ($permission eq 'private') {

Replace With
if ($permission =~ m/private/) {

And thats it!
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 5:24 AM
quote:
Originally posted by jordo:
The exact path is constructed when you vote, so it should be writing to the .poll file in the private subdir. on viewing your test board, i notice that the test account has already voted in that poll... have you done something to change it here? or was the test account able to vote and have their vote recorded properly?



It did not properly recognize that the forum was restricted/private, so it would write a new .poll file to the main forum directory and not onto proper .poll file in the private sub dir. Making that change I've listed above corrected the problem and it works perfect now!

Once again great job with the hack!

Ron

[ 01-08-2002 09:25 PM: Message edited by: GRIDLOCK ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 6:12 AM
well now thats what i call testing. file updated with fixes, thank you.

-jordo
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/09/2002 2:21 PM
quote:
Originally posted by GRIDLOCK:
It was accidentally removed when I intergrated the forum into my web site design. Don't worry it's on the to do list smile It's only 1 file!

[ 01-09-2002 06:25 AM: Message edited by: LK ]
Posted By: GRIDLOCK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/10/2002 2:02 AM
quote:
Originally posted by LK:
Please add it ASAP... Err, please add it NOW tipsy

[ 01-09-2002 06:25 AM: Message edited by: LK ]




Hows This

It's not the standard location but I think it does the job. If you want to get technical, the font is even bigger!

Ron
Posted By: Rainner Re: [6.1x] UbbIntegratedPoll 1.9 - 01/10/2002 7:39 AM
Hi all,

Quick question. Can the polls be added to the sidebar area if you want or only in posts.

Thanks

Rainner
Posted By: Rainner Re: [6.1x] UbbIntegratedPoll 1.9 - 01/10/2002 7:28 PM
Very nice hack! Thank you!

Rainner
6.1.0.3
Posted By: AllenAyres Re: [6.1x] UbbIntegratedPoll 1.9 - 01/14/2002 8:17 PM
Just wondering if an SSI to another page has been done on this...
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/14/2002 9:05 PM
no, but it is something to think about...
Posted By: kamli Re: [6.1x] UbbIntegratedPoll 1.9 - 01/16/2002 4:36 PM
it sounds like a nice hack but i can't get it to work i've installed and hacked all the files as said but thats what i get everytime .......
i hope someone can tell me whats wrong here

==================================================
/usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi: syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 172, near "$permission ~"
syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 226, near "}"
==================================================

cheers :}
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/16/2002 10:28 PM
kamli - redownload the zip and reupload ubb_poll_lib.cgi
Posted By: Fistandautilus Re: [6.1x] UbbIntegratedPoll 1.9 - 01/16/2002 11:29 PM
When I try to use the MultiHack file, MultiHack tells me that the file is created in an earlier version and is not supported....

[Linked Image]
[Linked Image]

Any suggestions?
Posted By: kamli Re: [6.1x] UbbIntegratedPoll 1.9 - 01/17/2002 2:46 AM
Jordo i'm still getting the same error .......

/usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi: syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 172, near "$permission ~"
syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 226, near "}"


i checked the ubb_poll_lib.cgi
and this is the section thats causing the problem
sub do_vote {
my(@choice,$new_total,$comment_num);

my $type = param('type');
my $vote = param('vote');
my $comment = param('comment');
my $username = param('username');
my $forum = param('forum');
my $thread = param('thread');

#get forum details
my @this_forum = &GetForumRecord($forum);

# determine exact path & check permission if necessary
my $permission = $this_forum[6];
my $exact_path = "Forum$forum";
##line 172## if ($permission ~= m/private/) { $exact_path .= "/private-$this_forum[7]";
}

&RequireVars("$vars_config{NonCGIPath}/$exact_path/$thread.poll");

unless ($vote) {
&StandardHTML("$vars_wordlets_polls{ipolls_option_error}");
}
if ($username eq "") {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

$vars_wordlets{login_now}!);
}

my @voters = split(/||/, $poll_data{voters});
foreach my $voter (@voters) {
if ($voter eq $username) {
&StandardHTML("$vars_wordlets_polls{ipolls_already_voted_error}");
}
} # end foreach

$poll_data{voters} .= "$username||";
foreach my $key (keys %poll_data) {
if ($key =~ /choice_/) {
@choice = split (/||/, $poll_data{$key});
if ($vote eq $choice[0]) {
$new_total = $choice[1] + 1;
$poll_data{$key} = "$choice[0]||$new_total";
}

}
}
if ($comment) {
$poll_data{comment_total} = $poll_data{comment_total} + 1;
$comment_num = "comment_$poll_data{comment_total}";
$poll_data{$comment_num} = "$username||$vote||$comment";
}
$poll_data{total_votes} = $poll_data{total_votes} + 1;

&WriteHashToFile("$vars_config{NonCGIPath}/$exact_path/$thread.poll", "poll_data", %poll_data);

# take viewer back to topic
my $forum = param('forum');
my $topic = param('thread');

# grab topic
my @this_topic = &OpenTopic($topic, $forum);

# grab topic stat line
my @stat_line = split(/||/, $this_topic[0]);

do "$vars_config{NonCGIPath}/styles/vars_style_$template_match{transition}.cgi";
&set_page_elements;
&Transition("$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$forum&t=$topic", "$vars_wordlets_polls{ipolls_thanks_voting}", "$stat_line[4]");

} ## end do_vote sub #######line 226######

i hope this can help to identify the problem

cheers
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/17/2002 3:17 AM
you did not upload the new ubb_poll_lib.cgi, please do that.
Posted By: kamli Re: [6.1x] UbbIntegratedPoll 1.9 - 01/17/2002 3:39 AM
jordo i upeed the ubb_poll_lib.cgi file and then i got this error ....
i hope its the same file on page 1 of this post....

let me know if u want me to do something else

thanks a lot for helping .......
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/17/2002 6:03 AM
ok i updated the zip when i replied previously (4 replies before this) and the code you posted is not from the updated version. so... redownload the zip and upload ubb_poll_lib.cgi.
Posted By: TniT Re: [6.1x] UbbIntegratedPoll 1.9 - 01/18/2002 10:31 PM
this works! excellent!

the current problem is lack of sleep and fast typing wink

Code
[/code]
the "~=" needs to be "=~"
only change on line 172
that will solve it :D
(make sure that u download the zip (now) and use it, 'couse maybe u got a version of it with more errors in it on the private thing) (i've downloaded it about 1 hour ago)

also, i don't know perl, or ubb hacking, but i'm not sure that "m" in the m/private/ is needed (it's not there on my screen at least)


there is however 1 other issue:
i started a new poll (test poll)
in the subject of the poll (after the "add new topic")
i wrote:
Code
</pre></div></div><br>and that was the output:<br>[code]


after some more testing, i've found out that when u create a poll, it ignores the "Disable smilies in this post." and displays them no matter what (including that error)

however, i've installed a Greamlins hack, so it might be that too, i dunno confused

great hack! ('cept for that minor problem)

--
1 more thing, the "code" UBB tag does not disable other ubb tags (like the wink for the graemlins) so what is it for? wink

(yes, 3rd edit 'couse i forgot to disable smilies again :p)
[ 01-18-2002 02:32 PM: Message edited by: TniT ]

[ 01-18-2002 02:36 PM: Message edited by: TniT ]

[ 01-18-2002 02:38 PM: Message edited by: TniT ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/19/2002 12:52 AM
quote:
Originally posted by TniT:
this works! excellent!

the current problem is lack of sleep and fast typing wink

quote:
Originally posted by TniT:

there is however 1 other issue:
i started a new poll (test poll)
in the subject of the poll (after the "add new topic")

...
1 more thing, ...




ill take a look at those, but it uses the standard ubb parsing routines for smilies and ubbcode, so if you have a hack that modified those it may be causeing some conflicts.
Posted By: kamli Re: [6.1x] UbbIntegratedPoll 1.9 - 01/20/2002 7:31 AM
hi jordo ..........

i got the hack to work ......
the updated ubb_poll_lib.cgi works pefectly fine ...

thanks
Posted By: Red Cafe Re: [6.1x] UbbIntegratedPoll 1.9 - 01/20/2002 3:04 PM
Erm, maybe I'm really dumb but I can't for the life of me download the zip file from http://www.jordodesigns.com/UbbIntegratedPoll6.1.x.zip

It appears the file isn't there?!

If anybody could email the latest version of the hack to [email protected] I'd be very grateful.

Thanks in advance!

[ 01-20-2002 07:12 AM: Message edited by: Red Cafe ]
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 01/20/2002 10:06 PM
try again Red Cafe, its there.
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/20/2002 10:14 PM
It's because there is a redirection. Try http://www.cs2.addr.com/jordo/UbbIntegratedPoll6.1.x.zip
Posted By: Slurpee Re: [6.1x] UbbIntegratedPoll 1.9 - 01/22/2002 12:48 AM
Question. Been reading through the thread and it's hard to tell. Does this now work with the acclerator or not? I saw Jordo refer to ultimatebb.php in one post but in the directions it makes no mention of that file. Just curious because as I have it, it won't work with the accelerator and seems people do have it working right with it. I must have missed something.
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 01/23/2002 5:38 PM
Can anyone help us regarding whether this works with the acc?

BTW - I have created a MultiHack file for this version. It will work if you have Sticky Threads installed or not. This is based on Version 2.0, which the zip file is, and not 1.9.

You can grab a copy of it here.

I have tested it on 6.1.0.4

Not sure if one of the mods would like to upload it to the database here.

Whilst I do not have the time to make hacks, I can build MultiHack files, and make them available to others.

Regards,

Ian
Posted By: LK Re: [6.1x] UbbIntegratedPoll 1.9 - 01/23/2002 5:58 PM
Jordo, to get it to work with PHP and 6.2:[code][/code]

[ 01-23-2002 10:01 AM: Message edited by: LK ]
Posted By: Ian_W Re: [6.1x] UbbIntegratedPoll 1.9 - 01/23/2002 8:30 PM
LK - which file would this be in? Would this work with php & 6.1.0.4 or just 6.2?

BTW - the multihac version linked on page one, is for the older version, my multichack version is for 2.1.

Regards,

Ian
Posted By: Hagar Re: [6.1x] UbbIntegratedPoll 1.9 - 01/31/2002 6:42 AM
I installed the poll and it's working great except for when you view the page before you submitted a vote. than the poll options are centered on the page instead of aligned to the left (that's where I want them)

What do I need to modify to do this?

Hagar
Posted By: QRcom Re: [6.1x] UbbIntegratedPoll 1.9 - 02/01/2002 3:16 AM
I apologize if this has already been answered. But has this been tested and verified under 6.2.0 the final release?

Thanks!
Posted By: Nervana Re: [6.1x] UbbIntegratedPoll 1.9 - 02/02/2002 2:30 AM
quote:
Originally posted by QRcom:
I apologize if this has already been answered. But has this been tested and verified under 6.2.0 the final release?

Thanks!

read this plz:
http://www.lkubb.dns2go.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=000016
Posted By: Charles Capps Re: [6.1x] UbbIntegratedPoll 1.9 - 02/02/2002 4:49 AM
Just upgrade to 6.2.1, which will be released as a beta Very Soon Now. laugh
Posted By: jordo Re: [6.1x] UbbIntegratedPoll 1.9 - 02/02/2002 5:13 AM
quote:
Originally posted by Charles Capps:
Just upgrade to 6.2.1, which will be released as a beta Very Soon Now. laugh

yeah, what that guy said. tipsy
Posted By: Nervana Re: [6.1x] UbbIntegratedPoll 1.9 - 02/02/2002 5:44 AM
quote:
Originally posted by Charles Capps:
Just upgrade to 6.2.1, which will be released as a beta Very Soon Now. laugh

Yeah i can see 6.2.1 Development Beta 8.1 over ur website two days ago and now its 8.3. smile
Posted By: Nervana Re: [6.1x] UbbIntegratedPoll 1.9 - 02/02/2002 5:46 AM
Is this poll dead now after 6.2.0? confused