PDA

View Full Version : Sign-up bonus addon for Lesane's Store


trafix
03-31-2003, 10:00 PM
The name basicly says it all...give new members a bonus or inital amount when they sign up.

They will not get the bonus points until they confirm by email link

2 X php file alterations
1 X template mod
1 X query to do! This adds 1 column to the storeadmin table

No screen shot as it is not required

DEMO: www.atmyparty.com (http://www.atmyparty.com/network/)

~ This hack is Copyright ~
Please note that I will not be installing the VB3 "Store hack" and thus will not be re-coding this hack for VB3. If you are interested in the rights to re-coding this hack for VB3 (free), please PM me.

Mephisteus
04-01-2003, 01:40 PM
already exists, default in lesane's store v2 I believe even...

sabret00the
04-01-2003, 03:01 PM
you sure about that dark, i got the store installed and nothing like that is default in mine

Dean C
04-01-2003, 05:03 PM
Nope - this gives each member a default amount of points upon registering instead of starting with 0 :)

- miSt

trafix
04-01-2003, 09:29 PM
Thanks for the feedback....I looked for the hack or addon but could not find it....yes as far as i know the store gives points to the refer of the new member.

This addon gives points to the new member....a sign up incentave so they can get addicted to purshing from the store, play a couple of games, whatever..

Mephisteus
04-02-2003, 09:38 AM
i must've seen a similar hack somewhere else then :p

esquared
04-04-2003, 04:47 PM
It's already made because I have it setup on my board. :)

all-the-vb
04-04-2003, 08:34 PM
cool hack

:glasses:

grace819
04-08-2003, 05:34 AM
04-04-03 at 11:34 PM all-the-vb said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=377619#post377619)
cool hack

:glasses:


Ditto. :)

Cicada
05-15-2003, 02:41 AM
awesome

Xelation
06-10-2003, 01:28 AM
cool, just installed :)

reismarktq2
06-17-2003, 04:31 PM
Cool hack, and installed, and a note for future reference:

The code in register.php is a little different in 2.3.0. Look for:$DB_site->query("UPDATE user SET usergroupid=$user[usergroupid]$dotitle WHERE userid='$u'");and replace with:$bonus=$DB_site->query_first("SELECT signup FROM storeadmin WHERE id='1'");
$extra = $bonus[signup];
$DB_site->query("UPDATE user SET usergroupid=$user[usergroupid]$dotitle WHERE userid='$u'");
$DB_site->query("UPDATE user SET storep=storep+'$extra' WHERE username='$bbuserinfo[username]'");

Reoplex
07-15-2003, 02:45 PM
thanks reis for the help..

cool hack by the way.

reismarktq2
11-07-2003, 01:16 AM
Bug in the hack...

My users were able to get the bonus again by changing their e-mail. The code needs to be altered so that existing members can't get it.

Limpkinw
12-05-2003, 05:21 PM
Not to take away from teh author because I am sure his is more complete but i did this by modifying the storep table in phpmyadmin...See Attached