News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Hide ICQ, AOL IM, Yahoo! IM but keep MSN in memberlist

Started by MacDo, August 08, 2006, 04:17:42 PM

Previous topic - Next topic

MacDo

SMF Version: SMF 1.1 RC2
Hello !

In the memberlist, I would like to hide ICQ, AOL IM, Yahoo IM columns but keep the MSN column.

How can I do this ? What is the file to modify ?

Thanks again !

winrules

Memberlist.template.php
Find And Delete:

<td class="windowbg2">', $member['icq']['link'], '</td>
<td class="windowbg2">', $member['aim']['link'], '</td>
<td class="windowbg2">', $member['yim']['link'], '</td>

Find Four Times:

colspan="12"

And Replace With

colspan="9"


Memberlist.php
Find And Delete:

'ICQ' => array(
'label' => $txt[513],
'width' => '25'
),
'AIM' => array(
'label' => $txt[603],
'width' => '25'
),
'YIM' => array(
'label' => $txt[604],
'width' => '25'
),

Find And Delete:

'ICQ' => array(
'down' => 'LENGTH(mem.ICQ) > 0 DESC, ISNULL(mem.ICQ) OR mem.ICQ = 0 ASC, mem.ICQ ASC',
'up' => 'LENGTH(mem.ICQ) > 0 ASC, ISNULL(mem.ICQ) OR mem.ICQ = 0 DESC, mem.ICQ DESC'
),
'AIM' => array(
'down' => 'LENGTH(mem.AIM) > 0 DESC, ISNULL(mem.AIM) ASC, mem.AIM ASC',
'up' => 'LENGTH(mem.AIM) > 0 ASC, ISNULL(mem.AIM) DESC, mem.AIM DESC'
),
'YIM' => array(
'down' => 'LENGTH(mem.YIM) > 0 DESC, ISNULL(mem.YIM) ASC, mem.YIM ASC',
'up' => 'LENGTH(mem.YIM) > 0 ASC, ISNULL(mem.YIM) DESC, mem.YIM DESC'
),


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


MacDo

Waw ; thank you very much ! I've installed the karma on memberlist 1.0 mod so I had to do some modifications to your colspan suggestions. But It works :-)

Thank you very much !!

mariusfv

#3
can you tell me that for smf 1.1.11 too pls ? but i want to remove all , msn too.
10x in advance.

Edit:

I do like your tutorial but here :
Find Four Times:
Code: [Select]
colspan="12"
And Replace With
Code: [Select]
colspan="9"

I find only 1 time this...was 13,  12 i replace 12 with 9 and is ok...job is done and no forum errors... will be ok ?

Advertisement: