Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
vBulletin Raffles Details »»
vBulletin Raffles
Version: 1.1.2, by nhawk nhawk is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.6 Rating:
Released: 06-19-2011 Last Update: 10-05-2011 Installs: 40
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

THIS ADD-ON IS NO LONGER AVAILABLE AND IS NOT SUPPORTED

NOTE: This add-on is designed for use with vBulletin 3.8.6 or higher. It may not work with earlier versions of vBulletin.

Raffles, giveaways, and contests, whatever you wish to call them, are a great way to increase traffic on any forum.

This is a port of my Raffle add-on for vBulletin 4.1.x to vBulletin 3.8.x. For the 4.1.x version see this thread.. https://vborg.vbsupport.ru/showthread.php?t=262901

Features:
  • Define a different prize image for each raffle.
  • Set raffle rules on a per raffle basis.
  • Set raffles to start in the future or on the day you create the raffle.
  • Allow One or more entries per user.
  • Allow multiple entries at one time if desired.
  • Admin settable time delay between user entries.
  • One or more prizes per raffle.
  • One or more winners per raffle (multiple winners require multiple prizes).
  • Allow members to win multiple times in one raffle if desired.
  • Display winning 'ticket' numbers if desired.
  • Selectable usergroups
  • Post count limit if desired.
  • Require Human Verification if desired.
  • Will show in Community Menu if desired.
  • Show active raffles what's going on.
  • Automatic raffle draw via vBulletin scheduled tasks.
  • Manual raffle draw to override end date and/or scheduled draws.
  • Turn raffles on or off via admincp. (Only raffle admins can view raffles when they are turned off)
  • Support for just about any credit system such as vBCredits II, ICash, kBank and vbBux.
  • Support for AW Coding's Credit Purchase System so member can purchase "raffle tickets".
  • XHTML 1.0 Transitional validated (provided your current template passes the tests)

NOTE: Except for bug fixes, this mod is no longer being updated. I strongly suggest upgrading to vB 4.

* DISCLAIMER *
----------------
Laws about how raffles should be handled vary from location to location. Be sure to check with local authorities and to comply with any laws that may apply to you. The author of this add-on can not be held responsible if the use of this add-on results in any violation of local laws.
By downloading this add-on, you agree to abide by local laws and to hold the author of this add-on harmless for any damages that may occurr from the use of this add-on.

* INSTALLATION *
------------------
1) If you intend to use AW Coding's Credit Purchase System with the Raffle System, install the Credit Purchase System FIRST.

2) Upload the contents of the 'upload' folder to your forum's root.
(If your forum's location is http://www.example.com/forums/, the root is /forums/)
(If your forum's admincp is named something other than admincp, upload raffleadmin.php to your renamed admincp folder.)

3) Import the product XML file (product-raffles.xml) into the Product Manager in AdminCP.

4) If you want to view raffles on your site while the raffle system is turned off, go to AdminCP -> Usergroups -> Administrator Permissions select yourself and set "Can Admin Raffles" to 'Yes'.

5) Anyone you want to be able to administer raffles on your site must also have Administrator Permissions and have "Can Admin Raffles" set to 'Yes' or they will not be able to administer raffles.

6) Take some time to set the options in Raffle Settings.

7) Set up a raffle.

8) Make sure this add-on is marked as 'Installed' on vBulletin.org!
(If you want to get notices from me about updates for this add-on.)

* UPGRADE INSTRUCTIONS *
-----------------------------
1) Upload the contents of the 'upload' folder to your forum's root.
(If your forum's location is http://www.example.com/forums/, the root is /forums/)
(If your forum's admincp is named something other than admincp, upload raffleadmin.php to your renamed admincp folder.)

2) Import the product XML file (product-raffles.xml) into the Product Manager in AdminCP and be sure 'Allow Overwrite' is set to 'Yes'.

* USING RAFFLES *
-------------------
The whole system is pretty self explanatory, but there are a few things to keep in mind...

1) A default raffle image is supplied with the add-on. You must always supply an image for your raffles. You may change the default image if you like.

2) The entry period for raffles always end at 12:00am (midnight) on the day the raffle is to be drawn. (ie: Draw date is set 12/21/2011.. members can enter through 12/20/2011, the moment the date changes to 12/21/2011 no more entries are possible)

3) The scheduled task to draw the raffles is set to take place at 10:00am the day the raffle is to be drawn. You may change this by going to AdminCP->Scheduled Tasks->Scheduled Task Manager, find "Draw raffles", click on Edit and change the time of the draw to what you want it to be.

4) There are replacement variables used in several phrases. These are what the variables are:

raffle_agree: {1} = Forum name
raffle_eligible: {1} = Forum name {2} = Raffle name
raffle_message_body: {1} = Raffle name {2} = Draw date
raffle_message_close: {1} = Raffle admin name {2} = Phrase (raffle_admin_title)
raffle_message_salute: {1} = Winner name
raffle_recent: {1} = Time remaining before a user can enter again
raffle_winner_multi: {1} = Winner names for multiple raffle winners {2} = Raffle name
raffle_winner_one: {1} = Winner name for single raffle winner {2} = Raffle name'

More replacement variables are in the read.me included with this add-on.

5) When adding a custom user profile field for this add-on, be sure to 'Private Field' is set to 'Yes' and 'Field Searchable on Member List' is set to 'No'.

6) If you don't want to have Raffles in the community menu, you can use a forum link to raffles.php.

* History (Changelog) *
-------------------------
1.1.2 (October 6, 2011) (No need to import the xml file when upgrading from 1.1.0 or 1.1.1 to 1.1.2, just upload files to server.)
- Removed all direct mysql queries due to some systems having trouble with them.
- Corrected cpnav xml file (was showing an add-on option).

1.1.1 (October 5, 2011) (No need to import the xml file when upgrading from 1.1.0 to 1.1.1, just upload files to server.)
- Fix display of html on Edit Raffles screen.
- Improved user entry list function in AdminCP.
- Fix database warnings on some systems.
- Fix raffle ticket purchase link for AWCoding Credit Purchase System Pro.
- Fix detection of AWCoding Credit Purchase System Pro.

1.1.0 (August 1, 2011)
- Restored missing AWCPS patch in install script.
- Code enhancements for future expansion.

1.0.9 (July 20, 2011)
- Moved 'Allow Multiple Wins' from main settings to individual raffle settings. (user requested)

1.0.8 (July 16, 2011)
- Added Debug Logging option to raffle system.

1.0.7 (July 15, 2011)
- MAJOR FIX - Fix raffle draw so no duplicates happen when allow multiple wins is set to no.
- Add PM to raffle admin if no members enter a single prize raffle.

1.0.6 (July 13, 2011)
- Fix - Raffle not being drawn by scheduled task.

1.0.5 (July 11, 2011)
- Fix - members can no longer enter multiple times by using the back button on their browser.

1.0.4 (July 6, 2011)
- Fix Allow multiple wins to one member now works.
- Fix database error when no members enter raffle.
- Removed un-needed left joins in some DB queries that were needed in original release.

1.0.3 (July 4, 2011)
- Installation script change for systems not fully importing the parse templates plugin.
- Fix raffle draw time now displays in members's usercp chosen time zone format.
- Fix error in scheduled task when multiple prizes are awarded.
- Changed copyright so it only displays on raffle pages.

1.0.2 (June 27, 2011)
- Minor bug fix of active raffles in What's Going On area (was not collapsing properly).

1.0.1 (June 22, 2011)
- Converted missed 'view entries' from 4.x to 3.8.x format.

1.0. (June 20, 2011)
- Initial release for vBulletin 3.8.6.

* Known Working on vB Versions *
------------------------------------
3.8.6
3.8.7 PL 1

Show Your Support

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

Comments
  #112  
Old 11-23-2013, 06:33 PM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only while viewing the raffle on the main site, and in the admincp raffle setting I get the following at the top of the page:

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/class_core.php on line 2552

This only started after installing the raffle system and only while viewing anything to do with the raffle.

Any help?
Raffle Version 1.1.2
vB Version 3.8.7
PHP version 5.3.27
Reply With Quote
  #113  
Old 11-23-2013, 08:00 PM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just went to go to your website and it said my IP was banned??? I never been to your site before this.
Reply With Quote
  #114  
Old 11-23-2013, 08:26 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xanlamin View Post
Only while viewing the raffle on the main site, and in the admincp raffle setting I get the following at the top of the page:

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/account/public_html/forum/includes/class_core.php on line 2552

This only started after installing the raffle system and only while viewing anything to do with the raffle.

Any help?
Raffle Version 1.1.2
vB Version 3.8.7
PHP version 5.3.27
It sounds like you're using the AW Credit Purchase System.

Check the 'AWCL- Units Updates' and 'AWCL- Trans delete' plugins for AW Credits and see if there's a line of code with this

Code:
$xPerience =& new xPerience;
And replace it with this (in both plugins)..

Code:
$xPerience = new xPerience;
Quote:
Originally Posted by Xanlamin View Post
I just went to go to your website and it said my IP was banned??? I never been to your site before this.
I received your email and the IP used to send that mail is not banned on my site. So, I don't know why it said it is. Unless you tried to register with a proxy before sending the email with the contact form.
Reply With Quote
  #115  
Old 11-25-2013, 05:00 AM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I have no credit system installed. I was able to fix the above issue by removing some "&" signs that referenced my database. But now I am having another problem. The default image is not showing up, when I go to check the image location in a new window I get the following: mysite.com/forum/raffles.php/images/raffles/default.gif For some reason it is keeping the raffles.php in with the link to the image. How to fix this so that it shows a proper link?

And no...I was not through a proxy going to your site.
Reply With Quote
  #116  
Old 11-25-2013, 11:01 AM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xanlamin View Post
Actually I have no credit system installed. I was able to fix the above issue by removing some "&" signs that referenced my database. But now I am having another problem. The default image is not showing up, when I go to check the image location in a new window I get the following: mysite.com/forum/raffles.php/images/raffles/default.gif For some reason it is keeping the raffles.php in with the link to the image. How to fix this so that it shows a proper link?

And no...I was not through a proxy going to your site.
There are no & symbols in any database call in the raffle system.

What did you enter for the raffle image when you set up the raffle? What does it show in the 'Prize Image' setting for the raffle? The default path for the default raffle image is images/raffles/default.gif and nowhere in the raffle system does it say anything different. And nowhere is the raffle.php added to the path.
Reply With Quote
  #117  
Old 11-25-2013, 08:08 PM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The & symbols where in the init.php file and class_core.php file. I removed those and the main error disappeared, thats no longer my issue.

My issue is with the default images not showing up in a new raffle. this is what it is doing, when I right click on where the image is supposed to be and click "open image in new tab" It opens a new tab with this web address: [//url]http://www.mysite.com/forum/raffles.php/images/raffles/default.gif[//url]

It's not finding the image cause it still has the raffles.php in the link. instead of removing and making the address [//url]http://www.mysite.com/forum/images/raffles/default.gif[//url] like it should be.
Reply With Quote
  #118  
Old 11-25-2013, 08:11 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xanlamin View Post
The & symbols where in the init.php file and class_core.php file. I removed those and the main error disappeared, thats no longer my issue.

My issue is with the default images not showing up in a new raffle. this is what it is doing, when I right click on where the image is supposed to be and click "open image in new tab" It opens a new tab with this web address: [//url]http://www.mysite.com/forum/raffles.php/images/raffles/default.gif[//url]

It's not finding the image cause it still has the raffles.php in the link. instead of removing and making the address [//url]http://www.mysite.com/forum/images/raffles/default.gif[//url] like it should be.
What is in the settings for the raffle under 'Raffle Image'?

The 'raffles.php' part I have highlighted is not done by the raffle system. So I'm guessing that you have raffles.php/images/raffles/default.gif in the settings for the raffle.

And can you send me a link to your site so I can see what you're talking about?
Reply With Quote
  #119  
Old 11-25-2013, 08:19 PM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope,

Prize Image
(default: [//url]http://mysite.com/forum/images/raffles/default.gif[/
/url])

When not entering an address in the field is what causes the error I stated above. And when I DO enter in an address no immage at all shows, not even a place holder, the default does not show, nor any other image I choose. Just nothing.
Reply With Quote
  #120  
Old 11-25-2013, 08:26 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xanlamin View Post
Nope,

Prize Image
(default: [//url]http://mysite.com/forum/images/raffles/default.gif[/
/url])

When not entering an address in the field is what causes the error I stated above. And when I DO enter in an address no immage at all shows, not even a place holder, the default does not show, nor any other image I choose. Just nothing.
Wait, wait wait..

Does the image show the url BBcodes in the settings? That should be not there at all.

It should either be the path to the file..
http://mysite.com/forum/images/raffles/default.gif

OR, some servers don't like a full URL and won't allow it and in that case it should just be..
images/raffles/default.gif
Reply With Quote
  #121  
Old 11-25-2013, 08:29 PM
Xanlamin's Avatar
Xanlamin Xanlamin is offline
 
Join Date: Mar 2008
Location: St. Charles, MO
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By default it is adding the BBcodes

I got it now where if I put in a direct link it will show an image. But with a default blank entry box is when the issue arises. somewhere in your code you have it adding the BBcode I would imagine.
Reply With Quote
 


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 09:51 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.04956 seconds
  • Memory Usage 2,347KB
  • Queries Executed 25 (?)
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_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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