Previous Thread
Next Thread
Print Thread
Rate Thread
#149279 01/22/2002 3:17 AM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
I was thinking to myself how it'd be nice if people could create polls as easily as they do new threads..so, I whipped this hack up to achieve just that and draw more attention to the feature...

It'll add a "New Poll" graphic next to your "New Thread" graphic which links to a modified form with the poll option already selected and the 'Number of choices' field under the Subject for easy, obvious access...the user can then click 'Continue' to fill in the rest of the Poll information. This does not use Wordlets, but I guess it could.

This is my first hack..and really nothing major..but give it a try. smile

Bottom buttons demo:

[Linked Image]

Poll Form #1 screenshot:
[Linked Image]

[ 01-25-2002 03:57 PM: Message edited by: Soul Survivor ]


can't find peace of mind but every corner's got a mcdonalds?!
Sponsored Links
#149280 01/22/2002 12:55 PM
Joined: Jun 2001
Posts: 62
Eel Offline
Member
Member
Offline
Joined: Jun 2001
Posts: 62
demo?

#149281 01/22/2002 1:10 PM
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Very nice! I wanted something like this for 6.1, now it's here. I will install it later today! Thanks.

#149282 01/22/2002 1:17 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Very cute

#149283 01/22/2002 1:56 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
... you do realize that 6.2's polling feature is just around the corner, right?


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
#149284 01/22/2002 8:24 PM
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Will 6.2 polls be the same style as this hack makes them to be?

#149285 01/22/2002 9:03 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Nice work Soul Survivior. Looks good.

#149286 01/23/2002 10:05 AM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Thanks people smile


can't find peace of mind but every corner's got a mcdonalds?!
#149287 01/23/2002 7:06 PM
Joined: Dec 2000
Posts: 15
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 15
Hey,

I had problems with:

ubb_lib_posting.cgi -Perl Error
newpoll.gif - NonCgi variable put in wrong or something? shows up as:

cgi/(NonCGIURL}/newpoll.gif

#149288 01/23/2002 8:01 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Heh, yeah, a little typo in my .ZIP I see. . That ( should be a {

The ZIP file's been updated; though you just need to make that one change.

Thanks for the heads up... .


can't find peace of mind but every corner's got a mcdonalds?!
Sponsored Links
#149289 01/23/2002 8:13 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Looks a good idea - but just one thought the Polls Icon should really be in the same style as the default icons - as your icon will not fit in with most peoples styles.

Ian.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
#149290 01/23/2002 8:22 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Yeah, I didn't think about that, but I wasn't even going to include an icon @ first..then I figured 'Oh what the hell, I'll throw an example one in there'. . shrug, there is no default poll icon since polling isn't a native UBB function (yet), so I just hit up the good ol' database and grabbed somethin. .

But if anyone would like to contribute a default-matching new poll graphic, I'll include it. My graphic skills are limited to cropping.

[ 01-23-2002 07:32 PM: Message edited by: Soul Survivor ]


can't find peace of mind but every corner's got a mcdonalds?!
#149291 01/23/2002 9:08 PM
Joined: Dec 2000
Posts: 15
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 15
Nice hack.

I found the change, if you don't want to look for it.

Ubb_lib_posting.cgi
Find:
$vars_config(NonCGIURL}/newpoll.gif
Replace with:
$vars_config{NonCGIURL}/newpoll.gif

Thanks for the speedy reply!

#149292 01/24/2002 11:45 AM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
The instructions have been updated; thanks icey..

I also made a fix to public_new_poll_form2.pl -- thanks nemesis.


can't find peace of mind but every corner's got a mcdonalds?!
#149293 01/25/2002 4:56 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Mmkay, I'm releasing v1.1 of this bad boy.. .

Improvements --

The hack now actually checks to make sure polling is turned on in the specific forum before displaying the images. This is true for both the forum and thread pages.

And, much thanks goes to Canvey, who not only hooked up a default-matching image for the hack, but also threw together a MultiHack (v2) file for it.

Image: [Linked Image]

MultiHack available @ http://www.nl-forums.co.uk/ubb/multihack/newpoll.mhp

[ 01-25-2002 03:59 PM: Message edited by: Soul Survivor ]


can't find peace of mind but every corner's got a mcdonalds?!
#149294 01/28/2002 12:59 AM
Joined: Jan 2002
Posts: 5
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 5
Never mind me... I kinda over looked the fact that integrated polls was required...
That is probly my problem..
heh heh...uh.. heh

[ 01-28-2002 12:50 AM: Message edited by: Kid Emo ]

#149295 02/01/2002 3:08 AM
Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
When i woke up this morning....no i must start different. When i want to post a topic this morning, i came on the forum-intro at once without see the topic. There was no topic. The who's online with the note that i was online was gone also. Other members noticed the same problem. And...the preview did not work. Al we could do was reply, but that's only half of a forum's function so i had to act.

I make backups, so i can step by step replace files and i came to the conclusion that it has something to do with this hack. Could it be that this modification begins to make files with a sort of Harry Potter behavior?

#149296 02/01/2002 12:27 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
I guess anything's possible but I don't know how this hack would effect all that stuff.. But I guess my suggestion would be to try again, but do it differently. Upload all the new files in my ZIP to their right places, then only do the ULTIMATEBB.CGI part in the install.txt. Then try going to http://yourboard/yourcgipath/ultimatebb.cgi?ubb=newpoll and see if that draws the form properly.

You can contact me on AIM under the name ippiippi if you need to.


can't find peace of mind but every corner's got a mcdonalds?!
#149297 02/01/2002 1:46 PM
Joined: Oct 2001
Posts: 95
Member
Member
Offline
Joined: Oct 2001
Posts: 95
I also got some problems. I've looked it over several times but the box for the number of poll options doesn't show up on the new poll page.

#149298 02/01/2002 3:13 PM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
This hack requires Integrated Polls..

If you've got it installed, make sure you have polls turned on for that specific forum.


can't find peace of mind but every corner's got a mcdonalds?!
#149299 02/01/2002 11:44 PM
Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hi,

I have rehacked ubb_forum.cgi several times and everytime I clear cache and bring up the board, when I go into a forum where polls are activated I get this error msg.
-------------------------------------------
An error has occured:

/home/bud/cgi-bin/ubb_forum.cgi: syntax error at /home/bud/cgi-bin/ubb_forum.cgi line 205, near "Post a Poll"
syntax error at /home/bud/cgi-bin/ubb_forum.cgi line 250, near "$Sections = int($count / $vars_display"
----------------------------------------------

Can anyone spot the error? I'm just cutting and pasting but cannot see anything.

Thanks for any input

Rainner

#149300 02/02/2002 12:43 AM
Joined: Oct 2001
Posts: 95
Member
Member
Offline
Joined: Oct 2001
Posts: 95
quote:
Originally posted by Soul Survivor:
This hack requires Integrated Polls..

If you've got it installed, make sure you have polls turned on for that specific forum.

I know cause I tend to read quite carefully before I start hacking.
But still no poll option frown

I've removed it now but perhaps I'll have another go at it later

#149301 02/02/2002 11:25 AM
Joined: Dec 2001
Posts: 90
Member
Member
Offline
Joined: Dec 2001
Posts: 90
Rainner..try re-hacking ubb_forum.cgi. Also, you're showing 2 syntax errors -- on line 205 and 250 -- but my hack doesn't go that far down smile

Hagar, humm, try replacing $show_poll_add in public_new_poll_form2.pl with






can't find peace of mind but every corner's got a mcdonalds?!

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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)