View Full Version : Add-On Releases - vBulletin Raffles
nhawk
06-19-2011, 10:00 PM
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
MagicThemeParks
06-20-2011, 02:23 PM
YES! :)
Gonna give this one a try this week. Thanks for sharing! :up:
FreshFroot
06-21-2011, 05:36 AM
Looks good will test it out :D
nascartr
06-21-2011, 12:23 PM
When I test it and try to see who has entered I get this error.
Fatal error: Call to undefined function render_navbar_template() in /home/nascartr/public_html/community/raffles.php on line 670
nhawk
06-21-2011, 01:15 PM
When I test it and try to see who has entered I get this error.
Fatal error: Call to undefined function render_navbar_template() in /home/nascartr/public_html/community/raffles.php on line 670
Thank you, I missed that conversion.
For now, don't allow viewing of entries. I'll post an update as soon as I can to correct the problem.
Just so you know, I would normally post an update for this within minutes. But, my dev server's power supply took out the motherboard and I'm waiting for replacements. They should be here tomorrow. So, an update will come in the next day or two.
biftek
06-22-2011, 12:22 AM
thanks been looking for something like this , will be giving it a burl on my site
EddyMaxx
06-22-2011, 01:28 PM
Working good on 3.8.7 P1. Just need to fix the error as mentioned by nascartr.
Nice job!
nhawk
06-22-2011, 03:35 PM
When I test it and try to see who has entered I get this error.
Fatal error: Call to undefined function render_navbar_template() in /home/nascartr/public_html/community/raffles.php on line 670
Fixed today with version 1.0.1.
MentaL
06-23-2011, 12:53 PM
very nice!
/EDIT
It appears the mod is incompatible with vbseo and this; https://vborg.vbsupport.ru/showthread.php?t=218773
Shame :(
nhawk
06-23-2011, 01:29 PM
very nice!
/EDIT
It appears the mod is incompatible with vbseo and this; https://vborg.vbsupport.ru/showthread.php?t=218773
Shame :(
A little more info would be helpful. To come in and say something is incompatible with something else provides very little information to fix or locate the problem.
The plugin you show (Colors For Usergroup In Forum Last Post) should have no effect on mine and mine should have no effect on it. The Raffle system does not write or access any posts or threads, anywhere, at any time. (Edit: I just tested it on 3.8.6 with that plugin. Both work.)
And what exactly happens with vbseo?
nascartr
06-24-2011, 01:41 AM
I'm using it and have vbseo installed and see no conflict?
klaush
06-24-2011, 12:33 PM
Works like a charme and has no known conflict with vbseo.
Thanks for this great stuff!
bada_bing
06-24-2011, 07:08 PM
tagged....
MentaL
06-25-2011, 01:19 PM
Top left (Disabled) = Homepage
Top right (Disabled) = Thread
Bottom left (Enabled) = Homepage
Bottom right (Enabled) = Thread
User-name markups are disabled on the forum home and when viewing a thread css outputs are corrupted.
https://vborg.vbsupport.ru/attachment.php?attachmentid=130387&stc=1&d=1309011581
nhawk
06-25-2011, 01:49 PM
Top left (Disabled) = Homepage
Top right (Disabled) = Thread
Bottom left (Enabled) = Homepage
Bottom right (Enabled) = Thread
User-name markups are disabled on the forum home and when viewing a thread css outputs are corrupted.
I would be looking elsewhere. As I said, the username markups work on a 3.8.6 install with just that mod and the Raffle system. And others have posted that the Raffle system works fine with vBSEO.
And there is nothing in the Raffle system that touches the Thread display CSS, or even connects to the thread/post system in vBulletin.
I am now installing 3.8.7 to double check that version. I don't think the result will be any different than 3.8.6.
EDIT: As suspected, the username markups work with Raffles on a fresh vB 3.8.7 install without any problems. I suggest looking at your other mods to see what is interfering with them. Or what might be changing the install for the raffle system. I don't know if such a thing exists, but if you have a mod that includes all css styles globally, that could be the culprit. Even then I wouldn't think that would cause a problem because the raffle css styles are only used in the raffle system. Not on other pages.
You also have an abundance of HTML errors on your site that could be affecting performance (53 Errors, 12 warnings on the page where you show the post example alone). Among the errors are missing end tags and a style element in the body of your site. That is a no-no, and could cause cascading effects.
See this validation report: http://validator.w3.org/check?uri=http%3A%2F%2Fforum.ragezone.com%2Ff71%2F giving-away-gold-status-topsite-757657%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
Until you can correct all of the HTML errors on your site and establish exactly what other mod is interfering with the Raffle system, I can't even begin to work on a fix. The only thing I know for certain is that username markups and the Raffle system work together on vB 3.8.7 without a problem. And that others running vBSEO on their systems aren't having any problems.
MentaL
06-25-2011, 09:53 PM
Hi
I use a custom admincp address and the setup required me to edit my location , that may have intervened. If you wish to test my method simply rename admincp to say admincp123 and edit the admincp url in the product to admincp123 and import.
Regards.
nhawk
06-26-2011, 10:39 AM
Hi
I use a custom admincp address and the setup required me to edit my location , that may have intervened. If you wish to test my method simply rename admincp to say admincp123 and edit the admincp url in the product to admincp123 and import.
Regards.
So long as the new name for admincp is properly defined in config.php, there would have been no need to edit the installation file. The installation automatically picks up the location of admincp.
You have other problems with your site that just rear their ugly heads when you install raffles. It isn't the raffle system causing them, it is just revealing them. Correct all of the HTML errors and I would bet your problems go away.
To test it, temporarily switch to the default skin, turn off all other mods and customizations except raffles and you'll find it's working fine. Turn on your other mods/customizations one at a time and correct the ones that are causing problems. If a conflict is found with raffles, let me know exactly what the conflict is and I'll correct it. But from what I can tell, what you're showing in your screenshot is all HTML errors most likely cause by an unclosed <table> tag and possibly other errors in the HTML for the pages.
MentaL
06-26-2011, 12:30 PM
I don't define the admincp location on the configuration as a security prevention. I'll do a few tests later and report back.
Cheers.
tommydamic68
06-26-2011, 01:22 PM
Does not install completely, say please finish installing all items etc. hmmm, weird, i ftp'd all folders to the root directory, will not take the xml...? i too have a different name for my admincp if that would make the difference.
nhawk
06-26-2011, 01:40 PM
Does not install completely, say please finish installing all items etc. hmmm, weird, i ftp'd all folders to the root directory, will not take the xml...? i too have a different name for my admincp if that would make the difference.
If your admincp is named something other than admincp, upload raffleadmin.php to that folder.
So instead of..
admincp/raffleadmin.php
you would have
youradmincpname/raffleadmin.php
EDIT: If you do that and your admincp is not properly defined in config.php then you are on your own. I can't support and diagnose improperly configured or totally custom systems.
tommydamic68
06-26-2011, 02:36 PM
worked! thanks! how do you change color etc. html ?
MentaL
06-26-2011, 06:36 PM
Disabled all plugins and still no joy. Strange.
nhawk
06-27-2011, 10:03 AM
worked! thanks! how do you change color etc. html ?
By editing the raffle templates and css.
nhawk
06-27-2011, 07:53 PM
For those that downloaded v1.0.2 in the past few minutes, please download again. I included a wrong file in the first upload.
Sorry about that. :(
MentaL
06-29-2011, 09:59 PM
Great mod now that I got it working. Two suggestions.
- When inside the raffle (raffles.php?do=raffle&id=1) there is no table backround, it would look better with one.
- When viewing the users who have entered (raffles.php?do=entries&id=1) there is also no table backround.
Food for thought.
dizzynation
07-01-2011, 03:12 AM
getting this at the bottom of my "raffle edit page"
Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT currencyid, title FROM credits_currency
ORDER BY currencyid ASC;
MySQL Error : Table 'cvf.credits_currency' doesn't exist
Error Number : 1146
Request Date : Thursday, June 30th 2011 @ 10:09:52 PM
Error Date : Thursday, June 30th 2011 @ 10:09:53 PM
Script : [url
Username : Nick
Classname : vB_Database
MySQL Version : 5.0.77
nhawk
07-01-2011, 10:31 AM
getting this at the bottom of my "raffle edit page"
Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT currencyid, title FROM credits_currency
ORDER BY currencyid ASC;
MySQL Error : Table 'cvf.credits_currency' doesn't exist
Error Number : 1146
Request Date : Thursday, June 30th 2011 @ 10:09:52 PM
Error Date : Thursday, June 30th 2011 @ 10:09:53 PM
Script : url/options.php?do=options&dogroup=raffle
Referrer : url/admincp/options.php?null=0
IP Address : XX.XXX.XXX.XXX
Username : Nick
Classname : vB_Database
MySQL Version : 5.0.77
That's not the raffle edit page, that should be from the raffle settings page.
What credit system are you running on your system?
It looks like one that isn't supported and is using the same product ID as vBCredits. Either that, or you're running vBCredits and changed the table name for the vBCredit system.
dizzynation
07-01-2011, 10:03 PM
I only have VBcredits, and casino. Is this my problem?
nhawk
07-02-2011, 09:40 AM
I only have VBcredits, and casino. Is this my problem?
Hmm.. the default database table for vBCredits is 'credits_currency'. I don't think that would change between versions.
Let me contact Darkwaltz to see what the problem might be. He's usually very helpful when it comes to other mods interfacing with vBCredits.
It might take a while for an answer, so just hang in there and when I hear something I'll let you know.
But, do you have a link to the Casino mod? I can't find one for vB 3.8. Or, is this the one you're using?.. https://vborg.vbsupport.ru/showthread.php?t=219483&highlight=casino
nhawk
07-04-2011, 10:16 AM
I only have VBcredits, and casino. Is this my problem?
I received a reply from Darkwaltz4.
The credits_currency table is only in vBCredits II.
Therefore, the system does not support older versions of vBCredits.
You can always upgrade to the new versions of vBCredits..
https://vborg.vbsupport.ru/showthread.php?t=245952
Sorry about the confusion and I've updated the info in the Raffle product description.
viper357
07-08-2011, 07:14 AM
This looks nice, will install it a bit later, just one question please.
I run a marine aquariums forum and I want to hold a raffle where you are only allowed to enter if you upload a photo of your fish tank, is there any way this mod could do something like that?
Thanks.
nhawk
07-08-2011, 10:00 AM
This looks nice, will install it a bit later, just one question please.
I run a marine aquariums forum and I want to hold a raffle where you are only allowed to enter if you upload a photo of your fish tank, is there any way this mod could do something like that?
Thanks.
Not on it's own it can't.
But, if you somehow move the person that uploads a photo to a different user group. Then the raffle could be restricted to that usergroup.
viper357
07-08-2011, 11:32 AM
Ok, thanks, I'll try work something out.
nascartr
07-10-2011, 06:18 AM
Alright, I'm allowing one entry per day in a 30 day raffle for a maximum of 30 entries and received this from a member.
Ok since you have switched the contest to being able to enter once per day during the month I have discovered one flaw that allows people to enter multiple times a day but still only up to the allowed 30 entries per person. If you hit the submit entry button but don't wait for it to transfer you away from the "thank you for entering the contest next page will load soon"(I forget the exact wording) but hit the back button you can continue to submit over and over again as many times as you want in one day but the next day if you did it 30 times it won't allow you to enter more times.
Just thought I would inform you just incase you didn't already know.
nhawk
07-10-2011, 12:56 PM
Alright, I'm allowing one entry per day in a 30 day raffle for a maximum of 30 entries and received this from a member.
Thank you.
A fix should be out some time next week.
It doesn't draw. Cron doesn't work on the latest version (104)
nhawk
07-13-2011, 03:15 PM
It doesn't draw. Cron doesn't work on the latest version (104)
Check the vB 3.8.x mods at www.snogssite.com, the fix is already posted there.
It will follow here soon.
viper357
07-13-2011, 07:11 PM
Quick question just to clarify, if I have 3 prizes to give away and I enter the number 3 into the "Number of Prizes" field, can I assume that it will then have 3 draws with 3 winning ticket numbers? Thanks.
An awesome feature would be if it created a thread announcing the winners once the draw had been completed. I would pay for that feature. ;)
Thanks for the great mod.
nhawk
07-14-2011, 01:20 PM
Quick question just to clarify, if I have 3 prizes to give away and I enter the number 3 into the "Number of Prizes" field, can I assume that it will then have 3 draws with 3 winning ticket numbers? Thanks.
An awesome feature would be if it created a thread announcing the winners once the draw had been completed. I would pay for that feature. ;)
Thanks for the great mod.
Yes, if you set the number of prizes to 3, then there will be 3 winners on the draw date.
However, if you set 'Allow One Member Multiple Wins' to 'No' in Raffle Settings and don't have enough entries to give away all 3 prizes, the raffle will not draw. That is unusual, but it can happen.
Winners are listed for the raffle after it's drawn. Just be sure to set 'Show Raffles Already Drawn' to 'Yes' in Raffle Settings.
viper357
07-15-2011, 02:46 PM
This is not working, I ran a test raffle, 3 prizes, 6 people entered, and the same person won all 3 prizes with the same ticket number, with "Allow One Member Multiple Wins" set to No.
nhawk
07-15-2011, 05:38 PM
Viper, see your PMs please
nhawk
07-15-2011, 06:58 PM
Nevermind Viper..
After running a few hundred draws I finally found the problem. Fixed in v1.0.7.
Thank you!
nhawk
07-16-2011, 04:45 PM
For those still having trouble with multiple wins, please download and install v1.0.8 and then enable debug mode in raffle settings.
This will put a detailed log of the actions taken by the raffle draw scheduled task into the scheduled task log.
When you have a problem, upload a copy or screenshot of the full log for the problem draw.
viper357
07-17-2011, 04:29 PM
Is there any difference between 1.0.7 and 1.0.8 apart from the debug option? I've just run a test raffle on v1.0.7 and it worked fine.:)
nhawk
07-18-2011, 09:59 AM
Is there any difference between 1.0.7 and 1.0.8 apart from the debug option? I've just run a test raffle on v1.0.7 and it worked fine.:)
There is one other minor difference.
I would suggest updating to 1.0.8 to be safe.
However do not turn on debug mode unless you are having problems with raffle draws.
aktifnet
07-22-2011, 04:58 PM
thanks, nice mod :)
dizzynation
07-25-2011, 02:14 AM
Downloaded and installed without any issue! Love the ones that work out of the box!
THANKS NHAWK
dizzynation
07-25-2011, 02:16 AM
nHawk, is there a module for this mod? For vbadvanced?
nhawk
07-25-2011, 10:36 AM
Unless there is some sort of point system in vbadvanced, it should work with the underlying vBulletin forum software without a problem.
dizzynation
08-01-2011, 05:29 PM
In my navbar under community, the word "Raffles" is missing, but there is still a blank space to link to raffles. Any help would be much appreciated.
www.lower48.com
Thanks
dizzynation
08-01-2011, 05:35 PM
In my navbar under community, the word "Raffles" is missing, but there is still a blank space to link to raffles. Any help would be much appreciated.
www.lower48.com
Thanks
Also, there by any chance you can post some default "Raffle Rules" that we can paste and customize in the rules section. I would really appreciate that!
Voted MOTH
nhawk
08-01-2011, 06:37 PM
In my navbar under community, the word "Raffles" is missing, but there is still a blank space to link to raffles. Any help would be much appreciated.
www.lower48.com
Thanks
EDIT: Try this...
Go to AdminCP->Languages and Phrases->Phrase Manager
Click Add Phrase
Phrase Type: Global
Product: Raffles
Varname: raffle
Text: Raffles
If you get an error saying the phrase exists, then something is interfering with the Raffle system adding the phrase to the community menu. Which I wouldn't doubt because clicking any dropdown menu on your site takes multiple tries to get it to stay down.
Also, there by any chance you can post some default "Raffle Rules" that we can paste and customize in the rules section. I would really appreciate that!
Voted MOTH
There are sample rules included with the zip file you downloaded.
MentaL
08-02-2011, 09:17 AM
raffles wont draw; Parse error: syntax error, unexpected T_VARIABLE in /home/x/public_html/forum/includes/cron/raffledraw.php on line 75 /edit downloaded fix but getting white page..
nhawk
08-02-2011, 09:20 AM
raffles wont draw; Parse error: syntax error, unexpected T_VARIABLE in /home/x/public_html/forum/includes/cron/raffledraw.php on line 75
You are running v1.0.4, update to the most current version. That was fixed in 1.0.6.
MentaL
08-02-2011, 09:24 AM
downloaded fix but getting white page.. /edit cleared xcache,w orked. cheers.
AlpineZone
08-02-2011, 04:57 PM
I'm looking for something like this but I want a way to add criteria, i.e. members get (1) ticket for each month they are a member, members get (1) ticket for every 250 posts they have, and a bit more complicate but members get (10) tickets for liking us on Facebook and (10) tickets for likeing us on Twitter... any way to do that?
nhawk
08-02-2011, 07:38 PM
I'm looking for something like this but I want a way to add criteria, i.e. members get (1) ticket for each month they are a member, members get (1) ticket for every 250 posts they have, and a bit more complicate but members get (10) tickets for liking us on Facebook and (10) tickets for likeing us on Twitter... any way to do that?
You're talking about a point management system.
Look into vBCredits II, ICash, kBank and vbBux. They are all supported by the Raffle system.
My personal preference is vBCredits II, but that's just me.
https://vborg.vbsupport.ru/showthread.php?t=245952
supercarsanctum
08-08-2011, 06:20 PM
how do i start a raffle? cant find it anywhere
nhawk
08-08-2011, 06:31 PM
Make sure you did step 4 in the installation instructions..
4) 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.
Set up your general settings in AdminCP->Raffles->Raffle Settings
https://vborg.vbsupport.ru/attachment.php?attachmentid=130223&d=1308577335
Then create a new raffle in AdminCP->Raffles->Add New Raffle
https://vborg.vbsupport.ru/attachment.php?attachmentid=130226&d=1308577335
Budweiser
08-10-2011, 04:29 PM
Looking at your mod gave me an idea. It would be nice to have a mod that I can use to sell tickets to win a product. For example: I have a laptop and for a chance to win it the user could but a ticket for $1. At the end of the offer period the mod would pick a winner.
Is there a mod like this already? (or does this mod already do all this??)
It could increase traffic and create revenue for the site too!
nhawk
08-10-2011, 07:45 PM
Looking at your mod gave me an idea. It would be nice to have a mod that I can use to sell tickets to win a product. For example: I have a laptop and for a chance to win it the user could but a ticket for $1. At the end of the offer period the mod would pick a winner.
Is there a mod like this already? (or does this mod already do all this??)
It could increase traffic and create revenue for the site too!
This add-on can do it when used with AWCoding's Credit Purchase System.
Gadget_Guy
10-02-2011, 01:48 PM
Hi,
I just installed the raffle system and I can't wait to use it.
I do have two things I need help with:
1) How can I change the colour of the text, background, and other elements for my raffles?
See that attached picture of what I mean. The current look just doesn't match my site and I would like to customize it.
2) On the raffle page I am getting an SQL error. (See screenshot)
Thanks,
D.
nhawk
10-03-2011, 02:35 PM
By default, the colors come from your Style. But colors can be added in ACP->Styles & Templates
Select your Style, scroll down to Raffle Templates and select it. In there is raffle.css. Any area you want to change the color in, add the color like this..
color: #FFFFFF;
Where the # is the RGB color you want to use.
I can't duplicate the SQL Error. Have you found the problem?
MentaL
10-05-2011, 10:27 AM
Just a minor admin bug you may want to fix.
http://img26.imageshack.us/img26/213/adminbugs.png
nhawk
10-05-2011, 11:08 AM
That looks like you have a link to a video as part of the name for the raffle??
I'd suggest embeding videos in the description if that's the case.
MentaL
10-05-2011, 05:22 PM
All HTML is in the description, hence the problem.
/EDIT
Attached it for you to try. Also, ending the description with a standard a href link will cause a problem too.
nhawk
10-05-2011, 05:32 PM
All HTML is in the description, hence the problem.
/EDIT
Attached it for you to try. Also, ending the description with a standard a href link will cause a problem too.
I see, that's interesting.
Use BB Code for the video, not HTML. That will eliminate the problem for now.
Edit: OR..
Upgrade to the latest version I'm about to post. :)
MentaL
10-06-2011, 05:47 PM
Whats this all aboot.
nhawk
10-06-2011, 06:21 PM
Whats this all aboot.
Geez, seems like things just don't want to go right lately. :(
You can eliminate that by editing /includes/xml/cpnav_raffles.xml
Delete these lines..
<navoption displayorder="50">
<phrase>raffle_limit_add</phrase>
<link>rafflelimit.php?do=add</link>
</navoption>
<navoption displayorder="60">
<phrase>raffle_limit_edit</phrase>
<link>rafflelimit.php?do=edit</link>
</navoption>
That is actually one of the add-ons for raffles and it shouldn't have been in the main xml. It will not affect the raffle system in any way.
I'll release an update in the next couple of days. I'm just waiting on input from someone about a problem they were having.
EDIT: I decided to release the next update today. All should be good now.
SamirDarji
10-21-2011, 01:43 PM
Noting to check this out later.
Artes_Marciales
10-21-2011, 06:00 PM
Amazing!!!
Great Mod Thanks!!!
inphoenix
10-22-2011, 01:30 PM
Hello again,
Is it possible to add a set of questions to a raffle where a user has to answer 5 questions (multiple choice answer) before they can enter the raffle. Sort of like product awareness before they enter in a giveaway. A wrong answer would return the question in red and let them answer it again until they get it right. When all questions are answered correctly they can enter the raffle.
nhawk
10-22-2011, 01:54 PM
Hello again,
Is it possible to add a set of questions to a raffle where a user has to answer 5 questions (multiple choice answer) before they can enter the raffle. Sort of like product awareness before they enter in a giveaway. A wrong answer would return the question in red and let them answer it again until they get it right. When all questions are answered correctly they can enter the raffle.
Except for bug fixes, there won't be any further development of the vB 3.8 version of the raffle system.
Eventually the 3.x version of vBulletin will be discontinued and people should really be migrating to 4.x.
Artes_Marciales
10-24-2011, 08:08 AM
Bug with the browser opera :o
nhawk
10-24-2011, 10:48 AM
Bug with the browser opera :o
That tells me absolutely nothing. What happens with Opera? Can you include a screenshot?
Artes_Marciales
10-24-2011, 11:34 AM
everything is out of position with opera browser :(
http://www.infoculturismo.com/raffles.php
http://www.infoculturismo.com/raffles.php?do=raffle&id=2
with other browsers is perfect
nhawk
10-24-2011, 12:11 PM
I asked for screenshots because I do not have Opera installed and I do not intend to install it. I need to see what the problem is.
Artes_Marciales
10-24-2011, 12:26 PM
Thanks! :)
the same problem on all pages.
nhawk
10-24-2011, 01:04 PM
OK, I gave in and installed Opera version 11.52 and there is no such problem with Opera.
Artes_Marciales
10-24-2011, 04:57 PM
OK, thanks!!
Is strange, I have same version, but I have this problem,
and work fine with mi old Versi?n 9.64 :confused:
AlpineZone
11-15-2011, 01:33 PM
Is ther ea version of this raffle that gives extra "tickets" to someone based on other criteria, i.e. how long they have been a member, how many posts they have, etc.
nhawk
11-15-2011, 02:53 PM
Is ther ea version of this raffle that gives extra "tickets" to someone based on other criteria, i.e. how long they have been a member, how many posts they have, etc.
Any of the credit systems such as vBCredits II can be used to give tickets to members based on activity.
MentaL
11-23-2011, 10:38 AM
I'm noticing that with allot of raffles the page tends to time out despite a fairly lengthy timeout already enabled via the php config. Maybe limit the raffle to a set amount per page to lower the queries?
nhawk
11-23-2011, 11:32 AM
I'm noticing that with allot of raffles the page tends to time out despite a fairly lengthy timeout already enabled via the php config. Maybe limit the raffle to a set amount per page to lower the queries?
Someone mentioned pagnation which I do intend to do.
In the mean time, I'd suggest deleting the oldest raffles from your system to overcome the problem.
MentaL
11-25-2011, 11:09 PM
Another suggestion... In the 'Whats going on?' box remove the 'current raffles' output for guests. That will reduce queries ;)
nhawk
11-25-2011, 11:19 PM
Another suggestion... In the 'Whats going on?' box remove the 'current raffles' output for guests. That will reduce queries ;)
Just put usergroup 1 in the banned usergroups in Raffle Settings.
The one query for what's going on, won't run then.
dizzynation
02-01-2012, 08:23 AM
This works with Credit Purchase Lite right? if so I need some help with these directions
Cost Per Ticket
THIS IS ONLY FOR DISPLAY TO MEMBERS.
The cost per ticket MUST be set in the Credit Purchase System. And this should match that setting.
I have the minimum purchase for credits set at 200=2 but I want my raffles to only be 10 credits, how do I do this?
nhawk
02-01-2012, 10:03 AM
This works with Credit Purchase Lite right? if so I need some help with these directions
Cost Per Ticket
THIS IS ONLY FOR DISPLAY TO MEMBERS.
The cost per ticket MUST be set in the Credit Purchase System. And this should match that setting.
I have the minimum purchase for credits set at 200=2 but I want my raffles to only be 10 credits, how do I do this?
The credit purchase system interface is intended for use to sell individual raffle tickets. There is no interface to the CPS that allows the use of credits in any other form.
Adderz
02-18-2012, 08:30 AM
I am currently running two raffles, but only one is shoing in the "Whats Going on " box on forumhome
Should it be displaying all currently running raffles ?
dizzynation
02-18-2012, 09:45 AM
How do I get it to show up in the "Whats Going On" box?
Thanks
nhawk
02-18-2012, 10:12 AM
I am currently running two raffles, but only one is shoing in the "Whats Going on " box on forumhome
Should it be displaying all currently running raffles ?
Make sure your usergroup has permission to enter the raffle not being displayed.
nhawk
02-18-2012, 10:13 AM
How do I get it to show up in the "Whats Going On" box?
Thanks
In the main raffle setting page, make sure "Show Raffles in What's Going On" is set to 'Yes'.
Haltech
08-02-2012, 07:03 PM
Seeing this when i click on raffles.php from the community menu:
Warning: Division by zero in [path]/raffles.php on line 112
nhawk
08-02-2012, 08:55 PM
Seeing this when i click on raffles.php from the community menu:
Warning: Division by zero in [path]/raffles.php on line 112
That can mean a few things...
1) You didn't upload the image folder to your server
2) You didn't upload the raffle image to your server in the images/raffles folder.
3) Your server doesn't allow http references to images (http://yoursitename/images/raffles/yourimagename.jpg). Try changing the image location to images/raffles/yourimagename.jpg.
jazzyname
08-06-2012, 01:09 AM
can one just use paypal to have members use to purchase a amount/set of tickets ? by using the VB default subscription system ?
any help options feed back , would be great
Id like to use a raffle or contest system for Santa present for the children of the members who win.
nhawk
08-06-2012, 09:44 AM
can one just use paypal to have members use to purchase a amount/set of tickets ? by using the VB default subscription system ?
any help options feed back , would be great
Id like to use a raffle or contest system for Santa present for the children of the members who win.
It can be done by using the vB subscription system and moving the subscribers to a different usergroup. Then only allow that usergroup to enter the raffle.
CoffeeLovesYou
09-25-2012, 08:56 PM
Can you do the points with this as well? (I posted on the vB5 thread). Currently am using vB3 and would love for a way to offer sweet prizes, but to get a chance to win, you need to give up some Points. :) thx!
nhawk
09-25-2012, 09:45 PM
Can you do the points with this as well? (I posted on the vB5 thread). Currently am using vB3 and would love for a way to offer sweet prizes, but to get a chance to win, you need to give up some Points. :) thx!
Yes you can...
?Support for just about any credit system such as vBCredits II, ICash, kBank and vbBux.
hpidriver
05-05-2013, 09:50 PM
When the mod description says it is compatible with VBCredits II, are you referring to this version - https://vborg.vbsupport.ru/showthread.php?t=245952
Thanks!
nhawk
05-06-2013, 09:51 AM
When the mod description says it is compatible with VBCredits II, are you referring to this version - https://vborg.vbsupport.ru/showthread.php?t=245952
Thanks!
Yes, that's the one.
craigvm
06-24-2013, 08:30 PM
How do i change the title on the whats goin on part as in the screenshot?
https://vborg.vbsupport.ru/external/2013/06/8.png (http://s1057.photobucket.com/user/craigvm/media/RAFFLE_zps32633bae.png.html)
nhawk
06-24-2013, 08:39 PM
Use the vBulletin Phrase Manager and edit the phrase 'raffle_cur_raffles'.
craigvm
06-24-2013, 08:43 PM
Use the vBulletin Phrase Manager and edit the phrase 'raffle_cur_raffles'.
is that the same on vb4 i posted in the wrong 1 i ment to post in the vb4 version
nhawk
06-24-2013, 08:46 PM
is that the same on vb4 i posted in the wrong 1 i ment to post in the vb4 version
Yes, the phrase is the same in the vB 4 version.
craigvm
06-24-2013, 08:54 PM
THANKS SORTED NOW M8
Phongvanlau
08-07-2013, 08:23 AM
Hello,
I am using AW Coding's Credit Purchase System with the Raffle System, I still have no raffle ticket to enter the contest after I paid for it. What is the righ setup for both system?
Thanks
nhawk
08-07-2013, 08:55 AM
Hello,
I am using AW Coding's Credit Purchase System with the Raffle System, I still have no raffle ticket to enter the contest after I paid for it. What is the righ setup for both system?
Thanks
The instructions are included in the zip file you downloaded.
But so far as I know, the Credit Purchase system is no longer supported by AW Coding. So, I can't guarantee it will work any more.
Phongvanlau
08-07-2013, 09:48 AM
The instructions are included in the zip file you downloaded.
But so far as I know, the Credit Purchase system is no longer supported by AW Coding. So, I can't guarantee it will work any more.
Thanks nhawk.
Phongvanlau
08-10-2013, 10:12 PM
Hello nhawk,
Is there a setting that shows raffle ticket number per member? for example, if I entered 5 different times, the raffle should show that I have 5 numbers like 1 5 7 8 16.
Thanks
nhawk
08-11-2013, 08:59 AM
Hello nhawk,
Is there a setting that shows raffle ticket number per member? for example, if I entered 5 different times, the raffle should show that I have 5 numbers like 1 5 7 8 16.
Thanks
No there isn't.
There is no 'Ticket Number' per say. Ticket numbers would be the record number for the entry. There is an option in the raffle system to display the record number as a 'Ticket Number' after the raffle is drawn. But there's no need for a member to know the number since it's not used for anything. When a member wins, their name is displayed as the winner. Not a number.
I would also like people to get away from the 'Ticket' reference. Technically there is no 'Ticket' issued. Any number issued is artificial and not relevant or even needed. It only exists because people insist on some sort of ticket number.
Think about it more as entries where your name is put into a big drum and someone picks the name of the winner out of the drum. Except in the case of the raffle system, the pick is automated and completely random.
Xanlamin
11-23-2013, 06:33 PM
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
Xanlamin
11-23-2013, 08:00 PM
I just went to go to your website and it said my IP was banned??? I never been to your site before this.
nhawk
11-23-2013, 08:26 PM
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
$xPerience =& new xPerience;
And replace it with this (in both plugins)..
$xPerience = new xPerience;
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.
Xanlamin
11-25-2013, 05:00 AM
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.
nhawk
11-25-2013, 11:01 AM
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.
Xanlamin
11-25-2013, 08:08 PM
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.
nhawk
11-25-2013, 08:11 PM
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?
Xanlamin
11-25-2013, 08:19 PM
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.
nhawk
11-25-2013, 08:26 PM
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
Xanlamin
11-25-2013, 08:29 PM
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.
nhawk
11-25-2013, 08:48 PM
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.
There is no BBcode used for the image. It's a regular <img...> HTML tag.
Adderz
02-18-2014, 06:30 PM
Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day
The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.
If it was set to look up the posts per day, this would encourage people to keep posting ?
Adderz
02-18-2014, 06:35 PM
Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day
The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.
If it was set to look up the posts per day, this would encourage people to keep posting ?
Or even better, if you could set it to x amount of posts in the last y amount of days
nhawk
02-18-2014, 06:46 PM
Is there any way that it can be changed from a minimum Required posts to a minimum Posts Per Day
The problem with minimum posts is that users post like hell to reach the minimum post requirement then stop posting.
If it was set to look up the posts per day, this would encourage people to keep posting ?
Or even better, if you could set it to x amount of posts in the last y amount of days
I think you missed this in the description of this add-on..
NOTE: Except for bug fixes, this mod is no longer being updated. I strongly suggest upgrading to vB 4.
todd222222
02-20-2014, 05:20 PM
Hi - I have Raffles setup and they are working fine. People are able to enter and the drowning happens as planned -
but when I pull up the raffle page with all entries it takes about 20 seconds to load- we currently have one active and 3 completed raffles.
When pulling up the individual raffles the pages takes about 5 seconds to load:
http://www.dfwareamoms.com/forums/raffles.php?do=raffle&id=5
We have a large board with over 2 million posts but running on a dedicated server and everything else on the site is fast....
Running VB V 3.8.7
Running Raffles V 1.1.2
any thoughts?
Thanks in advance.
nhawk
02-20-2014, 05:44 PM
If you have a large number of entries for a raffle, the raffle must take the time to compile the list for the template. That is what is taking the time. I'd suggest not allowing people to view who has entered.
Also, to reduce the size of the table in the database, I'd delete all entries for old raffles.
Nelson58
03-01-2014, 01:21 PM
I would like to have people BUY tickets for the raffle on PayPal.
Can this be done?
If so, can you tell me how?
Thanks,
Nelson
nhawk
03-05-2014, 10:27 AM
I would like to have people BUY tickets for the raffle on PayPal.
Can this be done?
If so, can you tell me how?
Thanks,
Nelson
Sorry, was out of town for a few days. I see you have solved the problem on my site.
Nelson58
03-09-2014, 03:31 PM
Not exactly.....
I created a currency in VBCredits II named "Raffles". You go to PayPal to buy that currency. Then you should have it in your VBCredits II account.
You set your Raffle mod to accept "Raffles" instead of "Credits" as payment (some phrases need to be edited in the phrase section to replace "Raffles" with "Credits").
However- here is the problem.
I tested it a few times. The Raffle mod does not subtract the amount of the Raffle you joined from the amount you have in your account, so you can keep buying raffles indefinitely.
Yes, I want members to be able to buy as many Raffle chances as they want (revenue for the site), but I want what they buy subtracted from their account.
Can you help please?
Thanks!
Nelson
nhawk
03-09-2014, 05:14 PM
Not exactly.....
I created a currency in VBCredits II named "Raffles". You go to PayPal to buy that currency. Then you should have it in your VBCredits II account.
You set your Raffle mod to accept "Raffles" instead of "Credits" as payment (some phrases need to be edited in the phrase section to replace "Raffles" with "Credits").
However- here is the problem.
I tested it a few times. The Raffle mod does not subtract the amount of the Raffle you joined from the amount you have in your account, so you can keep buying raffles indefinitely.
Yes, I want members to be able to buy as many Raffle chances as they want (revenue for the site), but I want what they buy subtracted from their account.
Can you help please?
Thanks!
Nelson
Your problem is that you didn't completely set up the 'Raffles' currency.
You need to set up an 'Adjust' action for the 'Raffles' currency.
Just make it identical to the 'Credits' currency 'Adjust' action.
Nelson58
03-09-2014, 10:55 PM
I looked, and cannot find an "adjust action" in VbCredits. Can you tell me where that is?
Thanks.
Nelson
Nelson58
03-09-2014, 11:34 PM
Found it! It worked! Thanks a lot!!
Nelson58
03-10-2014, 03:52 PM
I changed the name of the "currency" to "tickets" so as not to cause a problem with PayPal. I made the adjustment for the currency in the action screen.
I made the cost of each ticket $3 and the raffle takes 1 ticket each. It is working very nicely.
People can buy the tickets from a link on their postbit in their posts, profile, transactions page, etc., and then take a chance.
Thanks for the very nice mod!
If you ever work on this again- a suggested upgrade- allow people to specify how many tickets must be sold before the raffle is closed, so that it is the period of time specified OR the number of tickets sold, whichever is first. So that, for example, if you want to raise $600 by doing the raffle, they could specify to keep the ticket selling period open for a week or until 200 tickets are sold at $3 each.
nhawk
03-10-2014, 04:14 PM
I changed the name of the "currency" to "tickets" so as not to cause a problem with PayPal. I made the adjustment for the currency in the action screen.
I made the cost of each ticket $3 and the raffle takes 1 ticket each. It is working very nicely.
People can buy the tickets from a link on their postbit in their posts, profile, transactions page, etc., and then take a chance.
Thanks for the very nice mod!
If you ever work on this again- a suggested upgrade- allow people to specify how many tickets must be sold before the raffle is closed, so that it is the period of time specified OR the number of tickets sold, whichever is first. So that, for example, if you want to raise $600 by doing the raffle, they could specify to keep the ticket selling period open for a week or until 200 tickets are sold at $3 each.
I'm not sure if you're using the vB3 or vB4 version since here you post in the vB3 section and on my site, you post in the vB4 section.
The vB3 version will not be updated with new functions.
Also, I'd be VERY careful about selling tickets. It is not legal to do that in most places. Check your local laws.
CheS06
03-13-2014, 01:02 PM
i installed this on my 2 forum and its worked well,
but i installed this in my one forum,same vb version, but everytime i upload the files on my file manager,then i extract it, its ok, but when i try to import the xml file at admincp > plugin & products, i got this message "Before installing, please upload all of the files that came with the Raffles addon!" even if i uploaded the files correctly..
and when i try to view the raffles.php "mysite/forum/raffles.php i got database error.
Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT raffleadminperms
FROM administrator
WHERE userid = 39;
MySQL Error : Unknown column 'raffleadminperms' in 'field list'
PLS HELP :(
nhawk
03-13-2014, 01:10 PM
You need to upload the 'CONTENTS' of the upload folder to your server. Not the actual upload folder.
Then try installing.
CheS06
03-13-2014, 01:18 PM
yes thats whats i actually did.. actually i made this wonderful add-on working on my two other forums...
but when i try in my one ftp, even i uploaded it correctly, i keep getting that error.
"Before installing, please upload all of the files that came with the Raffles addon!" :(
CheS06
03-13-2014, 01:22 PM
i check the files one by one on their desired location, and all files are there...
but when i import the xml its looks like the files are not in my forum :(
nhawk
03-13-2014, 01:29 PM
i check the files one by one on their desired location, and all files are there...
but when i import the xml its looks like the files are not in my forum :(
Then one or more of the files is not where it belongs.
Did you rename your admincp folder to something other than admincp? If so, the contents of the admincp folder for raffles need to go into the renamed admincp.
CheS06
03-13-2014, 01:33 PM
my admincp folder is still the same foldername sir..
i viewed the zip wich i upload and extracted and this is the contain files..
Archive: upload.zip
Length Date Time Name
-------- ---- ---- ----
0 10-05-11 11:18 images/
0 10-05-11 11:18 images/raffles/
20303 03-31-11 16:12 images/raffles/default.gif
1000 05-02-11 10:55 images/raffles/raffle.png
0 10-05-11 11:18 includes/
0 10-05-11 11:18 includes/cron/
11386 10-06-11 15:27 includes/cron/raffledraw.php
601 10-06-11 15:26 includes/functions_raffles.php
0 10-05-11 11:18 includes/xml/
242 04-28-11 16:29 includes/xml/bitfield_raffles.xml
718 10-06-11 15:22 includes/xml/cpnav_raffles.xml
876 10-04-11 18:00 includes/xml/hooks_raffles.xml
25375 10-06-11 15:26 raffles.php
0 10-05-11 11:18 admincp/
30250 10-06-11 07:32 admincp/raffleadmin.php
-------- -------
90751 15 files
nhawk
03-13-2014, 01:41 PM
That is where all of the files should be.
But when you get the error you're receiving, that means one or more files are not where they belong.
There's nothing more to it. I wish I could help, but to my knowledge that error is not something that has gone wrong.. ever.
CheS06
03-13-2014, 01:45 PM
when i look for this url
www.mysite/forum/raffles.php
i got this database error
Database error in vBulletin 3.8.7:
Invalid SQL:
SELECT raffleadminperms
FROM administrator
WHERE userid = 39;
MySQL Error : Unknown column 'raffleadminperms' in 'field list'
Error Number : 1054
Request Date : Thursday, March 13th 2014 @ 12:57:09 PM
Error Date : Thursday, March 13th 2014 @ 12:57:09 PM
Script : http://www.mysite.com/forum/raffles.php
Referrer :
IP Address : 112.198.64.12
Username : +Boss_Bing+
Classname : vB_Database
MySQL Version : 5.5.36-cll
but im sure the raffles.php is on my forum folder
nhawk
03-13-2014, 01:47 PM
You're getting the database error because the install stops when it doesn't find all of the files and the database doesn't get created/updated.
Most likely, one or more of the other files (not raffles.php) isn't in the location it belongs in.
CheS06
03-13-2014, 01:52 PM
would you help me? try to install the files inside may FTP if you dont mind..
heres my Facebook, please add me www.facebook.com/BossBing
nhawk
03-13-2014, 02:07 PM
would you help me? try to install the files inside may FTP if you dont mind..
heres my Facebook, please add me www.facebook.com/BossBing
I don't do Facebook.
Send me a PM with your FTP info and a temporary admin username and password to your site. Make sure the temporary admin has the permissions to install add-ons.
CheS06
03-14-2014, 06:49 PM
problem solved thanks nhawk.
another questions, how can i change the background color of raffle page?
and how can i place the price image preview on center of the page? its keep showing on right side of the page...
thanks, more power!
nhawk
03-14-2014, 06:56 PM
The color of the page is tied directly to the style you're using for your site.
To change anything you would need to edit the raffle templates in vBulletin.
Nelson58
03-18-2014, 07:49 PM
Also, I'd be VERY careful about selling tickets. It is not legal to do that in most places. Check your local laws.
It's illegal. We scraped the mod.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.