Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2004, 06:52 PM
VodkaFish VodkaFish is offline
 
Join Date: Oct 2003
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default A sweepstakes/giveaway mod?

I did a few searches for certain things like: sweepstakes, giveaway, contest, but didn't come back with much. However, I know there are a lot of ways to do this, so I figured I'd post here first to find out if something like this has been created before.

I'm sure I'm not the only one who does giveaways and such on my site sometimes. Like many, I like to keep most of it to "members only", the members themselves like that, and it also encourages new sign ups. Instead of conducting these things manually, I figure it would be good to build a mod for it.

It's pretty simple actually. Here's my idea:

Add new fields to profile: address line 1, address line 2, state, postal code (and country if you like), and phone number.

Make two new tables in db for sweepstakes:

sweepstakes

sweepstakes_id
sweepstakes_name
sweepstakes_description
sweepstakes_start_date
sweepstakes_end_date
sweepstakes_notes (admin notes basically)
sweepstakes_rules (legal stuff if you need it)
sweepstakes_frequency (how often someone can enter - just once, daily, weekly, monthly)
sweepstakes_quantity

sweepstakes_entries

sweepstakes_id
userid
sweepstakes_entry_datetime

In the admin you can set all the fields for:

Name
Description
State Date
End Date
Notes
Rules
Frequency
Quantity

Then you have another spot with the winners list, as well as a button to manually pick a winner.

You then have a sweepstakes entry page:

The page has the name, description and dates of sweepstakes along with any rules.
- If someone is not logged in they get a message about how the sweepstakes is members only, and if they want to be eligible they have to join and fill out their birthdate, address and phone number.
- If someone is logged in, but does not have birthdate, address and phone number filled out, they get a message saying they need to edit their profile and do so.
- If someone is logged in and has the correct profile fields filled out - they just need to push an "enter me!" button (and perhaps also an "agree to rules" checkbox).
- If someone is logged in and has already entered, they get a message saying so. However - there is a frequency check. Someone have a contest where they only allow people to enter once, others where people are allowed to have an entry every day (or week or month). A simple date check is all that's needed here.

Then, after a contest is done you go into the admin, pick a winner (random) and have a pre-written "you've won" email written - but not sent, you can manually modify it and send it along.

One thing I'm just realizing here is perhaps you also want to set a quanity if you are giving out multiple prizes and have multiple winners chosen. I'll add that to the outline above.

Thoughts, ideas, anything like this out there?
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 08:10 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.03676 seconds
  • Memory Usage 2,200KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete