Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Jujubins Lottery Details »»
Jujubins Lottery
Version: 2.1.3, by jujubins jujubins is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.x Rating:
Released: 01-10-2009 Last Update: 10-29-2009 Installs: 73
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

Coder(s): jujubins (Nando)

Compatibility: 3.6.x, 3.7.x, 3.8.x

Product Info:
Files to upload - 2
Files to import - 1
Templates - 8
Plugins - 2
Phrases - 33

Languages:

English
Portuguese

Purpose:
Drawn awards for your forum users or if you want, just to one usergroup.

How it works:
The users whom have permission to participate, those who have more than "x" posts, registered before "y" and members of "z" group, can take one ticket for day, until the day you set your scheduled tasks of your forum to close the lottery and drawn. As soon as drawn, there will be a congratulation message to the winner and disseminating him.


Demo: http://forum.glords.com/lottery.php

Installing:
  1. Upload the files in the forum folder to your vBulletin root.
  2. Import the product_jlottery.xml via Product Manager system.
Upgrading:
  1. Upload the files in the forum folder to your vBulletin root.
  2. Import the product_jlottery.xml via Product Manager system.
Setting:
Go to Admin CP > vBulletin Options > Jujubins Lottery and type in the fields:
  • Enable: Set this option to yes to enable Jujubins Lottery.
  • Topic: Topic ID with details of the lottery.
  • Members Allowed: This option prevent new users to participate in the lottery. Only users before the date chosen could participate. Use Unix time.
  • Posts Required: Number of posts required to participate.
  • Usergroups Allowed: Usergroups allowed to participate. Separate with comma the usergroups.
  • Round tickets:Example:
    14 tickets will appear 20 tickets.
    34 tickets will appear 40 tickets.
  • Moderators: Now you can choose the moderator's group to reset in the lottery's page
  • Post the winner? Automatically post the winner in thread.
  • Poster userid: The userid that will post the congratulations.
  • Post message: Post message.
    Variables: {winner}, {ticket}, {hour} and {date}
To change the date of the lottery go to Admin CP> Scheduled Taks> Scheduled Task Manager> Jujubins Lottery and modify the fields of the Day of month, Hour and Minute.


Requirements:
PHP 4.3.3 and MySQL 4.0.16 or later.

History:
v0.5.0 - Dec 29. 2008
First Release
v0.7.0 - Dec 31. 2008
Added Phrases
Added option to reset when repeated the scheduled task
v0.7.1 - Jan 01. 2009
Correction in the variables of phrases
Correction in pharses
Added language in Portuguese
v0.8.0 - Jan 10. 2009
Added option to choose which usergroups can participate
Compatible with version 3.8.0
v1.0.0 - Jan 11. 2009
Added auto-link in the quick links, pop-up of community and navbar
Added option of types of drawn, "per day", "per drawn", "without limits"
v1.1.0 - Jan 12. 2009
Fixed: SQL table prefix
v1.2.0 - Jan 12. 2009
Added "see all" tickets link
Added option to enable link to see all tickets
v1.2.5 - Feb 1. 2009
Fixed: Show winners
v1.2.6 - Feb 6. 2009
Fixed: Winner link (member.php)
v1.2.6 - Feb 6. 2009
Fixed: Winner link (member.php)
v2.0.0 - Out 27. 2009
Re-writted the mod's intire code
Simplified code
SQL with fewer fields
2 new settings: Round tickets and moderators
Now you reset in lottery's page
Fixed: All known bugs
v2.1.0 - Out 29. 2009
Added: Automatic congratulations post in the thread (editable) (thanks paul41598)
Fixed: Some insignificant bugs
v2.1.1 - Out 30. 2009
Fixed: Posts limit (thanks pipibunny)
v2.1.3 - Out 30. 2009
Fixed: Usergroups colors in "See all" (thanks kalisekj)
Fixed: Links in menu (thanks kalisekj)
Fixed: Reset link to moderators (thanks kalisekj)
Fixed: Update version 2.0.0 to above will not reset your lottery (thanks kalisekj)

Quick support in english/portuguese: http://forum.glords.com/showthread.php?t=8927


Quote:
Originally Posted by jujubins View Post
I apologize to everybody who have donwloaded and waited for the Jujubins Lottery's updates. Today, I've re-writted the mod's intire code, making it simplier and with an easy lecture. I've tested it and no bug was found, I ask for help for everyone of you to make it better.
I promise that, starting from today, I'll be giving support about the mod.

The version 2.0.0 have been lauched, and it's in the topic.


Download Now

File Type: zip Jujubins Lottery 2.1.3.zip (10.4 KB, 213 views)

Screenshots

File Type: jpg taketicket.jpg (54.8 KB, 0 views)
File Type: jpg newticket.jpg (73.5 KB, 0 views)
File Type: jpg alltickets.jpg (39.6 KB, 0 views)
File Type: jpg tickets.jpg (75.8 KB, 0 views)
File Type: jpg reset.jpg (55.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #72  
Old 10-30-2009, 07:25 AM
pipibunny pipibunny is offline
 
Join Date: Feb 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had set Posts Required is 10. But it not effect.
A new meber or member has 0 posts , but they still participate lottery. So Why ?
Reply With Quote
  #73  
Old 10-30-2009, 07:53 AM
jujubins's Avatar
jujubins jujubins is offline
 
Join Date: May 2007
Location: Rio de Janeiro - Brazil
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pipibunny View Post
I had set Posts Required is 10. But it not effect.
A new meber or member has 0 posts , but they still participate lottery. So Why ?
Thanks, I fixed it.

v2.1.1 - Out 30. 2009
Fixed: Posts limit


Reply With Quote
  #74  
Old 10-30-2009, 09:54 AM
Jhonnydc Jhonnydc is offline
 
Join Date: Oct 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed and configured the mod...

I have a little problem...

Not work the "Automatically post the winner in thread"

I have enable the option, but the mod don't post the winner in thread...
Reply With Quote
  #75  
Old 10-30-2009, 01:30 PM
jujubins's Avatar
jujubins jujubins is offline
 
Join Date: May 2007
Location: Rio de Janeiro - Brazil
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to fill the userid in "Poster userid" field and the threadid in "Topic" field.
Reply With Quote
  #76  
Old 10-30-2009, 06:22 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WooHoo! Thank you very Much!

Couple things to Note, I lost all lottery tickets when I Updated, I thought ahead and print screened all tickets gotten before upgrade then logged in as each user and gave them their ticket again. Also After Update Make sure you set the scheduled task again.

Bug: See all tickets option took me back to my main page and I could no longer see who all had a ticket any more.
Changed jlottery_shell template and put lottery.php in front of ?do=alltickets so it will look like this href="lottery.php?do=alltickets">$vbphrase[jlottery_seeall]</a>
I also had to do the same for the Menu Option home to just go back to the Lottery page instead of the Site Home page.
I also Made the Same change to Reset just in case it also had same issue as the other 2 options.

Bug: Lottery was stating 1 user out of 10 tickets or 14 users out of 10 tickets , so I went into lottery.php and changed 10 to 100 and now it displays correctly the 14 users out of 14 tickets or 5 users out of 5 tickets.

Bug: Only Showing 2 of the 14 users in the proper Usergroup Coloring http://i34.tinypic.com/2nb5cgm.jpg.
This worked perfectly before the update. Version 1 : http://i36.tinypic.com/ivuyj5.jpg
As you can see the Ver 1 was ?do=all and showed things perfectly in Ver 2 you will see the Usergrp Color Markup is not working right plus the number of tickets should all be 1 and the User Ticket Number does Not show up to the left of their name. Anyway you can fix the Show All too Look more like your Version 1?

Not sure if this is an issue but when I installed the update and checked I could see a reset option under menu. But When I started adding the tickets back in for the users the reset lottery option went away. I am assuming it will show back up after the scheduled task runs tomorrow night? If Not I will Let you Know.
Ok Choosing more than one user group for rest IE: 5,6 or 5, 6 makes the Reset feature not Show Up. I changed it to just 1 usergroup and the reset shows Back up.

Thanks again for a Great Mod!
Reply With Quote
  #77  
Old 10-30-2009, 06:40 PM
MandachuvA MandachuvA is offline
 
Join Date: Sep 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Parab?ns jujubin ? um ?timo mod sem duvida, mais estou tendo problemas aqui com ele, veja na imagem apenas o primeiro esta sendo reconhecido como membro ( em cor roxa ) os outros dois n?o
sendo que s?o membros iguais ao primeiro ( em cor roxa ) o que poderia ser isso meu querido.

imagem - http://img504.imageshack.us/img504/6559/erroloteria.png

desde j? agrade?o.
Reply With Quote
  #78  
Old 10-30-2009, 09:14 PM
jujubins's Avatar
jujubins jujubins is offline
 
Join Date: May 2007
Location: Rio de Janeiro - Brazil
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kalisekj View Post
WooHoo! Thank you very Much!

Couple things to Note, I lost all lottery tickets when I Updated, I thought ahead and print screened all tickets gotten before upgrade then logged in as each user and gave them their ticket again. Also After Update Make sure you set the scheduled task again.
After version 2.0.0, updates will have to delete the tickets, to not have problems with incompatibility in the database.
I fixed it now. Who already has the version 2.0.0 or above, the tickets will not be reset.
Quote:
Originally Posted by kalisekj View Post
Bug: See all tickets option took me back to my main page and I could no longer see who all had a ticket any more.
Changed jlottery_shell template and put lottery.php in front of ?do=alltickets so it will look like this href="lottery.php?do=alltickets">$vbphrase[jlottery_seeall]</a>
I also had to do the same for the Menu Option home to just go back to the Lottery page instead of the Site Home page.
I also Made the Same change to Reset just in case it also had same issue as the other 2 options.
Fixed in 2.1.3
Quote:
Originally Posted by kalisekj View Post
Bug: Lottery was stating 1 user out of 10 tickets or 14 users out of 10 tickets , so I went into lottery.php and changed 10 to 100 and now it displays correctly the 14 users out of 14 tickets or 5 users out of 5 tickets.
You can stop the problem just by disabling the option of rounding.
Quote:
Originally Posted by kalisekj View Post
Bug: Only Showing 2 of the 14 users in the proper Usergroup Coloring http://i34.tinypic.com/2nb5cgm.jpg.
This worked perfectly before the update. Version 1 : http://i36.tinypic.com/ivuyj5.jpg
As you can see the Ver 1 was ?do=all and showed things perfectly in Ver 2 you will see the Usergrp Color Markup is not working right plus the number of tickets should all be 1 and the User Ticket Number does Not show up to the left of their name. Anyway you can fix the Show All too Look more like your Version 1?
Fixed in 2.1.3.
Quote:
Originally Posted by kalisekj View Post
Not sure if this is an issue but when I installed the update and checked I could see a reset option under menu. But When I started adding the tickets back in for the users the reset lottery option went away. I am assuming it will show back up after the scheduled task runs tomorrow night? If Not I will Let you Know.
Ok Choosing more than one user group for rest IE: 5,6 or 5, 6 makes the Reset feature not Show Up. I changed it to just 1 usergroup and the reset shows Back up.
Fixed in 2.1.3.
Quote:
Originally Posted by kalisekj View Post
Thanks again for a Great Mod!
Thank you to reported all errors

Quote:
Originally Posted by MandachuvA View Post
Parab?ns jujubin ? um ?timo mod sem duvida, mais estou tendo problemas aqui com ele, veja na imagem apenas o primeiro esta sendo reconhecido como membro ( em cor roxa ) os outros dois n?o
sendo que s?o membros iguais ao primeiro ( em cor roxa ) o que poderia ser isso meu querido.

imagem - http://img504.imageshack.us/img504/6559/erroloteria.png

desde j? agrade?o.
Consertado na 2.1.3.
Reply With Quote
  #79  
Old 10-31-2009, 01:22 AM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you For fixing everything, The all tickets view is now showing the usergroup color mark up like it should. Although Ticket # is still not showing to the left of usernames that have a ticket. Unless Tickets Column is supposed to be Ticket Number and not Number of tickets the user has, for in case a person enabled Multiple tickets allowed per user in a month.

Thank You
Reply With Quote
  #80  
Old 10-31-2009, 02:51 AM
NTMID8 NTMID8 is offline
 
Join Date: Feb 2004
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for picking this back up. I'll check it out again ASAP.
Reply With Quote
  #81  
Old 10-31-2009, 03:50 AM
NTMID8 NTMID8 is offline
 
Join Date: Feb 2004
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg Capture.jpg (14.7 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 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.05514 seconds
  • Memory Usage 2,369KB
  • Queries Executed 27 (?)
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
  • (9)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete