1
coopersita
How to modify New Members block?

I want to list in my New Member block the real name instead of the user name.

How do you do that?

I've looked at the block template, but I where is the php that sends the vars to it?

2
smdcom
Re:How to modify New Members block?

it's in modules/system/blocks/system_blocks.php

somewhere in line 286

Quote:

$block['users'][$i]['id'] = $newmembers[$i]->getVar('uid');
$block['users'][$i]['name'] = $newmembers[$i]->getVar('uname');


you can change "uname" to "name". something like this..

Quote:

$block['users'][$i]['name'] = $newmembers[$i]->getVar('name');


then, update your template.. hope that make sense...

happy xoopsing..

3
coopersita
Re:How to modify New Members block?

Worked perfecly. Thanks.

So my next question. If I want to add a new block that needs to retrieve user info from the DB, do I have to add the necessary php in a new function to that same system_blocks.php?

4
smdcom
Re:How to modify New Members block?

no necessary... defends on your needs..

5
coopersita
Re:How to modify New Members block?

Thanks again.

I guess I'll once I actually have some blocks to build I'll figure it out.

6
smdcom
Re:How to modify New Members block?

your welcome..

Login

Who's Online

229 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 229


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