Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Competitions Details »»
Competitions
Version: 1.0.3, by husain husain is offline
Developer Last Online: Mar 2020 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 11-04-2005 Last Update: 04-10-2006 Installs: 181
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Description
Adds a competition module to your forums. You can create as many competitions and allow members to participate in them.

Features
  • Ability to force participants to fill certain custom profile fields
  • Send Private Message to members who participate in the competitions
  • Ability to allow more than one entry from a participant
  • Input field for answers can be either a textbox, a textarea, radio buttons or a drop-down menu
  • If the input type is radio buttons or a drop-down menu, the system can filter out wrong answers and generate a list of winners by picking random participants
  • Schedule competitions by setting the starting date (user contributed)
  • Very customizable

Installation
  1. Upload all necessary files to their respective directories.
  2. Install the product XML file.
  3. Edit the navbar template to add a link to competitions.php page. (see below)
  4. Set necessary permissions for each usergroup to access and/or participate in competitions.
  5. Edit the "hkc_nopermission_loggedin" and "hkc_winner_congratulate_message" phrase to customize to your taste.

Upgrade
  1. Upload all necessary files to their respective directories.
  2. Install the product XML file. Be sure to set "Allow Overwrite" to Yes.

Editing the navbar template

1. Open the navbar template

2. Find:
HTML Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
3. Add after:
HTML Code:
<td class="vbmenu_control"><a href="competitions.php$session[sessionurl_q]">$vbphrase[hkc_competitions]</a></td>
4. Save template

Author Notes
This extension was developed specifically for my website but I am releasing the code since a few members here have have shown interest. I cannot state that it is totally free of bugs. I would appreciate your feedback in making this extension better.

Maybe in Future
At the moment, the question is only restricted to one per competition. I would like to have the ability to add more than one question per competition.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 12-22-2005, 12:02 PM
MSheraz86's Avatar
MSheraz86 MSheraz86 is offline
 
Join Date: Dec 2005
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot
Reply With Quote
  #103  
Old 12-23-2005, 07:06 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1)when I start a new competition I have to set the date 1 day ahead to actually end on the day I want. So for example if I want to end the competition on Dec 23...I have to set the date to Dec 24th. Weird thing is if I go to edit the competition after setting it up it shows Dec 23.....???

2)how can we change what time the competition ends? Currently they all end at 5pm on the given day. Is there somewhere we can change the time?

3)also I often do giveaways and members simply have to reply to a thread. This would be more useful though...but not sure how to configure properly. I can setup a radio button and check it as default so its their only option....but will that work so at the end of the competition time I just hit select winner and it will randomly select someone from all the entries even though there is no "correct answer"....guess I can test this.

4)even though read receipt is selected I never get a receipt back from a user who does hit send read receipt.
Reply With Quote
  #104  
Old 12-24-2005, 10:24 AM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FROGGYJ
1)when I start a new competition I have to set the date 1 day ahead to actually end on the day I want. So for example if I want to end the competition on Dec 23...I have to set the date to Dec 24th. Weird thing is if I go to edit the competition after setting it up it shows Dec 23.....???

2)how can we change what time the competition ends? Currently they all end at 5pm on the given day. Is there somewhere we can change the time?
I am aware of this and have been trying to study how vBulletin handles dates. What the hack is doing right now is that it is ending competitions depending on the GMT setting. So if you competiton ends on 31st Dec and your timezone is set to GMT+5, it will end the competition on 31st Dec at 5am.

I know this is not a desired effect and I am working on it.

Quote:
Originally Posted by FROGGYJ
3)also I often do giveaways and members simply have to reply to a thread. This would be more useful though...but not sure how to configure properly. I can setup a radio button and check it as default so its their only option....but will that work so at the end of the competition time I just hit select winner and it will randomly select someone from all the entries even though there is no "correct answer"....guess I can test this.
If you want to use the "select winner" feature you will have to set the correct answer.

This is what I had done for one competition. My sponsors were giving a way a Westlife album but they wanted everyone to be able to enter without answering a question (because some may answer incorrectly and they didn't want that). So I created a competition without specifying a question and said "to enter, simply type WESTLIFE in the field below and hit submit". The text box also had the default value of WESTLIFE. The correct answer field was also set to WESTLIFE. In that way, everyone entered, everyone got the correct answer and I was able to select a winner using Get Winner. There was also no need to create a thread for people to reply (and increase their postcount for no reason).
Reply With Quote
  #105  
Old 12-29-2005, 04:50 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks husain! There is only 1 more feature which would really make this perfect and that is usergroup permissions. I often have giveaways only for site supporters and hence why I have a giveaway forum in which only site supporters can post. If you could build in some sort of permissions settings for this app....that would be awesome.
Reply With Quote
  #106  
Old 12-29-2005, 05:03 PM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack already has built-in usergroup permissions that you can use for this. So if you want to restrict a particular usergroup from participating in the competition, you can edit the permissions of that usergroup.
Reply With Quote
  #107  
Old 12-29-2005, 05:20 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

haha nevermind, I had actually already edited them correctly...just forgot. Thanks for the quick response!
Reply With Quote
  #108  
Old 12-30-2005, 03:01 AM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have looked and looked but cannot seem to find the admincp option to delete an entry....any help?
Reply With Quote
  #109  
Old 12-30-2005, 06:36 AM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no option to delete an entry at the moment. It will be added in a future release of the hack.
Reply With Quote
  #110  
Old 12-31-2005, 06:30 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh ok - there was another post that said you could delete entries via admincp - looking forward to that feature being added.
Reply With Quote
  #111  
Old 12-31-2005, 10:21 PM
FOZ13 FOZ13 is offline
 
Join Date: Jun 2005
Location: Brisbane, Australia
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have ongoing monthly competitions, based on 1 usergroup which is for the financial members only.

Has anyone created a hack that will draw a random winner from a specific user group?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07713 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete