The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Default points for registering addon to store hack
This is an addon for Lesane's Store Hack. It will give a new forum member a default amount of points for registering.
In register.php find: PHP Code:
PHP Code:
Easy! -------Update-------- As mentioned below, you could also just make the default for storep what ever you want by changing the table.... |
#2
|
|||
|
|||
very cool
let me try |
#3
|
|||
|
|||
very nice! worked perfectly...
|
#4
|
||||
|
||||
Or you could just set a default value for storep in the database - it would be one less query...
|
#5
|
||||
|
||||
By that john, do you mean adding it to the "INSERT INTO user" query?
If so, then that would be better Satan |
#6
|
||||
|
||||
As john said, you could just run this query instead of editing register.php:
[sql]ALTER TABLE `user` CHANGE `storep` `storep` SMALLINT(5) DEFAULT 'X';[/sql] Change X to what you want. |
#7
|
||||
|
||||
Yeah, I guess that does work better.
OT - when I try to run queries like that in phpMyAdmin I always get an error. I usually have to do something like that manually, using the program. Any ideas why? |
#8
|
|||
|
|||
Would be nice if you could release this in the options part so you can set a default value .
Dave. PS: Cheers, I've been looking(/hoping) for this for ages now lol. |
#9
|
||||
|
||||
Great Hack! Thanks!
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|