The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Php help, I have code, I need to modify it. Thanks for any help.
The code was originally this
PHP Code:
I changed it to this PHP Code:
|
#2
|
||||
|
||||
For which query is it complaining?
I would guess that you user table does not have the userbar field in it, but without the actual error message, it is but a guess. Also your queries are completely screwy, you are setting two queries but only reading once, and both of those queries are pointless. "select field from table where field=blah is only ever going to return blah or nothing. Perhaps if you explained what you are trying to do. |
#3
|
|||
|
|||
Ok, more details, sorry.
The hack I've installed adds a userbar to a members profile, I'm trying to add it to their sigs, but it won't display there. When a user chooses their bar it takes the "userbarid" field from the "userbar" table and copies the value to the the user table in a field called "userbar" I've created a field called "userbarpath" in the user table and want it to take the "userbarpath" from the "userbar" table and copy it there. Thanks for your help. |
#4
|
||||
|
||||
Well, I dont know why you are getting the error, so please post a full version of the error you are getting here. here's some better code with an explanation.
PHP Code:
|
#5
|
|||
|
|||
Thanks for your code! It worked great! Thanks again man. I'll learn from that code and be able to do it my self from now on.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|