1
nikki
Customise Members List
  • 2006/1/24 9:02

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


Hi everyone,

Through my Main Menu I have a Members link that members can access to search for other users.
The tabel that comes up includes:
avatar, realname, email, date joined, etc.

Does anyone know where I can customise this?

Also, in a User's profile, their real name shows up. Is this visible just to me, the Admin? In Permissons, there is no choice to make this visible or not.
TIA
:)

2
mawi27
Re: Customise Members List
  • 2006/1/24 9:31

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi nikki,

what is your XOOPS version?
Are you using the xoopsmembers module to generate the Link?

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

3
nikki
Re: Customise Members List
  • 2006/1/24 17:14

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


So sorry, I offered no informaion.

I'm using the latest version of XOOPS and the module is xoopsmembers, yes.

thanks
:)

4
mawi27
Re: Customise Members List
  • 2006/1/24 18:38

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi nikki,

there is no admin section for this module.

You have to customize the file xoopsmembers_searchresults.html in the xoopsmembers/template directory.

In this file you have the table header line and another line for the user data. You have to keep them synchronized.

<tr>
    <
th align="center"><{$lang_username}></th>
    <
th align="center"><{$lang_realname}></th>
    <
th align="center"><{$lang_email}></th>
    <
th align="center"><{$lang_privmsg}></th>
    <
th align="center"><{$lang_url}></th>
    <
th align="center"><{$lang_regdate}></th>
    <{if 
$is_admin == true}>
                <
th align="center"><{$lang_lastlogin}></th>
                <
th align="center"><{$lang_posts}></th>
                <
th align="center"><{$lang_admin}></th>
    <{/if}>
  </
tr>
  <{
section name=i loop=$users}>
  <
tr valign="middle">
    <
td align="center" class="odd"><{$users[i].avatar}><br /><a href="<{$xoops_url}>/userinfo.php?uid=<{$users[i].id}>"><{$users[i].name}></a><br /><{$users[i].rankimg}><br /><{$users[i].ranktext}></td>
    <
td class="even"><{$users[i].realname}></td>
    <
td align="center" class="odd"><{$users[i].email}></td>
    <
td class="even" align="center"><{$users[i].pmlink}></td>
    <
td class="odd" align="center"><{$users[i].website}></td>
    <
td class="even" align="center"><{$users[i].registerdate}></td>
    <{if 
$is_admin == true}>
                <
td class="odd" align="center"><{$users[i].lastlogin}></td>
                <
td class="even" align="center"><{$users[i].posts}></td>
                <
td class="odd" align="center"><{$users[i].adminlink}></td>
    <{/if}>
  </
tr>

As you can see, my file is already customized. Now this is fairly simple:
Every row you want only the admin to see, simply move into the <{if ... <{/if}> statement.

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

5
nikki
Re: Customise Members List
  • 2006/1/25 21:36

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


Thank you. That was very clear. But it didn't work for me.

If you could take a look at my code? I must have done something incorrectly.

<table class="outer" cellspacing="1" cellpadding="4">
  <
tr>
    <
th align="center"><{$lang_avatar}></th>
    <
th align="center"><{$lang_username}></th>
    <
th align="center"><{$lang_email}></th>
    <
th align="center"><{$lang_privmsg}></th>
    <
th align="center"><{$lang_regdate}></th>
    <
th align="center"><{$lang_lastlogin}></th>
    <
th align="center"><{$lang_posts}></th>
    <{if 
$is_admin == true}>
    <
th align="center"><{$lang_admin}></th>
    <
th align="center"><{$lang_realname}></th>
    <{/if}>
  </
tr>
  <{
section name=i loop=$users}>
  <
tr valign="middle">
    <
td class="even"><{$users[i].avatar}></td>
    <
td class="odd"><a href="<{$xoops_url}>/userinfo.php?uid=<{$users[i].id}>"><{$users[i].name}></a></td>
    <
td align="center" class="odd"><{$users[i].email}></td><td class="even" align="center"><{$users[i].pmlink}></td>
    <
td class="even" align="center"><{$users[i].registerdate}></td><td class="odd" align="center"><{$users[i].lastlogin}></td>
    <
td class="even" align="center"><{$users[i].posts}></td>
    <{if 
$is_admin == true}>
    <
td class="odd" align="center"><{$users[i].adminlink}></td>
    <
td class="even"><{$users[i].realname}></td>
    <{/if}>
  </
tr>
  <{/
section}>
</
table>


My main concern is not having the user's real name displayed.

thanks :)

6
mawi27
Re: Customise Members List
  • 2006/1/26 8:19

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Seems to be ok for me.
When u upload the file, you have to make sure, that your new version will be used.
Go to the menu administration and update the xoopsmember module.
Then it should work fine.

I'm sorry, but i can't help you with the user profile - i do not quite understand the profiles module myself

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

7
Shine
Re: Customise Members List
  • 2006/1/26 8:55

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


xoops 2.0.13.x

I am also puzzled in how I can customize this module.
What I am trying to achieve is that I only want to show members listed within a specific membergroup.
If I only want to show members listed within a standard 'registered users' group but not within another created membersgroup how can this be done?
Is there somehow a special smarty-membergroup-tag for this like there is for : <{if $xoops_isadmin == true}> or <{if $xoops_isuser}> ?

A bit of help would be appreciated.

Grtz., Shine

8
nikki
Re: Customise Members List
  • 2006/1/26 9:03

  • nikki

  • Not too shy to talk

  • Posts: 123

  • Since: 2005/10/31


WOOHOOO!!!

You're a star!

Thanks so much for hanging in there with me. Very kind.


9
mawi27
Re: Customise Members List
  • 2006/1/26 9:27

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


You're very welcome!

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

10
mawi27
Re: Customise Members List
  • 2006/1/26 10:04

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Quote:

Shine wrote:
xoops 2.0.13.x

I am also puzzled in how I can customize this module.
What I am trying to achieve is that I only want to show members listed within a specific membergroup.
If I only want to show members listed within a standard 'registered users' group but not within another created membersgroup how can this be done?
Is there somehow a special smarty-membergroup-tag for this like there is for : <{if $xoops_isadmin == true}> or <{if $xoops_isuser}> ?

A bit of help would be appreciated.

Grtz., Shine


Hi shine,
there is one variable <{$xoops_userid}> so maybe there is one <{$xoops_groupid}> as well?
I am no pro with the smarty variables.

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

Login

Who's Online

151 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits