vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Must Vote in Poll to Post in Thread (https://vborg.vbsupport.ru/showthread.php?t=256077)

BirdOPrey5 12-27-2010 10:00 PM

Must Vote in Poll to Post in Thread
 
1 Attachment(s)
Brought to you by BirdOPrey5 and kh99

Version 2.1

This mod will require users who want to post in a poll thread to actually vote in the poll before they are allowed to post.

The main code of this mod was developed by kh99 and I made it into an installable mod with options at his request.

Options include:
  • Turn mod on or off
  • Allow thread starter to reply without voting
  • Immune Usergroups - Usergroups who don't need to vote before posting.
  • Enable in All Forums - Yes/No (New in V 1.5)
  • Enable in Specific Forums Only (Updated in V 2.0)
  • Hide posts until vote (New in V 2.0)
  • Hide View Results link until vote (New in V 2.0)

Live Demo: http://www.qapla.com/mods/showthread...Vote-Poll-Test

Testing and working on VB 3.8.7 and 4.1.12 and am sure it will work on all 3.8.x - 4.0/4.x.x. It will probably work on 3.7 and maybe earlier as well.

If a user hasn't voted they will be given a message to vote before posting, see the screen shots.

The message displayed in hidden posts is the Postbit phrase: bop5_mustvote_hidden_message
The message a user gets if they try to post before voting is the GLOBAL phrase: mustvote2post

Full instructions in .txt file in zip file.

If you used the VB4 version you must uninstall the old 1.x mod before upgrading to 2.0

Please Mark as Installed if you use this. :)
Donations Always Apprecicated but please include kh99 in any donation. :up:

Russian Translations thanks to xerox. :cool:

basketmen 12-28-2010 10:07 PM

awesome, i will take a look into this, thanks for kh99 too

blind-eddie 12-28-2010 11:23 PM

Another great addon...Thank you.

EddyMaxx 12-28-2010 11:56 PM

As Mr. Burns would say.... "EXCELLENT".

kh99 12-29-2010 12:23 PM

Quote:

Originally Posted by basketmen (Post 2140365)
awesome, i will take a look into this, thanks for kh99 too

BTW, this was originally basketmen's idea for a mod. And it's looking like he was right about it being popular.

RogerKirk 01-04-2011 07:54 AM

Two questions:

1) can this be set per poll upon creation of the poll thread? Can it be set per forum? Or is it a case that it's either active or inactive across all poll threads?

I can see a use for it on specific polls on a my site, but not on every one.

2) the screen shot of AdminCP settings implies there an option to make the thread starter post an additional post before voting. Should this actually say they need to vote before making an additional posts?

BirdOPrey5 01-04-2011 11:49 AM

1) Currently this is "all or nothing" but I do plan on adding it on a per-forum basis in the next update. Choosing it per thread would require database changes which is considerably harder to program so that won't be happening anytime soon (from me at least.)

2) You're absolutely right, I worded it backwards- but it does work as you expect- if "No" the thread starter must vote before making an additional post. I will fix this in the next update as well.

BirdOPrey5 01-04-2011 03:15 PM

OK, updated to version 1.5 - Fixed the bad wording mentioned above and added new options to enable only in specific forums.

FreshFroot 01-06-2011 04:00 AM

Looks good so far, thanks a lot :)

Tyran1 05-03-2012 08:31 AM

Please extend this so:Then you can read the post vote first.


All times are GMT. The time now is 07:52 AM.

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.01017 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)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