The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have the MySpace profile's thing going on my site, and I have designed several styles that I would like to offer in a drop down menu in "edit profile"
I added a user profile field (field83) that contains the list of styles I added phrases (using the names from above) that contain the css needed for each style Now... I'm trying to code this into the memberinfo template... and can't figure it out... I know the code below doesn't work... but I'm hoping you can see from it what I'm trying to do: <style type="text/css">$vbphrase[$userinfo[field83]]</phrase></style> I want it to use a vbphrase for css... but it has to look at user profile field #83, as that contains the name of the phrase it needs to use... is this possible, and how do I code this? Thanks you VERY much in advance, I'm not very good at this stuff, and my head is close to exploding now lol. |
#2
|
|||
|
|||
![]()
Have you actually got the phrase in place?
|
#3
|
|||
|
|||
![]()
What do you mean? Did I already make the phrase in vBulletin? Yes... the problem is: the above code gives me the whole:
Quote:
Thanks for your help, this is driving me nuts! |
#4
|
|||
|
|||
![]()
Could you post the lines around line 6 then?
|
#5
|
|||
|
|||
![]()
This is line 6:
<style type="text/css">$vbphrase[$userinfo[field83]]</phrase></style> The problem is: $vbphrase[$userinfo[field83]]</phrase> I just don't know how to code it properly... |
#6
|
|||
|
|||
![]()
Why do you have a closing </phrase> tag? Phrases are usually PHP variables and it shouldn't need a tag..
|
#7
|
|||
|
|||
![]()
Oh really? Hahaha... like I said, I'm not that good at this stuff... I just took it out, but it still gives me the error.... I think it just doesn't like having the user profile field inside the phrase? I just don't know... any ideas?
|
#8
|
|||
|
|||
![]()
$vbphrase[$userinfo[field83] - You had two ]]'s
EDIT: I don't think thats right I'm hardly a leet coder xD |
#9
|
|||
|
|||
![]()
thats not it either, because 1 of them was for the $vbphrase, and the other is for the $userinfo...
so it still gives an error |
#10
|
|||
|
|||
![]()
$vbphrase['$userinfo[field83]']
What about that? :S |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|