The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Rearrange Memberlist columns?
I was wondering how I could reorder or rearrange the columns on the Memberlist page. I tried just moving/removing the If conditions around in the table, but all that did was rearrange the names of the columns at the top, not actually rearrange the columns them selves.
I have also selected to show custom user profile fields on the memberlist page, however, I do not want them all showing up. Is there a way I can select which ones appear on the page? I believe this is the code that is adding all the fields... Code:
<if condition="$show['customfields']">$customfieldsheader</if> |
#2
|
||||
|
||||
Hey there! I literally JUST figured out how to do exactly what you are doing and it took a good amount of time to figure it out. So here's what I did...
There are actually two templates you need to edit to accomplish moving the tables around. Open up memberlist and memberlist_resultsbit (this is using 3.8.3). Memberlist template is where you move the column headers. Memberlist_resultsbit is where you move the columns (td tags). I don't have time to explain in great detail, but if you compare the two templates, they are very similar and you can find where they work hand in hand. I wanted to add only specific custom fields to my memberlist too. I wanted to add a column for the State the user lived in. It was a bit complicated, but I made notes for myself. I will copy them here and hopefully it will help you. Note where it says "state" you can call that whatever your field is. --- Do not enable custom profile fields on the home page through the vB options control panel. Leave that unchecked or it will display all of them. To add a single new custom field that is displayed on the memberlist page.... Use the custom profile field option to create a new field. Note the field name. You need to edit the memberlist_resultsbit template and add the new column. Note: this template may be named memberlistbit in older vB installs (I think). - <td class="$bgclass">$userinfo[field7]</td> (this makes new column) - Note: "field7" is changed to reflect the name of the new field you created. then edit the memberlist template to add the column header/title - <td class="thead" nowrap="nowrap">$vbphrase[state]</td> (this adds the new column header) - Note: "state" is changed to reflect the name of the new field you created and used to call the vb phrase. Use phrase manager to create this phrase and then reference it: $vbphrase[state] (or hand type in the title instead of using a phrase) ------ I don't give instructions a lot here so forgive me if it's not that great. I just popped on to get help with something else. LOL! |
#3
|
|||
|
|||
Thanks Jessica! That worked perfectly.
|
#4
|
|||
|
|||
Oh, actually I seem to have a little problem. See the attached image showing the black table cell. How do I get that filled in with the correct image?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|