vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - vBulletin Raffles (https://vborg.vbsupport.ru/showthread.php?t=262901)

TheSupportForum 01-07-2012 08:58 PM

Quote:

Originally Posted by nhawk (Post 2284928)
Check your server's timezone settings.

Your 10:00am may not be your server's 10:00am.

See this post for an in-depth explanation..
https://vborg.vbsupport.ru/showpost....&postcount=196

EDIT: Also on very low traffic sites, the scheduled tasks can take forever to be triggered. They are run in order with each visit to your site. All scheduled tasks require visitors to trigger them. So if there are say 15 scheduled tasks ahead of the raffle draw, those 15 must run first. And if you have 1 visitor per hour, the raffle will draw about 15 hours late.

To prove this out, once you know your SERVER'S 10:00am has passed, hit refresh while on your main page and do the same with the scheduled tasks displayed in ACP, you'll see them rotate up. Eventually the raffle draw will happen. On my site which is very low traffic, I've seen it run as much as 7 hours late. If you would like to see a record of times the test raffle on my site has been drawn, look here.. http://snogssite.com/forumdisplay.ph...Raffle-Results That forum holds a record of draws for about the last 30 days, but that never-ending raffle has been running and being drawn daily since July 2011.

so its really best to have an earlier time in order for schedule taks to run
i'll set it to 9am for next draw time i am trying to trigger it for 15:00 hours or near it
------------------
BTW FYI i think this mod is great and suites my website for exactly what its needed for

fevredsuk 01-07-2012 09:47 PM

Originally Posted by fevredsuk View Post

hi mate,

just wondered if it was possible to add the ability to change the winning private message per raffle.

i know it can be changed in the phrases section but some of my raffles just require a pm sending stating they have won and others need to give details how to claim the prize. At the moment an admin needs to send a follow up pm giving more details which delays the prize.

being able to set the pm body message for each raffle would be great.



Quote:

Originally Posted by nhawk (Post 2281929)
Seems reasonable, I'll put this on my things to do list.

sorry to be a pain but aswell as the above would it be possible to add the ability to copy raffles. I do a weekly raffle where the prize, is the same and its a bit of a pain having to create the raffle over and over.

i was going to ask for a recurring raffles eg set the raffle to run for x amount of weeks but the pm details would need to be different each week as I would be sending out a different password to each winner

Chris Beveridge 02-18-2012 12:31 PM

Just did the upgrade (was several revisions behind) and when you go the raffle page, you get this code along the top:

Code:

Warning: getimagesize(http://www.fandompost.com/images/hyde4.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in [path]/raffles.php on line 109

Warning: Division by zero in [path]/raffles.php on line 115

http://www.fandompost.com/oldforums/raffles.php

Suggestions?

nhawk 02-18-2012 02:37 PM

Quote:

Originally Posted by Chris Beveridge (Post 2300852)
Just did the upgrade (was several revisions behind) and when you go the raffle page, you get this code along the top:

Code:

Warning: getimagesize(http://www.fandompost.com/images/hyde4.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in [path]/raffles.php on line 109

Warning: Division by zero in [path]/raffles.php on line 115

http://www.fandompost.com/oldforums/raffles.php

Suggestions?

Your server isn't allowing http calls to images. Change the image location to either /images/raffles/yourimage or ./images/raffles/yourimage.

tommyxv 02-19-2012 07:05 AM

I just installed this on my 4.1.10 forum. Sometimes is takes very long to navigate to the Raffle page and to other areas within the mod on the front end. Almost like its going to time out, then finally it gets there. Any ideas?

nhawk 02-19-2012 10:51 AM

Quote:

Originally Posted by tommyxv (Post 2301064)
I just installed this on my 4.1.10 forum. Sometimes is take very long to navigate to the Raffle page and to other areas with the mod on the front end. Almost like its going to time out, then finally it gets there. Any ideas?

Many sites running 4.1.10 are running this without any problem. I'd look at your server itself to see what's taking up the time.

tommyxv 02-19-2012 04:12 PM

I'll check and see but I really doubt its my server. When it hangs up, i can click on any link that is not raffle related and it goes to it instantly. I can surf to 10 pages on my forum, do searches, and still be waiting for raffles.php to load in another windows. It eventually does load, and then it will be fine for a few minutes, then start to hang again.

Maybe it is interfering with any mod that I have installed. (I'll try and test it will them all disabled too) Something is definitively not right.

tommyxv 02-19-2012 06:13 PM

Ok, I disabled all my other mods and it still hangs up. My friend added it to his vb 4.1.10 forum to test it for me, and it does the same thing on his server.

I feel pretty confident that it is not my server or any mods that I have installed. Are there any crons that need to run, i read a few posts back that on low traffic sites, there could be a delay on when it the drawing goes off. Could this also cause intermittent hang ups accessing the raffles page?

UPDATE:

I also installed this on a vb 4.1.9 forum on the same server as my vb 4.1.10 forum, it works absolutely fine with the 4.1.9 forum. No page hangups at all. It has to be a prob with Raffles and 4.1.10.

nhawk 02-20-2012 10:37 AM

Quote:

Originally Posted by tommyxv (Post 2301290)
Ok, I disabled all my other mods and it still hangs up. My friend added it to his vb 4.1.10 forum to test it for me, and it does the same thing on his server.

I feel pretty confident that it is not my server or any mods that I have installed. Are there any crons that need to run, i read a few posts back that on low traffic sites, there could be a delay on when it the drawing goes off. Could this also cause intermittent hang ups accessing the raffles page?


UPDATE:

I also installed this on a vb 4.1.9 forum on the same server as my vb 4.1.10 forum, it works absolutely fine with the 4.1.9 forum. No page hangups at all. It has to be a prob with Raffles and 4.1.10.

Is the image you're using for the raffle on your server or on another server?

I run the raffle system on 4.1.10 (as do many others, and as does the site with the current record of over 60,000 entries for a single raffle) and the page comes up almost instantly.

Edit: Also, you can try turning off other mods one at a time to see if any of them are interfering with raffles. That info would help determine the problem.

tommyxv 02-20-2012 10:46 PM

It is something on my end for sure. I'll get it straightened out. Thanks!

tommyxv 02-21-2012 06:53 AM

Quote:

Originally Posted by nhawk (Post 2226544)
AdminCP->vBulletin CMS->Widgets

Click the "Create New Widget" button.

Widget Type = PHP Direct Execution
Title = Current Raffles
Description = Current Raffle List

Click "Save"

Click "Configure"

Paste this code in the box that comes up..

Code:

global $vbulletin;

if ($vbulletin->options['raffle_mode'] && $vbulletin->options['raffle_showsidebar'] && !is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['raffle_perms'])))
{
        $timenow = TIMENOW;
        $raffle_getactive = $vbulletin->db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "raffle
                        WHERE enddate > $timenow AND startdate <= $timenow
                        ORDER BY id DESC
                        ");

        if ($vbulletin->db->num_rows($raffle_getactive))
        {
                while($raffle = $vbulletin->db->fetch_array($raffle_getactive))
                {
                        if (is_member_of($vbulletin->userinfo, explode(',', $raffle['groupperm'])))
                        {
                                if($raffle_list)
                                {
                                        $raffle_list .= '<br />';
                                }
                                $raffle_list .= '<a href="raffles.php?' . $session[sessionurl] . 'do=raffle&id=' . $raffle[id] . '" title="' . $raffle[name] . '" />' . $raffle[name] . '<br />';
                                if($raffle['showimage'])
                                {
                                        if(empty($raffle['prizeimg']))
                                        {
                                                $raffle['prizeimg'] =  'images/raffles/default.gif';
                                        }

                                        $target =  $vbulletin->options['raffle_sidebar_maxpicture'];
                                        $picturesize = getimagesize($raffle['prizeimg']);
                                        $percentage = ($target / $picturesize[0]);
                                        $picture_width = round($picturesize[0] * $percentage);
                                        $picture_height = round($picturesize[1] * $percentage);
                                        $raffle_list .= '<img class="display" src="' . $raffle['prizeimg'] . '" width="' . $picture_width . '" height="' . $picture_height . '" alt="' . $raffle['name'] . '" border="0" /></a><br />';
                                }
                        }
                }
        }

        unset($raffle_getactive);

        $output = $raffle_list;   
}

Click "Save"

Then add the widget to the layout manager.


Couple of questions...

1) How can I limit the number of raffles shown in the widget. Say I only want 4.
2) How can I have the output horizontal, say 4 across?

Thanks

nhawk 02-21-2012 10:29 AM

Quote:

Originally Posted by tommyxv (Post 2301835)
Couple of questions...

1) How can I limit the number of raffles shown in the widget. Say I only want 4.
2) How can I have the output horizontal, say 4 across?

Thanks

To limit the number of raffles in the widget, change this code...
Code:

$raffle_getactive = $vbulletin->db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "raffle
                        WHERE enddate > $timenow AND startdate <= $timenow
                        ORDER BY id DESC
                        ");


To this..
Code:

$raffle_getactive = $vbulletin->db->query_read_slave("SELECT * FROM " . TABLE_PREFIX . "raffle
                        WHERE enddate > $timenow AND startdate <= $timenow
                        ORDER BY id DESC
                        LIMIT 4
                        ");


So far as I know, widgets are only displayed vertically. But, you could try formatting it horizontally with a table to see if that works.

insidegames 02-21-2012 03:04 PM

I have installed this mod on vBulletin 4.1.10, but it always says "Sorry, there are no raffles in progress at this time!"

tommyxv 02-21-2012 03:25 PM

Quote:

Originally Posted by nhawk (Post 2301878)

So far as I know, widgets are only displayed vertically. But, you could try formatting it horizontally with a table to see if that works.

I was trying to see what it would look like having 4 raffle going left to right, Ill see what I can do. Thanks

nhawk 02-21-2012 05:05 PM

Quote:

Originally Posted by insidegames (Post 2301959)
I have installed this mod on vBulletin 4.1.10, but it always says "Sorry, there are no raffles in progress at this time!"

Either your usergroup doesn't have permission to enter the raffle or you've set the post count requirement higher than the number of posts you have, or you've set the start date later than today's date.

insidegames 02-21-2012 08:01 PM

Quote:

Originally Posted by nhawk (Post 2302001)
Either your usergroup doesn't have permission to enter the raffle or you've set the post count requirement higher than the number of posts you have, or you've set the start date later than today's date.

No, no i try it with differnts option and it works definelty not. would you like to take a look at my testforum?

nhawk 02-22-2012 08:41 AM

Quote:

Originally Posted by insidegames (Post 2302072)
No, no i try it with differnts option and it works definelty not. would you like to take a look at my testforum?

Sure. I'll have a look at it.

insidegames 02-22-2012 03:48 PM

i send you a message with details :)

fevredsuk 02-24-2012 10:52 PM

just upgrading forum to 4.1.10.

hope this still works lol

any update on the additions I asked about.

also I want another one lol, I would pay for it.

its a bit of a pain only admin being able to create raffles.

Would fantastic if members could create raffles.

I have a few reps on one of my forums, it would be great if i could give the reps usergroup permission to create raffles so the couls give away their products etc.

well worth 10-20 $$ lol like the post winers in athread addition

and saves me and other admin from creating raffles for people

nhawk 02-25-2012 06:25 AM

Quote:

Originally Posted by fevredsuk (Post 2303094)
just upgrading forum to 4.1.10.

hope this still works lol

any update on the additions I asked about.

also I want another one lol, I would pay for it.

its a bit of a pain only admin being able to create raffles.

Would fantastic if members could create raffles.

I have a few reps on one of my forums, it would be great if i could give the reps usergroup permission to create raffles so the couls give away their products etc.

well worth 10-20 $$ lol like the post winers in athread addition

and saves me and other admin from creating raffles for people

It still works with 4.1.10 without problems.

I haven't had the time to even consider your last request. I've been working on several mods for private clients. But the PM mode might be possible.

So far as people other than Admin making raffles, I'm not to keen on that one. Let me think about it.

fishmaster 02-25-2012 08:06 AM

Still loving this.. I need to upgrade soon, but want to close out some Raffles first.

insidegames 02-29-2012 09:46 AM

now it's work nice. thank you man. great add-on!!

rickwade 03-04-2012 04:51 PM

I am getting the following error "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/raffles.php on line 267"
Vbulletin 4.1.10
Raffles 1.3.4 and tried 1.3.5 with the same result.
If I leave "Time Between Entries" when setting up the drawing to 0 then the issue goes away but if i change it to daily or 86400 I get this error on the top of the page when it loads.

How do I remedy this?

nhawk 03-05-2012 12:00 PM

Quote:

Originally Posted by rickwade (Post 2306118)
I am getting the following error "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/raffles.php on line 267"
Vbulletin 4.1.10
Raffles 1.3.4 and tried 1.3.5 with the same result.
If I leave "Time Between Entries" when setting up the drawing to 0 then the issue goes away but if i change it to daily or 86400 I get this error on the top of the page when it loads.

How do I remedy this?

I can't duplicate this problem, so I can't tell you how to remedy it.

Could you post all of the settings for your raffle so I can duplicate your settings completely and try it that way?

baileyom2011 03-07-2012 10:22 AM

I love the mod since i've been playing with it, but I do have one thing.

I'm in talks with a company to do monthly competitions of their goods, and they requested a "data capture" to let users choose to sign up with their newsletter when entering, is this something thats currently possible? If so I don't know how to implement it, thanks.

Also is it possible to put links to outside websites in the description area?

nhawk 03-07-2012 11:35 AM

Quote:

Originally Posted by baileyom2011 (Post 2307099)
I love the mod since i've been playing with it, but I do have one thing.

I'm in talks with a company to do monthly competitions of their goods, and they requested a "data capture" to let users choose to sign up with their newsletter when entering, is this something thats currently possible? If so I don't know how to implement it, thanks.

Also is it possible to put links to outside websites in the description area?

There's nothing in place to capture a subscription when entering a raffle. There are two options you could use. First, require a subscription somewhere else and change the member's usergroup to one that can enter the raffle. Second, make the subscription part of the rules so when they enter, they are subscribing. The only problem with the second option would be extracting their email address from the database. It can be done using the raffle entries table and cross referencing their userid to their email address. But again, nothing is in place to do exactly what you want.

So far as links to outside websites, yes. Use BBCodes in the description and they should all parse properly.

baileyom2011 03-07-2012 11:51 AM

Thanks for the quick reply and help nhawk :)

pcg 03-11-2012 07:52 AM

When I have multiple raffles, they appear side by side on page instead of one below the other, can you give me a fix for this? With one raffle item it looks fine.

nhawk 03-11-2012 11:08 AM

Quote:

Originally Posted by pcg (Post 2308478)
When I have multiple raffles, they appear side by side on page instead of one below the other, can you give me a fix for this? With one raffle item it looks fine.

Turn off 'Compatibility View' in Internet Explorer.

pcg 03-11-2012 09:00 PM

Thanks for the quick Reply. Hey your site has been down for a few days. I'm trying to check out the mods for this.

nhawk 03-12-2012 10:36 AM

Quote:

Originally Posted by pcg (Post 2308645)
Thanks for the quick Reply. Hey your site has been down for a few days. I'm trying to check out the mods for this.

Nope, been up 24/7. No problems.

insidegames 03-12-2012 07:57 PM

i ve got a question again. actually the url to a raffle is "http://testforum.insidegames.ch/raffles.php?do=raffle&id= 3" but that is not good for google because the url is not speaking. how can i change the settings to get http://testforum.insidegames.ch/raffles.php/RAFFLE TITEL like http://testforum.insidegames.ch/raff...rs-2-giveaway?

nhawk 03-12-2012 08:05 PM

Quote:

Originally Posted by insidegames (Post 2308934)
i ve got a question again. actually the url to a raffle is "http://testforum.insidegames.ch/raffles.php?do=raffle&id= 3" but that is not good for google because the url is not speaking. how can i change the settings to get http://testforum.insidegames.ch/raffles.php/RAFFLE TITEL like http://testforum.insidegames.ch/raff...rs-2-giveaway?

At this point in time, you can't.

insidegames 03-13-2012 10:50 AM

Okay, but can you write a little mod for me? :D

nhawk 03-13-2012 11:04 AM

Quote:

Originally Posted by insidegames (Post 2309065)
Okay, but can you write a little mod for me? :D

We've gone through this in PMs. I have no intention of coding SEO urls at this time.

csavern 03-23-2012 11:55 AM

Thanks for the raffle it is a great mod, but i am having a little problem hope you can help i paid for 1 credit and i set the raffle for 1 credit per raffle but i entered 6 times already and still have my 1 credit, some reason it is not subtracting, any one else have this problem ?

nhawk 03-23-2012 12:04 PM

Quote:

Originally Posted by csavern (Post 2312437)
Thanks for the raffle it is a great mod, but i am having a little problem hope you can help i paid for 1 credit and i set the raffle for 1 credit per raffle but i entered 6 times already and still have my 1 credit, some reason it is not subtracting, any one else have this problem ?

What credit system are you using?

Did you setup the credit system in Raffle Settings?

csavern 03-23-2012 12:16 PM

Yes i set it up i am using VBCredits
when i have no credits it will not let me buy in just when i have 1 credit i can just keep buying

nhawk 03-23-2012 12:20 PM

Quote:

Originally Posted by csavern (Post 2312443)
Yes i set it up i am using VBCredits
when i have no credits it will not let me buy in just when i have 1 credit i can just keep buying

I'll check on this today.

Is it the Lite version or the Full version?

nhawk 03-23-2012 12:41 PM

Quote:

Originally Posted by csavern (Post 2312443)
Yes i set it up i am using VBCredits
when i have no credits it will not let me buy in just when i have 1 credit i can just keep buying

Unfortunately I can't duplicate this using vBCredits II Deluxe Lite (https://vborg.vbsupport.ru/showthrea...ight=vbcredits) which is the version Raffles supports (or the full version).

Are you using that version?

Check to be sure you've set the raffle system to use the correct currency for vBCredits.

Also, could you supply all of the settings for the raffle you're having a problem with so I can duplicate it on my development system?


All times are GMT. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01859 seconds
  • Memory Usage 1,870KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete