vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Lottery Addon For The Store Hack (https://vborg.vbsupport.ru/showthread.php?t=40056)

Dean C 11-11-2002 05:53 PM

I dont like the way this hack selects users from the whole database of users and not those who have just chosen a ticket..

With over 1000 users it takes AGEEEEEESSSSSSS..

Why not have it just select from those users who have purchased a ticket :)

Regards

- miSt

Schorsch 11-11-2002 06:15 PM

how can I change the hardcoded colors ?

Limpkinw 11-11-2002 06:43 PM

Quote:

Originally posted by Mist
I dont like the way this hack selects users from the whole database of users and not those who have just chosen a ticket..

With over 1000 users it takes AGEEEEEESSSSSSS..

Why not have it just select from those users who have purchased a ticket :)

Regards

- miSt

And here is how to stop this and it works GREAT

https://vborg.vbsupport.ru/showthrea...956#post263956

partang2 11-11-2002 06:43 PM

Quote:

Originally posted by Mist
I dont like the way this hack selects users from the whole database of users and not those who have just chosen a ticket..

With over 1000 users it takes AGEEEEEESSSSSSS..

Why not have it just select from those users who have purchased a ticket :)

Regards

- miSt


Agree 100%!


Quote:

Originally posted by Limpkinw


And here is how to stop this and it works GREAT

https://vborg.vbsupport.ru/showthrea...956#post263956

Woops! There it was.... Thanks m8! :banana:

girlzclan 11-11-2002 10:57 PM

Quote:

Originally posted by Lesane
Yes, that query was taken away in the new version.

You'll need to find this piece of code now:

PHP Code:

if($showimg=="Y") { 

File in 1st post updated.

perfect!!! THANK YOU VERY MUCH :d

AZone 11-14-2002 02:12 AM

Thanks, it works!

But I have one problem - information about Lottery (when I press "Lottery Options) always display twice. The same when I try to edit lottery, or view user who bought tickets - always twice...

AZone 11-14-2002 02:14 AM

Actions
Lottery Name Money In The Jackpot Start Date End Date # Sold Already Modify
Lottery 40 2002-11-15 00:00:00 2002-11-16 00:00:00 1 [Edit] [View Users] [End Lottery/Pick Winner]

Actions
Lottery Name Money In The Jackpot Start Date End Date # Sold Already Modify
Lottery 40 2002-11-15 00:00:00 2002-11-16 00:00:00 1 [Edit] [View Users] [End Lottery/Pick Winner]

<!-- Like this - always the same things twice

AZone 11-14-2002 02:22 AM

Also I have another mistake after end of lottery:
<!--

Updating user, set storeaction to offline and delete lottery and lotteryusers...

'User' is rewarded with 20 points.
'User' is pm'ed with the winner's message.
Lottery action on the store is set to offline.
Lottery and his users are deleted.

Done!

Updating user, set storeaction to offline and delete lottery and lotteryusers...

Database error in vBulletin Control Panel 2.2.8:

Invalid SQL: UPDATE user SET storep=storep+ WHERE userid='1'
mysql error: You have an error in your SQL syntax near 'WHERE userid='1'' at line 1

mysql error number: 1064

--!>

traekwon 11-19-2002 09:48 PM

Yes, Lesane PLEASE PLEASE PLEASE make it so when drawing for the winner, it only searches through a list of people who bought a ticket.

AsedaH 11-19-2002 10:12 PM

nevermind.wrong thread


All times are GMT. The time now is 01:12 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.02174 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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