vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [preview] Poll hack (https://vborg.vbsupport.ru/showthread.php?t=1604)

07-06-2000 08:22 PM

Ok, you can peview the poll hack here:
http://www.naboonline.com/polltest/index.php

posting a reply causes the poll post.

the curreny big bug is that the redirection after vote/post is not working, you have to press back and reload to see the differences.

verify email is turned off.

07-06-2000 10:09 PM

I just tested it - except for the blank screen after you vote, it looks pretty good!

07-07-2000 07:40 AM

Hello,

It looks great so far! I can't wait for a final release.

Now all we need is someone to work on the ratings for a thread. :)

07-07-2000 05:01 PM

Am I the only one who cannot view a poll?? No matter what thread I view I get "Invalid username. Please press the back button, enter the correct password and try again. To register, click here! ". I did register and am logged in (it even shows my name on the currently active users). It even let me post a new poll.

07-07-2000 05:03 PM

If you set your profile to NOT save your info "in browser memory" you cannot view any polls. I changed it to yes and everything works now.

07-07-2000 05:29 PM

i noticed a few polls were submitted that crashed due to using ', this was fixed thanks to Mas*Mind

07-07-2000 05:43 PM

I voted no problem, but the refresh had a:

Parse error: parse error in /home/naboonl/public_html/polltest/poll.php on line 415

07-07-2000 06:51 PM

yeah, small php code error on my part, had a } too much, is fixed now.

07-07-2000 09:23 PM

Ouh man, this is so great! but i could not find a download link. Please tell me where to get this hack from!!!!

07-07-2000 10:42 PM

Great Doron! My wish list:
  • Email notification (if turned on) when someone places a vote
  • Possible pie/bar chart to represent voting %'s
  • In forumdisplay, have it say 'POLL' or such beside the thread title
  • Usergroup option 'Allowed to Create Polls'
  • Voting History - An admin/Moderator only option

All I can think of for now

07-08-2000 01:24 AM

doron,
I think your poll hack looks great. The implementation of mine is going to be a fair bit different, so I think I am still going to finish mine. I am leaving for a 7 day vacation in a few hours (Vegas :)) so I probably won't work on it much in the next week, but I plan on finishing it the week I get back. If anyone has any comments/questions about my poll hack feel free to email me - I will be checking my mail.

07-08-2000 01:43 AM

I definitely like it:)

it seems it would be easy to add a 3rd button that functioned as a "start poll" button:)

07-08-2000 02:03 AM

I am thinking it might be best to make a "poll" forum for just polls and nothing else.

And if this is done we can make another template for just polls etc no need to put all the icons on it etc. Lemme play with some designs and see if I can make anything nice :)

What do you think about this?

07-08-2000 02:39 AM

Maybe something like:
http://www.elitepub.com/votescreen.gif

07-08-2000 03:39 AM

I prefer the idea of being able to start a poll in any forum but that's just me...

07-08-2000 03:47 AM

Ya I think that would be nice, im just thinking how cluttered it can get because I know a lot of people will be doing them on my sites. Thus if I limited it to one forum I can use its own template and keep things cleaner...

07-08-2000 03:50 AM

I think it needs to be made for any forum and then you can hack it for just one forum *OR* maybe Doron could add a permission to forum permissions such as 'allow polls to be posted'.

07-08-2000 03:57 AM

Ya I think if its made for all forums you just wont add that part to the newthread template if you dont want it in all forums, and then if you want to make it for just one forum make a new template for that forum with it in their. That will be the easiest and require no code changes just a template change..

07-08-2000 04:15 AM

about the only thing I see wrong is that you can't preview a poll.

other than that everything on the surface seems to be about perfect :)

07-08-2000 05:02 AM

Yes i'm dieing to get this hack install Doron - hurry up! :) :) :)

07-08-2000 07:22 AM

I must say, this is looking really good :)

07-08-2000 10:37 AM

This looks unbelieveably excellent. It has all the features I need. When is it ready for download - I WANT IT NOW! ;)

Except I think that it should only be called from a 'post poll' icon in the forums. It would be confusing for users to be presented with the poll options when starting a thread if they don't want to post a poll.

Also, I don't know how 'doable' this is but I would like to restrict the ability to post polls to users which have posted a certain number of posts (e.g. are not Junior Members).

PS Menno you want to make a New Poll icon in the same style as the new thread one?


[Edited by Mark Hewitt on 07-08-2000 at 07:38 AM]

07-08-2000 10:40 AM

PS. (again) you should be able to see the results if you wish without having to vote in the poll.

Also votes in the poll should be treated as replies. i.e. the message should move to the top of the list. Otherwise you could have a very popular poll which isn't replied to and it would drift off the bottom of the threads list.

[Edited by Mark Hewitt on 07-08-2000 at 08:11 AM]

07-08-2000 12:20 PM

Add Mark's suggestions to my wish list, they are all needed.

07-08-2000 05:07 PM

where to start...

first, you can't download it yet cause it is still missing some stuff, most importantly the delete feature.

>>Email notification (if turned on) when someone places a vote

I'll look into that, probably copy/paste

>>Possible pie/bar chart to represent voting %'s
I've seen that before on php polls, I downloaded a couple of php polls to see how they do it.

>>In forumdisplay, have it say 'POLL' or such beside the thread title

Do you want it hardcoded? Ie the user can not remove it?

>>Usergroup option 'Allowed to Create Polls'

Definately, still working on how to do so. Would it be better to modify this via the usergroup section or just have a multicombobox where you select who is allowed?

>>Voting History - An admin/Moderator only option

The test board has that, but public.

>>Graphics - hopefully menno can do that ;)

Preview - that's has not been started yet, will do it today probably.

Replies - that is going to be tricky. I could update the last post date everytime there is a vote.

thanks for the input!

07-08-2000 05:15 PM

I did notice that you're setting this up on 1.1.2

do you foresee any compatibility problems with 1.1.3?

07-08-2000 07:11 PM

I doubt it, but when I have it done, I will install it on 1.1.2 and 3. I doubt though, as 1.1.3 has primarily bug fixes, not changes in architecture

07-08-2000 08:55 PM

Ok, I got the preview mode and the usergroups working.

to test the usergroups, login as UserNoPoll with password "password". the usergroup he belongs to is not allowed to post polls.

Mind you, the hack has gotten pretty complex.

11 new templates (most are just dupes of existing ones, with "post" changed to "poll")

1 new file (poll.php)

4 files need modification (editpost.php, options.php, showthread.php and usergoup.php)

2 New tables (poll and pollvote)

2 tables need to get an additional column

scared yet? I might provide the 4 files needing modification in various versions (1.1.2, 1.1.3, together with private msg hack) to simplify the hack.

07-09-2000 09:13 AM

Quote:

scared yet? I might provide the 4 files needing modification in various versions (1.1.2, 1.1.3, together with private msg hack) to simplify the hack.
Make sure you also include the details as to how to apply the hack rather than just the basic files because I for one have other hacks applied to these.

07-09-2000 11:39 AM

wow doron... thought the name sounded familiar... it's George from http://theprequels.net :D

cool hack... and as Mark said make sure you add a little install guide for us php illerate folks - me :D

07-09-2000 01:09 PM

definately, there will be a "how to install" txt file, most files need to be given an additional 5 lines or so, so it ain't hard.

George - yo!

ps: just added some more error checks (ie need to options for a poll)

07-09-2000 01:26 PM

hi again :)

great to hear... what happens to poll hack when installed and an upgraded version of vbulletin is available ?

does this hack add to the mysql database ?

07-09-2000 03:11 PM

Hopefully John will include it in the forum.

07-09-2000 10:47 PM

Quote:

Originally posted by Martin
I prefer the idea of being able to start a poll in any forum but that's just me...
I agree 110%. I don't want a "polls" forum. I'd rather let my visitors create polls within the topics of the existing forums.

07-09-2000 11:55 PM

Again, it was an idea :)

07-10-2000 08:45 AM

I too agree with MArtin and Me2Be :D

it's much more 'interactive' when polls can be put in any forum.

07-11-2000 12:19 PM

Come on then get it done. I am a very impatient person!

07-11-2000 06:34 PM

patience is a virtue ;)

I finished off the polledit feature today, and there ain't to much left:

- Close a poll (admin/mod/author)
- closing a thread == close a poll?
- vB code parse in poll options
- email notification for a new vote
- increase post date each time for vote????

07-12-2000 07:43 AM

- closing a thread == close a poll? Yes, and only display results.
- increase post date each time for vote???? certainly yes.

07-12-2000 08:14 AM

does everyone agree with a vote causing the last update date being changed? I might toggle this in the cp.


All times are GMT. The time now is 01:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,803KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete