The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove certain fields in memberlist

View previous topic View next topic Go down

Remove certain fields in memberlist

Post by ToTheFuture on November 25th 2011, 2:42 am

My question is like this but for phpbb2. It's just a table, so I believe there is just some code to delete in the template, right?

ToTheFuture
Forumember

Posts : 374
Reputation : 15
Language : English, Français

Back to top Go down

Re: Remove certain fields in memberlist

Post by Empire_1 on November 25th 2011, 4:16 am

You can't remove them but I believe you can rename the field Wink

Empire_1
Active Poster

Male Posts : 1391
Reputation : 124
Language : English, Spanish, Mandarin, C++
Location : Summoner's Rift

Back to top Go down

Re: Remove certain fields in memberlist

Post by Richard. on November 25th 2011, 9:00 am

Sure u can ACP=>Display=>Templates=>General=>memberlist_body=> delete all and pus this:

Code:
<form action="{S_MODE_ACTION}" method="get">
<table cellspacing="0" cellpadding="5" border="0" align="center" class="forumline" width="100%">
   <tr>
      <th class="thTop" nowrap="nowrap">{L_ORDER_OR_SELECT}</th>
   </tr>
   <tr>
      <td class="row1">
      <table cellspacing="2" cellpadding="0" border="0" align="center" class="genmed">
         <tr>
            <td width="100%">{L_USER_SELECT} <input type="text" class="post" name="username" maxlength="25" size="20" value="{L_USER_SELECT_VALUE}" />      
            {L_SELECT_SORT_METHOD} {S_MODE_SELECT}      
            {L_ORDER} {S_ORDER_SELECT}       {S_HIDDEN_SID} <input class="liteoption" type="submit" name="submit" value="{L_SUBMIT}" /></td>
         </tr>
      </table>
      </td>
   </tr>
</table>
</form>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th class="thCornerL" nowrap="nowrap" height="25">#</th>
      <th class="thTop" nowrap="nowrap">{L_AVATAR}</th>
      <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
      <!-- BEGIN switch_th_group -->
      <th class="thTop" nowrap="nowrap">{L_GROUPS}</th>
      <!-- END switch_th_group -->

      <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
      <th class="thTop" nowrap="nowrap">{L_VISITED}</th>
      <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
      <th class="thTop" nowrap="nowrap">{L_PM}</th>

   </tr>
   <!-- BEGIN memberrow -->
   <tr>
      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"> {memberrow.ROW_NUMBER} </span></td>
      <td class="{memberrow.ROW_CLASS}" align="center"><div class="avatar mini"><a href="{memberrow.U_VIEWPROFILE}">{memberrow.AVATAR_IMG}</a></div></td>
      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a class="gen" href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></span></td>
      <!-- BEGIN switch_td_group -->
      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.GROUPS}</span></td>
      <!-- END switch_td_group -->

      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.LASTVISIT}</span></td>
      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
      <td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.PM_IMG} </td>

   </tr>
   <!-- END memberrow -->
   <!-- BEGIN switch_no_user -->
   <tr>
      <td class="catBottom" colspan="{switch_no_user.COLSPAN_NUMBER}" height="28" align="center"><span class="gensmall">{switch_no_user.L_NO_USER}</span></td>
   </tr>
   <!-- END switch_no_user -->
</table>
<!-- BEGIN switch_pagination -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td><span class="nav">{PAGE_NUMBER}</span></td>
      <td align="right"><span class="nav">{PAGINATION}</span></td>
   </tr>
</table>
<br />
<!-- END switch_pagination -->

Richard.
Forumember

Male Posts : 248
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Re: Remove certain fields in memberlist

Post by ToTheFuture on November 27th 2011, 6:12 pm

I have edited my memberlist_body already, so could you please just tell me what to change? Very Happy Thank you.

ToTheFuture
Forumember

Posts : 374
Reputation : 15
Language : English, Français

Back to top Go down

Re: Remove certain fields in memberlist

Post by Guest on November 27th 2011, 7:46 pm

@ToTheFuture wrote:I have edited my memberlist_body already, so could you please just tell me what to change? Very Happy Thank you.
What field you want to delete? Hello

Guest
Guest


Back to top Go down

Re: Remove certain fields in memberlist

Post by ToTheFuture on December 9th 2011, 11:32 pm

Number, Humour, and Website, thank you. Very Happy I would also like to remove these from the "sort by" option as well, along with sort by "Usergroups". Very Happy Thank you very much!

ToTheFuture
Forumember

Posts : 374
Reputation : 15
Language : English, Français

Back to top Go down

Re: Remove certain fields in memberlist

Post by ToTheFuture on December 11th 2011, 6:18 pm

Bump! Very Happy

ToTheFuture
Forumember

Posts : 374
Reputation : 15
Language : English, Français

Back to top Go down

Re: Remove certain fields in memberlist

Post by Mike on December 11th 2011, 8:16 pm

Here's what you need to remove:

Website -> REMOVE:
Code:
<th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>

and:
Code:
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.WWW_IMG} </td>

Number -> REMOVE:
Code:
<th class="thCornerL" nowrap="nowrap" height="25">#</th>

and:
Code:
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"> {memberrow.ROW_NUMBER} </span></td>

Humour -> REMOVE:
Code:
<th class="thTop" nowrap="nowrap">{L_INTERESTS}</th>

and:
Code:
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.INTERESTS}</span></td>

Good luck!

Mike
Hyperactive

Male Posts : 4242
Reputation : 466
Language : English, HTML, CSS
Location : Bozeman, Montana

Back to top Go down

Re: Remove certain fields in memberlist

Post by ToTheFuture on December 13th 2011, 1:44 am

I fooled around, and I guess there is no way to remove those options from the search bar then? Thank you Drogba, but don't mark this as solved yet forumotion-- I want to see if anyone has the code to do the second part, which would basically mean reconstruct the search criteria so that these unwanted fields are not displayed. This could be done by remaking the dropdown, of course. I think I might be able to do this and get it to work with forumotion's template setup for that particular part, so let me try and get back to everyone. Very Happy

ToTheFuture
Forumember

Posts : 374
Reputation : 15
Language : English, Français

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum