The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
online list custom field
I need to figure out how to make the online list on FORUMHOME template show "field5" custom profile field instead of "musername" variable
Code:
<vb:if condition="$activeusers"> <ol class="commalist" id="wgo_onlineusers_list"> <vb:each from="activeusers" value="loggedin"> <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li> </vb:each> </ol> </vb:if> |
#2
|
|||
|
|||
If you just want to replace musername for the online list, then what you could do is use a plugin at hook location forumhome_complete, and go through the array $activeusers to get the userids, and find field 5 for each user. Then either replace the 'musername' with field5, or insert 'field5' in the array and change the template to use it instead of 'musername'.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|