The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
some help with code please !!
Okay, I need some help with this code block. It worked fine on vb2 and now i've upgraded to vb3 it dosn't and im not shure if i missed anything else that needs changed. It is my own version of an itemshop. It takes the users money from the profile field, the cost of the item from the item table then subtracts the cost. Next it pulls the users current item puts a space then the item's id so str replace can be used not to limit the number of items a user can have.
PHP Code:
|
#2
|
||||
|
||||
replace $action with $_REQUEST['action']
|
#3
|
||||
|
||||
it still didn't work.
Heres the whole file just incase there is something in it thats causing the problem and not just in that section PHP Code:
|
#4
|
||||
|
||||
Try using:
PHP Code:
|
#5
|
||||
|
||||
still getting nothing in either table
|
#6
|
||||
|
||||
are you sure your templates are correct an the action value is set up?
|
#7
|
||||
|
||||
it worked fine on vb 2 and i didn't change anything in it except the template calls and as far as i know, those are working okay expect for the final redirect, which you wouldn't get because its in the action == buy section. Its probobly some simple variable that i've missed or something when changing it to vb3 but i can see what it is
|
#8
|
||||
|
||||
to make the if statement work right anyways it shouldnt be this:
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
I don't know if this changes anything, but is this supposed to have the ']' in it?
PHP Code:
PHP Code:
|
#10
|
||||
|
||||
okay, at mr e that was an error that got in while moving the file into the php tag on here somehow. and at AN NET it had no effect but, if that was the case the file would have parse errored wouldn't it :S ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|