![]() |
Need help with phrases and profile fields...
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. |
Have you actually got the phrase in place?
|
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! |
Could you post the lines around line 6 then?
|
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... |
Why do you have a closing </phrase> tag? Phrases are usually PHP variables and it shouldn't need a tag..
|
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?
|
$vbphrase[$userinfo[field83] - You had two ]]'s
EDIT: I don't think thats right I'm hardly a leet coder xD |
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 |
$vbphrase['$userinfo[field83]']
What about that? :S |
All times are GMT. The time now is 04:48 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:
|