Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 7 1 2 3 4 5 6 7
#145320 07/31/2001 8:14 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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 ]

Sponsored Links
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Installing right now. I will get back to you..

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
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 ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Nevermind, works now.

[ July 31, 2001: Message edited by: Tech-Ni-Kal ]

Sponsored Links
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
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 ]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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 ]


- Allen wavey
- What Drives You?
Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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

Joined: May 2001
Posts: 88
Member
Member
Offline
Joined: May 2001
Posts: 88
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

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
Exactly what you can do.

[ August 01, 2001: Message edited by: Tech-Ni-Kal ]

Sponsored Links
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
jordo, was just wondering if you got my zip on the wordlets and such...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I'll be installing this on a test site soon and will send you the xhtml-ized template files asap smile


- Allen wavey
- What Drives You?
Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Allen, you don't have too. I just finished that. Jordo, if you would like them please tell me.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
thanks to some great work by tech-ni-kal zips are updated to v1.8. laugh

Joined: Jun 2001
Posts: 37
Member
Member
Offline
Joined: Jun 2001
Posts: 37
Jordo,

Whats required to up grade from 1.7 to 1.8?

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
Thanks! tipsy

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
Quote
quote:
Right.. :rolleyes: That kinda pisses me off. mad

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
Hey man, I told him you helped...

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
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

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
You never told me that...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ummmm.. aren't both of you the same ones LK had to give some pointers to for basic xhtml construction?... play nice wink


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
k, no trouble here. I am just peachy. cool

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Quote
quote:
Yes, sorry. We will play nice.

Joined: Feb 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 33
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?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
[HF]Phoenix - this happens on a poll you have created before anyone has voted?

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
Re-Hack ultimatebb.cgi and you should be fine.

Joined: Feb 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 33
This happens, when I want to create a poll...but when i will be back from work today, i'll re-hack ultimatebb.cgi

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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 ]

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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 ]

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
just thought I would add that v1.7 of the poll MOD works with beta 1.2 with no problems

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
im installing beta 1.2 right now to test/bugfix.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks jordo... I'd like to help with the testing once you've gotten a few of the majors worked out wink


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool.. we'll give it a shot tomorrow night then, my eyes are crossing smile


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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 :

Joined: Dec 2000
Posts: 51
Member
Member
Offline
Joined: Dec 2000
Posts: 51
Hi there, did the hack, but cp.cgi is coming up blank....
Any idea where to start looking?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
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.

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
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.

Page 1 of 7 1 2 3 4 5 6 7

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)