Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Random Number BBCode Details »
Random Number BBCode
Mod Version: 1.00, by spongebobrox128 (Member) spongebobrox128 is offline
Developer Last Online: Oct 2006 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Rating: (0 vote - 0 average) Installs: 5
Released: 28 Oct 2005 Last Update: 28 Oct 2005 Downloads: 45
Not Supported Uses Plugins  

Well, I wrote this, and I sometimes have a use for random numbers (long story...), so I decided to release it.
Just import the product, you should know what to do by now, vb 3.5 has been out.
Use in posts by [rand] (will be a number 0-9)
UPDATE:
product-randombbcodenochange.xml will make it so that the number stays what it is at after posting, and product-randomnumberbbcode.xml makes it so that at each refresh, it is a different number

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 28 Oct 2005, 18:05
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
This would be nice for forum-games, like a dice
I won't be installing now but I'll think about it later
Does it produce integers only?
Is the random number created at once or changes each time sb refreshes the page?

Anyway thanks for sharing
Reply With Quote
  #3  
Old 28 Oct 2005, 18:21
spongebobrox128 spongebobrox128 is offline
 
Join Date: Mar 2005
It changes each time the page refreshes, and it produces integers 0-9 only.

Last edited by spongebobrox128; 28 Oct 2005 at 21:52.
Reply With Quote
  #4  
Old 28 Oct 2005, 18:31
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Ohh then it wouldn't very good for a dice.
Anyway I'm sure many people will like it
Reply With Quote
  #5  
Old 28 Oct 2005, 19:43
spongebobrox128 spongebobrox128 is offline
 
Join Date: Mar 2005
Thanks!
I could make a version that doesn't change every time easily though, if you want (Obviously, all I need to do is make it replace on post instead of on view)
Reply With Quote
  #6  
Old 28 Oct 2005, 19:51
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
I'll ask the other admin if he likes it too and if so I'll tell you so that you don't do it for no reason
Reply With Quote
  #7  
Old 28 Oct 2005, 20:36
spongebobrox128 spongebobrox128 is offline
 
Join Date: Mar 2005
Well, I am already done...I will upload if you want it or if anyone else does
EDIT: Uploaded

Last edited by spongebobrox128; 28 Oct 2005 at 21:27.
Reply With Quote
  #8  
Old 30 Oct 2005, 01:46
calldaffer's Avatar
calldaffer calldaffer is offline
 
Join Date: Mar 2002
I like it...now I just gotta figure out a game to use it on
Reply With Quote
  #9  
Old 15 Nov 2005, 20:05
dknelson dknelson is offline
 
Join Date: Oct 2004
I like this but is it possible for the random number to be higher? For example, I sometimes have contests on my forum. At this time, I have just over 1900 members. I would like to be able to choose a random number between 1 and 19XX or whatever the membership number is.
Reply With Quote
  #10  
Old 16 Nov 2005, 01:23
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by dknelson
I like this but is it possible for the random number to be higher? For example, I sometimes have contests on my forum. At this time, I have just over 1900 members. I would like to be able to choose a random number between 1 and 19XX or whatever the membership number is.
Try to find rand(1,9) in the plugin code and change it to rand(1,1999)

Edit: Oh, I just saw that you want the number to represent the member number... That would need a query and right now I don't have time to format it for you
Reply With Quote
  #11  
Old 16 Nov 2005, 01:29
jesus likes pie's Avatar
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Actually Michelle, I don't think he meant that....he just wanted like a raffle I think.


Anyways, nice hack, I'll bookmark it and if I ever need it I will install it
Reply With Quote
  #12  
Old 16 Nov 2005, 01:30
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by jesus likes pie
Actually Michelle, I don't think he meant that....he just wanted like a raffle I think.


Anyways, nice hack, I'll bookmark it and if I ever need it I will install it
What is a raffle? :nervous:
Reply With Quote
  #13  
Old 16 Nov 2005, 18:27
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Real name: Rich
Hello,

A raffle is when a random number string is collected and the user that holds that random number wins a prize. In essence, it is a lottery governed by the gambling laws.

I too would like to use this for something similar. In order for this to work for a raffle though, it would need to make sure it doesn't generate the same number in a thread. If all numbers have been taken, it would need to "close" automatically.

If this modification could generate these random numbers after a payment of somesort has been made. (Like integrating it with the PP donations hack), it would make for a great raffle system.
__________________
Rich

Swapped 2 sites to Xenforo since vBulletin left me hanging for so long with the vB4 - PHP5 compatibility issues. Running PHP 5.5 with Xenforo with NO issues.
Reply With Quote
  #14  
Old 02 Apr 2006, 21:58
Rukbat Rukbat is offline
 
Join Date: Feb 2006
Real name: Lindsay
so how do i actually install this? just upload the xml file? to where? no other changes need to be made anywhere?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:25.

Layout Options | Width: Wide Color: