Greg W Posted April 13, 2010 Report Share Posted April 13, 2010 I am trying to do an edit to the Online Users list, what I really want to achieve is that Admins are not followed around the site, therefore, I want to edit the code so that Admins just show as "Private" or similar for the location when the online list is looked at by members. 1 - Is this possible? 2 - How can I do it? I have worked out that an edit is needed in the showOnlineList Template, I think it should be a simple edit, but everything I have tried hasn't worked. Please can somebody help me. Quote Link to comment Share on other sites More sharing options...
Management Michael Posted April 13, 2010 Management Report Share Posted April 13, 2010 This hasn't been tested much but this should work. 4 is the member group id usually of the admin cp. If you want it to be multiple groups, let me know, can alter the edit for you. Also note it will show Private for users in that group regardless of who is viewing. Probably can add an exclusion for other admins if you need to. Open the showOnlineList template bit Find: <if test="nowhere:|:!$session['where_line'] || $session['in_error']"> {$this->lang->words['board_index']} <else /> <if test="wheretext:|:$session['where_link'] AND !$session['where_line_more']"> <a href='{parse url="{$session['where_link']}" base="public"}'> </if> {$session['where_line']} <if test="moredetails:|:$session['where_line_more']"> <if test="wheretextseo:|:$session['_whereLinkSeo']"> <a href='{$session['_whereLinkSeo']}'> <else /> <if test="detailslink:|:$session['where_link']"><a href='{parse url="{$session['where_link']}" base="public"}'></if> </if> {$session['where_line_more']} <if test="enddetailslink:|:$session['where_link']"></a></if> <else /> <if test="nomoreenddetailslink:|:$session['where_link']"></a></if> </if> </if> Replace With: <if test="private_session:|:$session['member_group'] == '4'"> Private <else /> <if test="nowhere:|:!$session['where_line'] || $session['in_error']"> {$this->lang->words['board_index']} <else /> <if test="wheretext:|:$session['where_link'] AND !$session['where_line_more']"> <a href='{parse url="{$session['where_link']}" base="public"}'> </if> {$session['where_line']} <if test="moredetails:|:$session['where_line_more']"> <if test="wheretextseo:|:$session['_whereLinkSeo']"> <a href='{$session['_whereLinkSeo']}'> <else /> <if test="detailslink:|:$session['where_link']"><a href='{parse url="{$session['where_link']}" base="public"}'></if> </if> {$session['where_line_more']} <if test="enddetailslink:|:$session['where_link']"></a></if> <else /> <if test="nomoreenddetailslink:|:$session['where_link']"></a></if> </if> </if> </if> Save Template Bit Quote Link to comment Share on other sites More sharing options...
Greg W Posted April 13, 2010 Author Report Share Posted April 13, 2010 Thanks Michael, you are a star, that does exactly what I wanted. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.