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
  #142  
Old 04-17-2006, 05:03 PM
lawahdy lawahdy is offline
 
Join Date: Jul 2005
Location: Dubai
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

husain .. ma man..

i'm getting an sql error.. when i try to manage comps and or enter new ones..

Quote:
Unknown column 'startdate' in 'field list'
i've upgraded my hack from the old version "that was working fine" to the new one.. hmmm
Reply With Quote
  #143  
Old 04-17-2006, 05:30 PM
lawahdy lawahdy is offline
 
Join Date: Jul 2005
Location: Dubai
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lawahdy
husain .. ma man..

i'm getting an sql error.. when i try to manage comps and or enter new ones..



i've upgraded my hack from the old version "that was working fine" to the new one.. hmmm

okay now it is working fine.. i had to uninstall the plugin and reinstall it again..

i lost some data .. but that is okay... nothing important..

hope this doesn't happen when i have a bigger competition database.. looll
Reply With Quote
  #144  
Old 04-17-2006, 08:42 PM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

problem vbulletin 3,.5.4

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT competitionid, title, startdate, enddate, winnercount, is_enabled
FROM vb3_hkc_competitions
ORDER BY startdate DESC, enddate DESC;

MySQL Error : Unknown column 'startdate' in 'field list'
Error Number : 1054
Date : Monday, April 17th 2006 @ 11:38:41 PM
Script : http://www.clubx360.it/forum/admincp....php?do=modify
Referrer : http://www.clubx360.it/forum/admincp/index.php?do=nav
IP Address :
Username :
Classname : vb_database
Reply With Quote
  #145  
Old 04-18-2006, 07:33 AM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the querry non funzionano !!!!
Reply With Quote
  #146  
Old 04-18-2006, 07:33 AM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-- phpMyAdmin SQL Dump
-- version 2.6.3-pl1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 18 Apr, 2006 at 10:16 AM
-- Versione MySQL: 3.23.58
-- Versione PHP: 5.0.4
--
-- Database: `IPB`
--

-- --------------------------------------------------------

--
-- Struttura della tabella `vb3_hkc_competitions`
--

CREATE TABLE `vb3_hkc_competitions` (
`competitionid` smallint(5) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`description` mediumtext NOT NULL,
`type` enum('input','select','radio','textarea','checkbox ','select_multiple') NOT NULL default 'input',
`data` mediumtext NOT NULL,
`maxlength` smallint(6) NOT NULL default '250',
`size` smallint(6) NOT NULL default '25',
`height` smallint(6) NOT NULL default '0',
`optional` smallint(5) unsigned NOT NULL default '0',
`def` smallint(6) NOT NULL default '0',
`regex` varchar(255) NOT NULL default '',
`enddate` int(10) unsigned NOT NULL default '0',
`datestamp` int(10) unsigned NOT NULL default '0',
`correctanswer` mediumtext NOT NULL,
`entrycount` mediumint(8) unsigned NOT NULL default '0',
`maxentries` smallint(5) unsigned NOT NULL default '1',
`maxwinners` smallint(5) unsigned NOT NULL default '1',
`winnercount` smallint(5) unsigned NOT NULL default '0',
`enableguidelines` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`competitionid`),
KEY `enddate` (`enddate`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

--
-- Dump dei dati per la tabella `vb3_hkc_competitions`
--


-- --------------------------------------------------------

--
-- Struttura della tabella `vb3_hkc_entries`
--

CREATE TABLE `vb3_hkc_entries` (
`entryid` int(10) unsigned NOT NULL auto_increment,
`competitionid` smallint(5) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`answer` mediumtext NOT NULL,
`entrydate` int(11) NOT NULL default '0',
PRIMARY KEY (`entryid`),
KEY `competitionid_userid` (`competitionid`,`userid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

--
-- Dump dei dati per la tabella `vb3_hkc_entries`
--


-- --------------------------------------------------------

--
-- Struttura della tabella `vb3_hkc_winners`
--

CREATE TABLE `vb3_hkc_winners` (
`competitionid` smallint(5) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`competitionid`,`userid`)
) TYPE=MyISAM;

--
-- Dump dei dati per la tabella `vb3_hkc_winners`
--
Reply With Quote
  #147  
Old 04-18-2006, 07:55 AM
SLGR SLGR is offline
 
Join Date: Jul 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm currently on vB version 3.5.2 (patched)
Do i need to upgrade to use this hack?
Reply With Quote
  #148  
Old 04-18-2006, 09:36 AM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SLGR
I'm currently on vB version 3.5.2 (patched)
Do i need to upgrade to use this hack?
There is no need to upgrade for this hack to work.
Reply With Quote
  #149  
Old 04-18-2006, 09:40 AM
husain's Avatar
husain husain is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by swantonio
problem vbulletin 3,.5.4

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT competitionid, title, startdate, enddate, winnercount, is_enabled
FROM vb3_hkc_competitions
ORDER BY startdate DESC, enddate DESC;

MySQL Error : Unknown column 'startdate' in 'field list'
Error Number : 1054
Date : Monday, April 17th 2006 @ 11:38:41 PM
Script : http://www.clubx360.it/forum/admincp....php?do=modify
Referrer : http://www.clubx360.it/forum/admincp/index.php?do=nav
IP Address :
Username :
Classname : vb_database
I think you have an older version of the hack with new PHP files. If your products page shows any version less than 1.0.2, please download the ZIP file again, and reinstall the hack. Make sure you check the box that says "Allow Overwrite".
Reply With Quote
  #150  
Old 04-18-2006, 10:32 AM
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT competitionid, title, startdate, enddate, winnercount, is_enabled
FROM vb3_hkc_competitions
ORDER BY startdate DESC, enddate DESC;

MySQL Error : Unknown column 'startdate' in 'field list'
Error Number : 1054
Date : Tuesday, April 18th 2006 @ 01:30:54 PM
Script : http://www.clubx360.it/forum/admincp....php?do=modify
Referrer : http://www.clubx360.it/forum/admincp/index.php?do=nav
IP Address : 213.xxx.xxx.xxx
Username : SWANTONIO
Classname : vb_database

no non funziona :ermm:
Reply With Quote
  #151  
Old 04-20-2006, 07:24 AM
SLGR SLGR is offline
 
Join Date: Jul 2005
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I set up a test competition.
I, myself, participated in it... as soon as i voted i received a pm informing me of my competition. Now, is sais: (in the main forum page)

Welcome, {Nickname}.
You last visited: Today at 11:20
Private Messages: Unread 29, Total 635.
No pop-up for them, i logged out and logged in again, no change, i still have 29 unread pms which i can't find.

Any thought?

Edit:
I just found them, the oldest 29 was marked as unread.
But why? For sure, this happened after i received the "thank you" pm and send the report back (ok, the report came to me).

also, one question.
As soon as the Competitions comes to an end, what happens then?
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 07:06 AM.


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.07527 seconds
  • Memory Usage 2,325KB
  • 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
  • (4)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