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
  #152  
Old 04-20-2006, 09:11 AM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you reproduce the unread PM error again? Has anyone else had this problem too?

--

When a competition ends, nothing happens really other than the competition being shown in the Closed Competitions list. It is up to you to remember when competitions close and select winners.

I am working on setting up a cron job to notify the administrator when a competition ends. Other than that, what would you want the hack to do when a competition ends?
Reply With Quote
  #153  
Old 04-20-2006, 11:48 AM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Husain: are you planning on any new versions of this great mod anytime soon? Just curious as I've previously submitted some suggestions to this thread.
Reply With Quote
  #154  
Old 04-29-2006, 10:26 AM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

possible to make it work on posts..

it selects a X amount of people from a X group( the top X people who posted the most ), and randomly choose who will win??
Reply With Quote
  #155  
Old 05-01-2006, 09:01 PM
cat4m cat4m is offline
 
Join Date: Mar 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Argggh ! I still get the following message in the amin cp

Start Date End Date Controls
1 Minute Ago 01:00 AM 1 Minute Ago 01:00 AM

Also I uploaded the 2nd XML file and disabled the first one and dont have anything showing on my forums now. I have put all the files to their original settings and still have no Competition showing on the forum page. ??

The dates and times still remain the same. Can someone help please.
Reply With Quote
  #156  
Old 05-04-2006, 12:32 PM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another useful addition for the next feature: a text block or something that site admins can use to write something like "Are you a company looking to promote your product? Why not offer some of your products as prizes for a competition? Click here to find out more..."

I've already had a few companies discover my competitions section - they've gone on to email me asking how they can get involved. If there was a link there I'd probably get even more enquiries and prizes being donated. The link could open a new page telling them the low down and what they need to do to get the ball rolling or maybe the link could just open a page asking for more deatils like company name, what they have in mind as prizes, etc and that info can then get sent as an email to the site admin.
Reply With Quote
  #157  
Old 05-12-2006, 07:59 PM
funinthesun funinthesun is offline
 
Join Date: Oct 2005
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just installed this and I get this error:
Code:
Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT competitionid, title, description, startdate, enddate, entrycount
		FROM hkc_competitions
		WHERE is_enabled = 1 AND startdate < 1147467286 AND enddate > 1147467286
		ORDER BY enddate ASC, startdate DESC, datestamp DESC;

MySQL Error  : Table '*****db.hkc_competitions' doesn't exist
Error Number : 1146
Date         : Friday, May 12th 2006 @ 09:54:46 PM
Script       : http://www.*******.com/competitions.php
Referrer     : http://www.******.com/competitions.php
IP Address   : **.*.***.**
Username     : ******
Classname    : vb_database
Any idea what's wrong?
Reply With Quote
  #158  
Old 05-31-2006, 04:10 PM
Jaymee Jaymee is offline
 
Join Date: May 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ALOT dude!. Really helpfull
Reply With Quote
  #159  
Old 06-04-2006, 08:44 PM
SimonVlc SimonVlc is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

I´m having one trouble using this mod with one line answer. The system didn´t recognize any winners.

Ex. I create a dummy competition with answer "anything". I´ve enter the comp with a user, write the correct answer, close the comp, and pushed on get winners, but the system ask me to enter the id of the winners.

If I do the same with radio buttons, the system identifies correctly the winners.

Is this the normal behaviour? Thanks in advance, Simon.
Reply With Quote
  #160  
Old 06-04-2006, 09:00 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've never used the free text answers, just the radio buttons and it has worked every time for me.

Using free text requires exact capitalization and spelling so it could be difficult for the system to match it.
Reply With Quote
  #161  
Old 06-10-2006, 12:55 AM
SimonVlc SimonVlc is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for the answer peterska, but I´m still unnable to get it working.

Copy pasting the answer didn´t work... anyone else did notice this behaviour?

Thanks in advance, Simon.
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 01:37 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.06841 seconds
  • Memory Usage 2,315KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_html
  • (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