OK,
two small mods to make... first open
language/english.php and add these two lines,
| Code: |
define('GJ_NEED_APPROVAL','Needs Approval!');
define('GJ_INVITED','Invited, Needs Approval!');
|
They can be added to the bottom, or do as I did and insert them around L256 so they are near all the other '
invite' vars. Now go ahead and translate and add the translated lines to your language file.
Open
gj/core/members.php and find the following starting at around L215
| Code: |
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
if ( $gjConfig['real_names'] ) {
$rows[$i]['realname'] = $rows[$i]['name'];
} else {
$rows[$i]['realname'] = $rows[$i]['uname'];
}
}
|
Change this by adding the following code (4 lines)-
| Code: |
if ( $rows[$i]['status'] == 'need approval') {
$rows[$i]['status'] = GJ_NEED_APPROVAL ; }
if ( $rows[$i]['status'] == 'invited') {
$rows[$i]['status'] = GJ_INVITED ; }
|
So the final looks like this..
| Code: |
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
if ( $gjConfig['real_names'] ) {
$rows[$i]['realname'] = $rows[$i]['name'];
} else {
$rows[$i]['realname'] = $rows[$i]['uname'];
}
if ( $rows[$i]['status'] == 'need approval') {
$rows[$i]['status'] = GJ_NEED_APPROVAL ; }
if ( $rows[$i]['status'] == 'invited') {
$rows[$i]['status'] = GJ_INVITED ; }
}
|
As usuall, I take no responsibility for the consequences of using this fix... for all I know it could cause the end of the world as we know it... (probably not though...)
If you do not want to go through all the work, I have attached a fixed
members.php you can just copy over your existing one... you will need to rename it after downloading...
Have fun,
Aaron.
File Attachment: File Name:
members.txtFile Size: 16291