Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Subrion CMS Core Discussion > Subrion Core Discussion

Subrion Core Discussion Here we discuss everything that is related to Subrion CMS core functionality. Additional features related to plugins and templates engines. New features that are related to Manage Pages functionality or anything that's not related to Subrion packages.

Reply

 

LinkBack Thread Tools Display Modes
Old 08-15-2007   #1 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 9
racer is on a distinguished road
Cool How is it possible to hide the admins name on memberlist

Hi,
I like the memberlist, but I do not like that the admins name is visible on it...
How and where can that be changed.

Thanks
racer
racer is offline   Reply With Quote
Old 08-15-2007   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How is it possible to hide the admins name on memberlist

Open file classes/xaFront.class.php and find function getMembersList. Replace its body with
PHP Code:
        $sql "SELECT SQL_CALC_FOUND_ROWS acc.`id`, acc.`username`, acc.`fullname`, acc.`status`, acc.`avatar`, ";
        
$sql .= " COUNT(art.`id`) AS amount, acc.`admin` ";
        
$sql .= " FROM `{$this->mPrefix}accounts` AS acc ";
        
$sql .= " LEFT JOIN `{$this->mPrefix}articles` AS art ON acc.`id`=art.`id_account` ";
        
$sql .= "WHERE acc.`admin`='0' ";
        
$sql .= ($aFilter && 'begins' == $aCondition) ? " AND `username` LIKE '{$aFilter}%' " '';
        
$sql .= ($aFilter && 'contains' == $aCondition) ? " AND `username` LIKE '%{$aFilter}%' " '';
        
$sql .= " GROUP BY acc.`id` ";
        
$sql .= " ORDER BY $aOrder ";
        
$sql .= ($aStart || $aLimit) ? " LIMIT {$aStart},{$aLimit} " '';

        return 
$this->getAll($sql); 
Sergey Hmelevsky is offline   Reply With Quote
Old 08-16-2007   #3 (permalink)
Junior Member
 
Join Date: May 2007
Posts: 9
racer is on a distinguished road
Default Re: How is it possible to hide the admins name on memberlist

Cool, that helps a lot

Thanks racer
racer is offline   Reply With Quote
Old 08-16-2007   #4 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How is it possible to hide the admins name on memberlist

Always at your service.
Sergey Hmelevsky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:58 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0