The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using User Profile Fields on a different part of the site
Is it possible to use User Profile Fields (e.g. field5) on a different part of the site (not the forum) like my homepage. If so, how would I make it work?
|
#2
|
||||
|
||||
Yes, you should be able to. I use it in my navbar with the variable $bbuserinfo[fieldx]
|
#3
|
||||
|
||||
looking for this too...
Lynne, will that also bring the little editing icon next to the field as well? |
#4
|
|||
|
|||
If its not a forumpage(as you wrote*g*) you'll have to grab it yourself from the db(table userfield) or include the global.php from the forum and use it like lynne wrote.
--------------- Added [DATE]1237759165[/DATE] at [TIME]1237759165[/TIME] --------------- no, thats happening with js |
#5
|
||||
|
||||
thanks lynne, that worked!!!
All I need is to also have the edit button next to it, and when its pressed, the info becomes editable and you can just re-write the entry...like when they do it in their profile! |
#6
|
|||
|
|||
Can you help me with grabbing it from the db?
|
#7
|
||||
|
||||
If you need to grab it from the db, you'll have to write a plugin. You'll have to be much more specific about where you need to use it if you want help with that.
As for the edit button, steal the code from the template and make sure you include the same files included on the member page and see what happens. |
#8
|
|||
|
|||
I wish to use it on a script that I already have and submit field5 into the script which is located on the homepage.
|
#9
|
||||
|
||||
That isn't telling us anything. Post your script and tell us which plugin you are using for it and tell us where - which template or line - you wish to use it on the homepage. I assume by homepage you mean the forum index? If not, you need to explain it better.
|
#10
|
||||
|
||||
Code:
<!-- ########## WHATS ON YOUR MIND ######### --> <a href="/usercp.php"><img src="/image.php?u=$bbuserinfo[userid]" alt="Some avatar" border="0" /></a> <tr><td class="alt1" nowrap="nowrap" align="left"><b>What's On Your Mind?:</b> <fieldset> $bbuserinfo[field12] </fieldset></td> </tr> <!-- ########## /WHATS ON YOUR MIND ######### --> Does anyone have an idea of what the javascript is to have the little edit pencil show up? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|