vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Giveaway key codes addon? (https://vborg.vbsupport.ru/showthread.php?t=308885)

metrika 02-25-2014 05:36 PM

Giveaway key codes addon?
 
Hi guys,

Im looking for some addon to do giveaways key codes in our websites, I cant find none.

Did you know if there are something like WP Keys Giveaway for vbulletin?

Thanks in advance :)

fallen1087 03-02-2014 03:43 PM

ye this mod will be nice if someone make it... :/

tbworld 03-02-2014 09:23 PM

I really cannot tell what that plugin does. Can't you just post the keys in a sticky post or are these serialized; time sensitive keys that are generated?

BBNZowner 03-03-2014 04:35 AM

From what I can see it fetches/generates a code for users from a database of codes available

Simon Lloyd 03-03-2014 06:26 AM

Generating a key at a user request and storing it against their name would be fairly simple, you issue would come when you firstly want to check from your gaming software for the validity of a key generated in the forum, check that the users are the same (i.e no key sharing), check that it is valid (so checking if there are time or date constraints (i.e is it an expiring key)......etc

Anyway, you could create a plugin for a button in the users profile to create a random number and insert it in to a new column in the user table, a way of generating a unique key would be to use:
$key = md5(microtime().rand());


All times are GMT. The time now is 01:03 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.01002 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete