View Single Post
  #2  
Old 08-28-2009, 08:25 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01240 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete