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)

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 06:13 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
  • Page Generation 0.01136 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete