![]() |
Store addon: Staff discount
With this hack you can change the costs of the store items depending on usergroups. For example you can set the cost to 25% for administrators, 50% for moderators and 100% for regular members.
Update 1/19/03: Fixed an error. Step 7 was wrong. Update 1/18/03: Fixed an error. The final step was wrong. |
I may add more options if I can think of some. Also here's a screenshot when you edit a usergroup.
|
Wow sweet man! Nice hack! :p I'll use this.
* Graphics clicks install |
Yo! Nice one indeed. :p
|
HAHAH cool, but you think being a staff member you would get those items for free.
|
Quote:
|
Hi darkjim,
Is it possible to removed the 'Points' and replaced by something else? E.g: Money, Golds, ect.. Thanks in advance. |
This has to do with the store hack in general, not just this addon. But you can change the name in the store config options. Just edit the field "Points Name".
|
Wow this has to be the best idea for a store-addon
I think i'll install this one :) Thanks - miSt |
I don't use the store hack, but this is a good idea :)
|
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. :) |
Please redownload the file and redo the last step. I made a mistake.
|
Wow, impressive idea! I will definatly be installing this one in the morning! :)
|
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]"); |
this is awesome dude
thanks! |
Quote:
To fix change PHP Code:
PHP Code:
|
Okey, thnx mate
|
can this work with the itemshop?
|
Quote:
|
sounds good i might install later
|
Lol, cool idea, like an employee discount :D
I'll be installing this :) Thanks. |
Thanks mate. ^^; now I have everything for free and mods 50% off.
|
great hack, well done for making it, i'll install it later
|
ne1 up to the challenge to make it work for the itemshop?
l8er sonic |
I think this hack has an error with the give someone else a custom title. My users are getting a "not enough points" error even though they clearly DO have enough points. I think the store may be looking at the other users usergroupid to determine the price of the custom title. Anyone care to fix that? :)
|
Ok, I figured out how to fix the error with giving other users custom titles.
Look for: PHP Code:
PHP Code:
Look for: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
i was looking for the code $username=$user++++[username];
and couldn't find it and realized that ++++ replaced shit nice code, couldn't have used userstuff, or userinfo. THanks for the fix gerlando! D |
Anyone have an update for v3.0 store hack for this
$cost=$contest[costs]; isn't in v3 |
Yea I Know!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
All times are GMT. The time now is 07:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|