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)
-   -   Store addon: Staff discount (https://vborg.vbsupport.ru/showthread.php?t=47834)

Link14716 01-18-2003 09:10 PM

DAMNIT! THIS WAS MY IDEA!

Well, figuring I never even said anything about it, it's amazing how people have the same ideas as me at almost the same time. Well, it saves me the trouble of making it. :)

Dark Jim 01-18-2003 09:38 PM

Please redownload the file and redo the last step. I made a mistake.

Ember 01-18-2003 10:00 PM

Wow, impressive idea! I will definatly be installing this one in the morning! :)

a43079 01-19-2003 01:48 AM

I installed it and i get this error

Fatal error: Unsupported operand types in C:\Program Files\Apache Group\Apache2\htdocs\forums\store.php on line 113

line 113 is
Code:

$costpercent=$DB_site->query_first("SELECT storecost FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
$aw[costs] = round($aw[costs] * ($costpercent/100));


EchoHype.com 01-19-2003 04:08 AM

this is awesome dude

thanks!

Dark Jim 01-19-2003 11:42 AM

Quote:

Originally posted by a43079
I installed it and i get this error

Fatal error: Unsupported operand types in C:\Program Files\Apache Group\Apache2\htdocs\forums\store.php on line 113

line 113 is
Code:

$costpercent=$DB_site->query_first("SELECT storecost FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
$aw[costs] = round($aw[costs] * ($costpercent/100));


Gah another stupid mistake. Fixed on my own forums but put it wrong here. :confused:

To fix change
PHP Code:

($costpercent/100

to
PHP Code:

($costpercent[storecost]/100

Instructions updated.

rjpa 01-19-2003 01:26 PM

Okey, thnx mate

Graphics 01-19-2003 01:50 PM

can this work with the itemshop?

Dark Jim 01-19-2003 03:05 PM

Quote:

Originally posted by Graphics
can this work with the itemshop?
This hack will not work with the itemshop but I guess it is possible to make something like this for it. I won't be doing that though as I don't have the itemshop.

mx3 01-23-2003 02:02 AM

sounds good i might install later


All times are GMT. The time now is 07:36 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.01143 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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