vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Jujubins Lottery (https://vborg.vbsupport.ru/showthread.php?t=201437)

jimsflies 12-08-2009 02:19 PM

Quote:

Originally Posted by kalisekj (Post 1909081)
Ok Just an FYI My First Lottery completed yesterday and I have Thread ID and Posters ID set and no Post Was created in the thread. :( Although it does say to see the post on the winner check here and lists the thread for the Lottery.

Same issue here...no post was created after drawing complete.

Also would it be possible to modify the script to allow multiple drawings concurrently...for different user groups?

Yehoshua Sofer 12-14-2009 12:09 AM

Since the task scheduler does not seem to have a month option does that mean we can only set the lottery to run within the month and not span say two months? If anyone can help I would greatly appreciate it. Thanks

Yehoshua

Yehoshua Sofer 12-31-2009 11:27 PM

Last month I ran the lottery on my forum and it worked perfectly. Now I am trying again but I get the error message below


Warning: Cannot use a scalar value as an array in [path]/lottery.php on line 86

Anyone know what I am doing wrong?

Yehoshua Sofer 01-01-2010 05:29 AM

It appears no one is supporting this mod. I guess I will uninstall it. Does anyone know of a similar mod.

kaderith 02-14-2010 08:38 PM

Any news on whether or not this mod will be updated for compatibility with vB 4.x?

It's a huge favorite with the members of my board.. I really want to to upgrade to use vB 4.x but if I was to do so and loose the drawings we run every month I think our members might mutiny ...

:)

bgg 02-21-2010 05:09 PM

Quote:

Originally Posted by kaderith (Post 1982424)
Any news on whether or not this mod will be updated for compatibility with vB 4.x?

It's a huge favorite with the members of my board.. I really want to to upgrade to use vB 4.x but if I was to do so and loose the drawings we run every month I think our members might mutiny ...

:)


I also would be interested in it's migration... I may be forced to attempt it myself but I'm not exprienced with VB mods yet... Is updating it just a matter of remapping fields and finding new templates and all that... or is it more complicated then that?

I'd be willing to pay someone... I need a mod to allow my to give away a board game once a month to active/subscribing/purchsining members...

James

bada_bing 06-30-2010 02:52 AM

I am getting an error when my lottery cron job runs, does anyone know how to fix this

Code:

Warning: array_fill() [function.array-fill]: Number of elements must be positive in [path]\includes\cron\lottery.php on line 17

Warning: array_rand() [function.array-rand]: First argument has to be an array in [path]\includes\cron\lottery.php on line 18
Winner created.

Done


clubcivic.com 07-13-2010 05:42 PM

I just installed this on my 3.8.5 board and had these issues as well. I posted how I fixed them below if you didn't figure it out yet.

Quote:

Originally Posted by kaderith (Post 1924420)
The lottery script is sort of working, when I run the drawing it will pick a winner and display the winner but..

At the same time I'm getting an SQL error as follows:

MySQL Error : Unknown column 'lastedit' in 'field list'
Error Number : 1054
Request Date : Wednesday, December 2nd 2009 @ 06:44:47 PM
Error Date : Wednesday, December 2nd 2009 @ 06:44:47 PM
Script : http://www.thegatheringroom.org/foru...cron&cronid=45
Referrer : http://www.thegatheringroom.org/foru....php?do=modify
IP Address : 68.0.17.55
Username : admin
Classname : vB_Database
MySQL Version : 5.0.81-community-log

On line 31 and 32 of includes/cron/lottery.php replace the $create = $vbulletin->db->query_write("INSERT INTO .... ");

with

$create = $vbulletin->db->query_write("INSERT INTO `".TABLE_PREFIX."post` (`postid`, `threadid`, `parentid`, `username`, `userid`, `title`, `dateline`, `pagetext`, `allowsmilie`, `showsignature`, `ipaddress`, `iconid`, `visible`, `attach`, `infraction`, `reportthreadid`)
VALUES (NULL, '".$vbulletin->options['jlottery_topic']."', '".$thread['firstpostid']."', '".$user['username']."', '".$vbulletin->options['jlottery_userid']."', '', '".$time."', '".$congratulationpost."', '1', '0', '127.0.0.1', '0', '1', '0', '0', '0')");

Quote:

Originally Posted by NTMID8 (Post 1908575)
I have a formatting issue with the footer as seen in the attached screen shot. The time stamp is not wrapping correctly. Though this phrase is part of the footer template, it only has this issue on the lottery.php page, so I'm sure it is formatting with this mod. I've looked, but don't seem to see the issue.

In the 'jlottery_SHELL' template.

before:
$footer

add:
<div style="clear:both;"></div>

fevredsuk 12-17-2010 09:43 AM

would be brilliant edition to vb4 this, says hes going to update it, but nothing yet :(

WEBDosser 03-06-2011 05:54 PM

interesting


All times are GMT. The time now is 10:07 AM.

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.01178 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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