![]() |
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.... |
very cool
let me try |
very nice! worked perfectly...
|
Or you could just set a default value for storep in the database - it would be one less query...
|
By that john, do you mean adding it to the "INSERT INTO user" query?
If so, then that would be better:) Satan |
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. |
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? |
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. |
Great Hack! Thanks!
|
Quote:
|
All times are GMT. The time now is 03:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|