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-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


All times are GMT. The time now is 01:50 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.01163 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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