vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Sign-up bonus addon for Lesane's Store (https://vborg.vbsupport.ru/showthread.php?t=51060)

trafix 03-31-2003 10:00 PM

Sign-up bonus addon for Lesane's Store
 
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

~ 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

Quote:

04-04-03 at 11:34 PM all-the-vb said this in Post #8
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:
Code:

$DB_site->query("UPDATE user SET usergroupid=$user[usergroupid]$dotitle WHERE userid='$u'");
and replace with:
Code:

$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


All times are GMT. The time now is 04:44 PM.

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.01937 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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